| Author |
Class & GUI
|
Colin
Greenhorn
Joined: Nov 26, 2005
Posts: 3
|
|
Hi all, i have limited experience in Java and wondered if you could answer my question, if a create a custom class, can that class have a GUI or do i have to reference that class from within an application with a GUI. Many thanks
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
CRWS, Welcome to Javaranch. We don't have too many rules around here but we do have a Naming Policy. Please read this and adjust your display name accordingly. You can change your display name by clicking here. Thanks.
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
if a create a custom class, can that class have a GUI That class can either create a Frame/JFrame object and construct a GUI or that class can extend Frame/JFrame and become the main frame of the GUI application. do i have to reference that class from within an application with a GUI. You can do this as well. You can have a class as stated earlier that constructs a GUI and call that class from another class. A good starting point might be to read Sun's GUI Tutorials. Also, I am going to move this to the Swing/AWT/SWT/JFace forum where all things GUI are discussed.
|
 |
 |
|
|
subject: Class & GUI
|
|
|