JBuilder 3.5 | 4 painting problems in Windows 9x
By: Josh Fletcher
Abstract: Workarounds for painting issues when running JBuilder 3.5 | 4 on Windows 95 or 98
|
Question:
|
|
I have JBuilder 3.5 | 4 installed in my Windows 95/98 machine.
- When I click on the tabs in the component pallet, the text becomes broken. Or...
- When I click on the tabs in any window, the text becomes broken. Or...
- When I highlight some text in a window (including selecting icons in the File | New menu), after I move the mouse, a portion of the selection looks unselected (i.e. highlight disappears).
Why is this?
|
| |
|
Answer:
|
|
This has been confirmed to be a problem between JFC (Swing) and DirectX. There are several workarounds:
- Rename/delete ddraw.dll, thereby disabling Direct Draw. While this does work, it is not recommended as you are deleting a major portion of DirectX and the painting performance of JBuilder will suffer. This workaround may also not work, as I tested this on two systems: a P2-333 with Win 95, DirectX 6.1, and Ati's beta Rage Pro drivers; and a P2-333 with Win 95, DirectX 6.1, and an older version of Ati's drivers. The system with the older Ati drivers did not exhibit the problem, indicating that this may be more video driver related,
rather than DirectX related.
- Another solution has surfaced on the newsgroups, and has fixed
the problem for all known customers. If you disable custom mouse pointers (i.e. set the pointers selection to "none") the problem goes away. This seems to be the best workaround.
- Another user has reported that turning off "Mouse Trails" fixes the
problem.
- Finally, a new Java Virtual Machine argument has been introduced in JDK 1.2.2 that allows you to disable DirectDraw for you Java programs. For JBuilder 3.0 Foundation, you can add this argument to your "jbuilder.bat" file as follows:
- Open the jbuilder.bat file for editing.
- Find the line that says "set vmargs=".
- Add "-Dsun.java2d.noddraw" to that line so it looks like:
set vmargs=-Dsun.java2d.noddraw
For JBuilder 3.5 | 4, open your "jdk.config" file and search for the line that says:
#vmparam -Dsun.java2d.noddraw
and remove the '#' sign to uncomment the line.
Note that this change will impact JBuilder's performance by making the painting slower.
|
| |
Server Response from: BDN10A