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" Subject: Re: How to disable maximu Message-ID: <7200d8adeda86@uwe> 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 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.. 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); } } .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