S
StillillWill
So my question is if I build a JFrame can I use a button in that JFrame
to open a .java file in the same folder?
to open a .java file in the same folder?
So my question is if I build a JFrame can I use a button in that JFrame
to open a .java file in the same folder?
Andrew said:(e-mail address removed) wrote:
Sub: JFrame Help
Note that 'Help' is redundant in titles, and 'JFrame'
does not tell us much, a better title might be
'load file from same folder, possible?'
Yes.
Each different window is a .java file and
was unsure about how to load them.
I mean that I have written 4 different .java files and they are all
part of a GUI, different windows if you like.
Each of these windows has buttons on them. I am trying to make the
buttons, when clicked, open one of the other .java files.
Does that make more sense?
Gosh I'm really sorry to make this so long for you, and thanks for your
help.
Yeah I mean to open a class that I have compiled from a .java text file
that does pretty much the same thing as the original class, open new
classes with buttons and save text fields to a file.
I am making a GUI for a program that has navigation buttons. I've
built each of the GUI frames or 'windows' into different class files.
So I want the buttons in each frame to access another class file, how
do I do that?
On a seperate note I tried to use a layout but couldn't find one that
caters for that sort of form do you know one?
Lew said:"Access" is such a vague word. The answer really depends on the kind of
access you intend, in other words, the action and reaction sequence you
mean to happen.
multiwindow-multiclass systems usually communicate through the usual
listeners and by forwarded methods from the custom class to a contained
Swing component.
Gosh I'm really sorry to make this so long for you, and thanks for your
help.
Yeah I mean to open a class that I have compiled from a .java text file
that does pretty much the same thing as the original class, open new
classes with buttons and save text fields to a file.
I am making a GUI for a program that has navigation buttons. I've
built each of the GUI frames or 'windows' into different class files.
So I want the buttons in each frame to access another class file, how
do I do that?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.