I recall back in school we worked on a small program for database management
and we wrote a method which contained instructions for establishing a connection.
Connection con(){}
con(); // Would return an open connection
Can this be applied to JFrame ?
For instance i am making a 800x600 GUI software and i am writing it all by hand and
i was wondering can i have a method where i will define the window.
And then call that method from other methods and classes.
what i had in mid:
JFrame frame(){
return JFrame;
}