🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
2 messages
2 total messages Started by Oliver Tue, 22 Feb 2005 17:00
Frame WindowDecorationStyle
#577
Author: Oliver
Date: Tue, 22 Feb 2005 17:00
21 lines
1680 bytes
Hello,

i have a frame which i show on top of my main application.
Before that, the main application starts another Java application via a special RemoteControl.jar. The frame looks different if this other Java application has been started (frame with a green border) or not (frame with a violet border).
 
I�m not sure what setUndecorated does and setWindowDecorationStyle(JRootPane.Frame).

kind regards

Oliver

private void ShowAndPrintReport(Report Rep)     {
if (Rep==null) {ErrorMessage ("Kein Report verf�gbar.");
                              return;}
PrintTestFrame frame = new PrintTestFrame(Rep.Lines,false);
               frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
              frame.setUndecorated(true);
              frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME); // sieht gut aus!
              frame.show();
              }
Re: Frame WindowDecorationStyle
#578
Author: Lori M Olson [TeamB]
Date: Tue, 22 Feb 2005 17:45
53 lines
2991 bytes
Oliver wrote:

> Hello,
> 
> i have a frame which i show on top of my main application.
> Before that, the main application starts another Java application via a special RemoteControl.jar. The frame looks different if this other Java application has been started (frame with a green border) or not (frame with a violet border).
>  
> I�m not sure what setUndecorated does and setWindowDecorationStyle(JRootPane.Frame).
> 
> kind regards
> 
> Oliver
> 
> private void ShowAndPrintReport(Report Rep)     {
> if (Rep==null) {ErrorMessage ("Kein Report verf�gbar.");
>                               return;}
> PrintTestFrame frame = new PrintTestFrame(Rep.Lines,false);
>                frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
>               frame.setUndecorated(true);
>               frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME); // sieht gut aus!
>               frame.show();
>               }
> 
> 

This techtip describes what setUndecorated does:

http://java.sun.com/developer/JDCTechTips/2005/tt0118.html#2

It looks like this code is trying to remove all window decorations, and 
then set the window decorations to those appropriate for a Frame.

I'm not convinced that frame.setUndecorated(true) is useful, given the 
subsequent statement, but ... it's hard to tell without running the code.

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.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