• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cross platform issues with repaint and also JOptionPane mixed with Windows  RSS feed

 
Tim Jameson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I've been working on a program on Ubuntu and ran into a problem. I'm trying to create a control panel that will disappear then reappear. So I call contentPane.remove(JPanel jp) until I remove all the panels which hold my jbuttons then repaint but they are still displayed. I run the same code on Windows and they disappear???

Here's a quick sample of code that behaves this way:


Works fine on Windows but will not work on Ubuntu.
Another issue I ran into which was actually posted on another forum with no replies:
This might be a personal annoyance but why is it the JOptionPane.showInputDialog() is hidden behind JWindows on Linux (GNOME / X11)?
Works fine on Windows but so far on Linux I can't find a hack to make it work.
Tried various Look and Feels.
I tried using alwaysOnTop(false) for the JWindow
I tried using alwaysOnTop(true) for an extended JDialog

I'm curious if anybody else has found a hack for this or has anymore information.


The latter is not as much a concern as the former.
So how can I get this "slide out" control panel to work?
What am I missing?



 
Tim Jameson
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Odd. seems to work fine on a different version of Ubuntu. Must have something to do with a setting, missing update or program on my Linux system. I guess I should look on the other side for 'hacks' or corrections.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also check the Java version on the errant machine. Some Linux distros include the infamous GNU Java aka unJava.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!