Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1613
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: How to disable maximu |
| Message-ID | <7200d8adeda86@uwe> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1178831980.559902.309550@h2g2000hsg.googlegroups.com> |
| Date | 2011-04-27 15:34 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
hardemr wrote:
>... How can i disable maximum and minimum icon on the
>jFrame?
A JFrame? To get part of that, you can simply lock
the size of the frame..
<sscce>
import javax.swing.JFrame;
class UnResizableFrame extends JFrame {
public static void main(String[] args) {
JFrame f = new JFrame("Not Resizable");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setSize(400,200);
f.setLocation(50,50);
// lock the size
f.setResizable(false);
f.setVisible(true);
}
}
</sscce>
.the JFrame can still be minimized to the taskbar,
in this example.
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200705/1
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
How to disable maximum&mi "hardemr" <hardemr@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000 Re: How to disable maximu "Michael Dunn" <michael.dunn@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000 Re: How to disable maximu "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
csiph-web