🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages Started by Zoran Pjevic Mon, 18 Oct 2004 08:18
How to decorate partially the frame ??
#862
Author: Zoran Pjevic
Date: Mon, 18 Oct 2004 08:18
31 lines
1685 bytes
Good morning to everybody

I run a GUI on a Windows PC:

When I call the methods:

frame.setResizable(false);
frame.setExtendedState( Frame.MAXIMIZED_BOTH );

my frame is maximized, but I can still click on titlebar and drag the
window around. But maximized windows on MS Windows are not movable.

So I tried to set the frame as follows:

frame.setResizable(true);
frame.setExtendedState( Frame.MAXIMIZED_BOTH );

After, that the resize decoration button is enabled, and when I click
it the window is maximized, and it is not movable.

But I wonder how to make this programmatically?

Also - is there a way to set the decoration of a frame partially, for
instance:

- enable mimimize button
- disable resize button
- disable the x-button (the close window button)

Thanks in advance,
Zoran
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