When I open a JFileChooser to choose a file/directory, I know that you can use CTRL-V to paste the file path into the textfield. Alternatively, is there a way to enable a right-click in a JFileChooser to show the usual context menu for Cut/Copy/Paste so I can just right-click and paste the file path into the textfield?
Edit: Ok. I just used the Swing Utils class and received this for the value:
Jtextfield = javax.swing.plaf.metal.MetalFileChooserUI$3[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@4fe7ab59,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],columns=35,columnWidth=0,command=,horizontalAlignment=LEADING]
I'm not exactly sure where to go from here though.. How would I even apply the context menu to this value?