Results 1 to 1 of 1
Thread: Hiding the frame’s title bar
-
Hiding the frame’s title bar
Sometime you don’t want to the user to view the title bar of the frame. This can be done using setUndercorated() method and providing true as argument. Review the code below.
Java Code:public static void main(String[] args){ Frame frame = new Frame("MyFrame"); Label lbl = new Label("Welcome to the world of Java",Label.CENTER); frame.setUndecorated(true); frame.add(lbl); frame.setSize(400,400); frame.setVisible(true); }
Similar Threads
-
Hiding parameters from URL
By Saurabh321 in forum New To JavaReplies: 0Last Post: 02-05-2008, 12:43 PM -
hiding inherited methods
By java_fun2007 in forum New To JavaReplies: 1Last Post: 01-05-2008, 02:16 PM -
How to alter the title of JOptionPane
By mew in forum New To JavaReplies: 2Last Post: 12-17-2007, 10:39 AM -
Top menu fields hiding
By youayshu in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 11-13-2007, 07:10 AM -
How can I add an ICON on a JDialog's Title-Bar?
By iimasd in forum AWT / SwingReplies: 2Last Post: 11-06-2007, 12:54 PM
Bookmarks