Skip to main content

JDesktopPane

2 replies [Last post]
ch4os
Offline
Joined: 2008-12-08

Hi,

for my application I use a JDesktopPane and InternalFrames.
I am working on a Windows vista system and netbeans 6.5.

When I run the project and open a internalframe (is added to the JDesktopPane)
everything runs just fine.

But when I build it into a executable jar file and start draging the internalframe arround.
Then it won't move arround that smooth and it spikes my cpu usage.

My JDesktopPane is set

<br />
dp.setDragMode(javax.swing.JDesktopPane.OUTLINE_DRAG_MODE);<br />

and adding Internalfames

<br />
  RapportenJIntFrame RapportenJIntFrame = new RapportenJIntFrame();<br />
  dp.add(RapportenJIntFrame);<br />
  dp.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);<br />
  RapportenJIntFrame.setVisible(true);<br />

On my windows xp computer it works perfect.

How can I make this work?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
linuxhippy
Offline
Joined: 2004-01-07

don't set OUTLINE_DRAG_MODE.
As far as I know that makes the new Direct3D pipeline angry.

If you need the OUTLINE mode you could try starting the application with -Dsun.java2d.d3d=false, but this will cause all rendering to be done by the CPU.

- Clemens

ch4os
Offline
Joined: 2008-12-08

I removed the properties that set the outline mode and now it works just perfect.

Thanks for your help.

- Ch4os