Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: JDialog in taskbar under Linux

Reply
Thread Tools

Re: JDialog in taskbar under Linux

 
 
Alexandr Molochnikov
Guest
Posts: n/a
 
      07-31-2003
A short update on my inquiry. I discovered that under Linux, the decorations
of JDialog and its appearance in the taskbar depends on the status of its
parent window:

If the parent window is displayed, the JDialog shows only a Close button,
and does not get iconified in the taskbar;

If the parent window is NOT displayed (as was in my case: I used a dummy
JFrame as the parent in order to pass the title bar icon to JDialog in
Windows OS) then JDialog shows all buttons in its title bar, and shows up in
the taskbar.

The interesting part is that in order to rid JDialog of the extra buttons
and prevent it from being shown in the taskbar, all I had to do was to
briefly make the dummy JFrame visible, and immediately after that make it
invisible again - that did the trick.

None of these acrobatics were necessary in Windows which is why my original
code worked fine there.

Live and learn...

Alex Molochnikov
Gestalt Corporation

"Roedy Green" <> wrote in message
news:...
> On Wed, 30 Jul 2003 00:41:29 GMT, "Alexandr Molochnikov"
> <> wrote or quoted :
>
> >Any ideas?

>
> I think it has to do with whether the dialog is implemented as a
> Window or as a native Dialog. Experiment with modal vs non modal.
>
> I think the problem is the underlying OS does not let Java control
> what appears in the task bar. It depends totally on the native widget
> Java uses.
>
> --
> Canadian Mind Products, Roedy Green.
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDialog to appear in Windows Taskbar RVince Java 5 05-03-2012 06:04 PM
Delphi 2007 + Themed support + WinXP64Pro + Side Taskbar = System Crash + Taskbar not working. Skybuck Flying Windows 64bit 4 08-27-2007 02:17 PM
help : my jar file is not running under linux terminal , but it runs under JbuilderX ide bronby Java 1 07-15-2005 07:23 AM
Day shown on taskbar and unable to make settings on taskbar displays. Charlie Evans Computer Support 4 05-31-2005 03:01 PM
Java application developped under Linux running ridiculously slow under Windows hshdude Java 12 11-04-2004 05:49 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57