A
Agent Smith
Can somebody tell me what I'm doing wrong, because I can't get the file
chooser to work under NetBeans? I've managed to get it to display the
file chooser and allow the selection of a file, but I can't figure out
how to insert the open file code into the method that's executed when I
click the "OK" button.
I expected that there might be a number of new events available, in the
standard list of events, corresponding to the various things that can be
done with a file chooser that can't be done with other containers, but
there doesn't seem to be any new events that aren't standard to most
components.
Or I expected that there might be a number of fields within the file
chooser that I could access, corresponding to the buttons and the drop-
down list box. If I could access those fields, I could write the code
into their mouse-click event listener methods. But I can't figure out
how to get NetBeans to display those fields, or even if they're there at
all.
Can somebody help me figure out how to access the methods that are
invoked when I click the "OK" and "Cancel" buttons in the file chooser
dialog? TIA. :]
chooser to work under NetBeans? I've managed to get it to display the
file chooser and allow the selection of a file, but I can't figure out
how to insert the open file code into the method that's executed when I
click the "OK" button.
I expected that there might be a number of new events available, in the
standard list of events, corresponding to the various things that can be
done with a file chooser that can't be done with other containers, but
there doesn't seem to be any new events that aren't standard to most
components.
Or I expected that there might be a number of fields within the file
chooser that I could access, corresponding to the buttons and the drop-
down list box. If I could access those fields, I could write the code
into their mouse-click event listener methods. But I can't figure out
how to get NetBeans to display those fields, or even if they're there at
all.
Can somebody help me figure out how to access the methods that are
invoked when I click the "OK" and "Cancel" buttons in the file chooser
dialog? TIA. :]