Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1613
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail |
|---|---|
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
| Subject | Re: How to disable maximu |
| Message-ID | <7200d8adeda86@uwe> (permalink) |
| X-Comment-To | comp.lang.java.gui |
| Newsgroups | comp.lang.java.gui |
| In-Reply-To | <1178831980.559902.309550@h2g2000hsg.googlegroups.com> |
| References | <1178831980.559902.309550@h2g2000hsg.googlegroups.com> |
| Content-Type | text/plain; charset=IBM437 |
| Content-Transfer-Encoding | 8bit |
| X-Gateway | time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] |
| Lines | 42 |
| Date | Wed, 27 Apr 2011 15:34:20 GMT |
| NNTP-Posting-Host | 96.60.20.240 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1303918460 96.60.20.240 (Wed, 27 Apr 2011 10:34:20 CDT) |
| NNTP-Posting-Date | Wed, 27 Apr 2011 10:34:20 CDT |
| Organization | TDS.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1613 |
Show key headers only | View raw
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