🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #862

How to decorate partially the frame ??

#862
From: 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
Technical Details
Message-ID: <ufu6n0pbklpno508jf6mdua6okijibdt4a@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,b6bdc2ed27ce08,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Zoran Pjevic <zpjevic@anitesystems.de>
Newsgroups: borland.public.jbuilder.java.swing
Subject: How to decorate partially the frame ??
Date: Mon, 18 Oct 2004 10:18:04 +0200
Message-ID: <ufu6n0pbklpno508jf6mdua6okijibdt4a@4ax.com>
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.157.29.250
X-Trace: newsgroups.borland.com 1098087268 213.157.29.250 (18 Oct 2004 01:14:28 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail