Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bad screen redrawing in Oracle SQL Developer

I have a problem with Oracle SQL Developer. When I use it on a Windows Server 2003 machine, it works fine. When I use it on my Windows 7 desktop, I get a lot of redraw problems in the query results grid when I scroll either horizontally or vertically, like so:

Edit: ImageShack was the original image host for my screenshot, and it's no longer a valid url. Since my problem is fixed now, I can't repro this. The gist is that the client area of the result grids was repainted as gibberish during scrolling.

This makes it tricky to assess the results of your queries. Clicking on the header and on individual cells causes it to then redraw properly, but it's goofy to not be able to just scroll normally. Is there any way to fix this? I am using the current version of SQL Developer 1.5.5 with the included JVM.

like image 227
Chris Farmer Avatar asked Sep 15 '09 16:09

Chris Farmer


3 Answers

I couldn't even see the dropdown list when I clicked Tools. Here's what I did.

  1. Click Tools
  2. Try to locate Preferences by moving your mouse downwards starting from the Tools button.
  3. When in Preferences, do the same in step 2 for the left side of the panel and try to locate Environment.
  4. When in 'Environment', try to locate 'Look and Feel'. You won't be able to see the caption but it has these values: Windows | Oracle. You'll know you found it when you see a dropdown with an actual value of Oracle.
  5. Change it to Windows.

That solved my problem.

To hell with these kinds of stupid problems.

like image 84
Emre Türkiş Avatar answered Jan 04 '23 09:01

Emre Türkiş


You need to turn off DirectDraw -- see http://tiredblogger.wordpress.com/2009/05/29/configuring-oracle-sql-developer-for-windows-7/, specifically the bit where they add the following to sqldeveloper.conf:

AddVMOption -Dsun.java2d.noddraw=true
like image 41
William Rose Avatar answered Jan 04 '23 10:01

William Rose


I finally solved the problem: Go to \sqldeveloper\bin\sqldeveloper.conf and add this line:

AddVMOption -Duser.language=en

The problem was de user language (in spanish do not works)

like image 42
David Avatar answered Jan 04 '23 10:01

David