Showing posts with label JFrame. Show all posts
Showing posts with label JFrame. Show all posts

Friday, September 20, 2013

Simple Frames and Panels

CODE DOWNLOAD - FramesAndPanelsTute.zip

A JFrame is a Window that can contain other GUI components such as JPanel. We can override the JPanel's paint method to force the JPanel to draw the way we would like it to. In the demo code, the final result looks like the following:


In this example, inheritance has been used to extend both the JFrame and the JPanel class. Both of these classes come from the Java Swing library.

Tuesday, May 28, 2013

JPanel


"How to Use Panels (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)" ( http://bit.ly/ZaWraM )

"JPanel (Java Platform SE 6)" ( http://bit.ly/Rn8WMx )

Monday, April 23, 2012

JFrame

From Swing, JFrame is a top-level GUI container component.

"How to Make Frames (Main Windows) (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)" ( http://bit.ly/1eWsG71 )

http://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html