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;
}

Omg iam so stupid... I answered my own question -.- I love java even more ^^

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.