Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages
Started by apostolish
Tue, 25 Sep 2007 06:47
jFrame- disable the minimize property
Author: apostolish
Date: Tue, 25 Sep 2007 06:47
Date: Tue, 25 Sep 2007 06:47
7 lines
1040 bytes
1040 bytes
Hello, I' ve a swing application where i use a JFrame component. I'd like to ask how can i disable the minimize property of the frame(at the upper right corner of the frame) ? Thanks , in advance Apostolis
Re: jFrame- disable the minimize property
Author: Kevin Dean [TeamB]
Date: Tue, 25 Sep 2007 13:22
Date: Tue, 25 Sep 2007 13:22
43 lines
2130 bytes
2130 bytes
apostolish wrote:
>Hello,
>I' ve a swing application where i use a JFrame component. I'd like to ask
>how can i disable the minimize property of the frame(at the upper right
>corner of the frame) ?
>
>Thanks , in advance
>Apostolis
The only thing I've been able to find disables both minimize and maximize
buttons. This is the cleanest example:
import java.awt.*;
import javax.swing.*;
class Testing extends JFrame {
public Testing() {
setTitle("JFrame");
setSize(300,200);
setLocation(350,200);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setUndecorated(true);
getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
getContentPane().add(new JPanel());
}
public static void main(String[] args) {
new Testing().setVisible(true);
}
}
A full list may be found on Google:
http://www.google.ca/search?q=swing+jframe+disable+minimize
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Re: jFrame- disable the minimize property
Author: apostolish
Date: Wed, 26 Sep 2007 09:34
Date: Wed, 26 Sep 2007 09:34
47 lines
2305 bytes
2305 bytes
Thank you
� "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com> ������ ��� ������
news:xn0fbm56z58wwmk002-kdean@www.teamb.com...
> apostolish wrote:
>
>>Hello,
>>I' ve a swing application where i use a JFrame component. I'd like to ask
>>how can i disable the minimize property of the frame(at the upper right
>>corner of the frame) ?
>>
>>Thanks , in advance
>>Apostolis
>
> The only thing I've been able to find disables both minimize and maximize
> buttons. This is the cleanest example:
>
> import java.awt.*;
> import javax.swing.*;
> class Testing extends JFrame {
> public Testing() {
> setTitle("JFrame");
> setSize(300,200);
> setLocation(350,200);
> setDefaultCloseOperation(EXIT_ON_CLOSE);
> setUndecorated(true);
> getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
> getContentPane().add(new JPanel());
> }
>
> public static void main(String[] args) {
> new Testing().setVisible(true);
> }
> }
>
>
> A full list may be found on Google:
>
> http://www.google.ca/search?q=swing+jframe+disable+minimize
>
> --
> Kevin Dean [TeamB]
> Dolphin Data Development Ltd.
> http://www.datadevelopment.com/
>
> Please see Borland's newsgroup guidelines at
> http://info.borland.com/newsgroups/guide.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads