Results 1 to 1 of 1
Thread: JWindow/JFrame with boarders
-
JWindow/JFrame with boarders
It is possible to have JWindow/JFrame with borders. Review the example below:
Java Code:public class MyWindow{ public static void main(String s[]) { JWindow win = new JWindow(); JPanel pan = new JPanel(); pan.setBorder(new LineBorder(Color.blue)); win.getContentPane().add(pan,"Center"); pan.setLayout(new FlowLayout()); pan.add(new JButton("Hello")); pan.add(new JButton("World")); win.setSize(200,200); win.setVisible(true); } }
Similar Threads
-
Add an image to JFrame
By Eranga in forum AWT / SwingReplies: 4Last Post: 02-01-2010, 04:09 PM -
Image with JWindow -> trails
By ofir3dvb in forum AWT / SwingReplies: 2Last Post: 03-18-2008, 06:21 PM -
JFrame problem
By saytri in forum New To JavaReplies: 6Last Post: 01-11-2008, 06:12 PM -
How to mouse-drag a JWindow?
By cruxblack in forum New To JavaReplies: 3Last Post: 08-06-2007, 10:52 AM -
Help with JFrame
By Albert in forum AWT / SwingReplies: 2Last Post: 07-04-2007, 05:44 AM
Bookmarks