Results 1 to 7 of 7
- 07-22-2008, 06:43 AM #1
Member
- Join Date
- Jul 2008
- Posts
- 10
- Rep Power
- 0
Remove Maxi and min option from title bar
Hi All
I have frame and i want to remove maximaize and minimiaze option from title bar of frame and only showing close option.I try through
But i haven't got solution.Can any one tell me how can i do that..Java Code:frame.setUndecorated(false); frame.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
Thx's in advance
- 07-22-2008, 06:51 AM #2
This seemed to do it.
Java Code:f.setUndecorated(true); f.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
- 07-22-2008, 07:10 AM #3
Member
- Join Date
- Jul 2008
- Posts
- 10
- Rep Power
- 0
- 07-22-2008, 07:39 AM #4
I'd have to see the error.
- 07-22-2008, 07:53 AM #5
Member
- Join Date
- Jul 2008
- Posts
- 10
- Rep Power
- 0
- 07-22-2008, 08:39 AM #6
Java Code:// superclass Component method frame.setLocation(x, y); // superclass Window method frame.setLocationRelativeTo(null); // centered
- 07-22-2008, 08:56 AM #7
Member
- Join Date
- Jul 2008
- Posts
- 10
- Rep Power
- 0
Similar Threads
-
the -eprof option?
By GVD in forum Advanced JavaReplies: 2Last Post: 01-10-2008, 01:48 PM -
Hiding the frame’s title bar
By Java Tip in forum Java TipReplies: 0Last Post: 12-21-2007, 08:41 AM -
How to alter the title of JOptionPane
By mew in forum New To JavaReplies: 2Last Post: 12-17-2007, 10:39 AM -
Getting values of an Option List
By mutuah in forum Advanced JavaReplies: 0Last Post: 08-07-2007, 03:42 AM -
Is there a way to remove an option from optionsCollection?
By schu777 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 08-02-2007, 09:47 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks