使用4Gb Ram和IBM Java 1.5消失的按钮文本 [英] Button text disappearing with 4Gb Ram and IBM Java 1.5

查看:112
本文介绍了使用4Gb Ram和IBM Java 1.5消失的按钮文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在开发者网站上发生了一个非常奇怪的错误,我们无法复制自己。



波兰的一位开发人员最近升级了他的Windows XP Service Pack 3机器到4Gb的RAM
当他这样做时,他开始在使用IBM JDK 1.5
的java程序中遇到图形错误。这些错误只出现在IBM JDK 1.5中,而不是在任何其他版本中。



当您在表单上创建按钮或控件并将鼠标移到表单上时,问题就会显现出来。



我们有一个测试程序

  import java.awt.FlowLayout; 

import javax.swing.JButton;
import javax.swing.JFrame;

public class GraphicTest {
public static void main(String args []){
JFrame frame = new JFrame(GraphicTest);
frame.getContentPane()。setLayout(new FlowLayout());
frame.setSize(200,200);
JButton button = new JButton(Test button);
button.setVisible(true);
frame.getContentPane()。add(button);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}

直接显示问题。



然而,当我将相同的windows版本升级到Ram的4Gb时,问题不出现在我自己的机器上。



其他人曾见过这样的问题吗?

为了澄清这一点,这个问题只发生在IBM JDK 1.5上,而且只有当我们拥有4Gb的Ram时才会发生。它不会在任何其他版本的JDK上发生,如果我们将内存量减少到3 Gb,问题就会消失。尝试减少Windows图形驱动程序中的硬件优化(可通过扩展显示控制面板访问)。如果有问题的计算机具有使用主存储器一部分的板载图形适配器,则升级RAM可能会暴露驱动程序中的问题(或者RAM甚至可能有问题)。


We have a very strange error occurring at a developer site which we are unable to replicate ourselves.

A developer in Poland has recently upgraded his Windows XP Service Pack 3 machine to 4Gb of Ram When he did so he started experiencing graphical errors in java programs using IBM JDK 1.5 This errors only occur in IBM JDK 1.5 and not in any other version.

The problem manifests itself when you create a button or control on a form and move the mouse over it.

We have a test program

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class GraphicTest {
    public static void main(String args[]) {
        JFrame frame = new JFrame("GraphicTest");
        frame.getContentPane().setLayout(new FlowLayout());
        frame.setSize(200, 200);
        JButton button = new JButton("Test button");
        button.setVisible(true);
        frame.getContentPane().add(button);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}

which shows the problem straight away.

However the problem doesn't arise on my own machine when I upgrade the same windows version to 4Gb of Ram.

Has anyone else ever seen an issue like this?

Just to clarify this a bit, this issue only happens with IBM JDK 1.5 and only happens when we have 4Gb of Ram. It doesn't happen on any other version of the JDKs and if we reduce the amount of memory to 3 Gb the problem disappears.

解决方案

Try reducing the hardware optimization in Windows' graphics drivers (accessible through the extended display control panel). If the machine in question has an onboard graphics adapter that uses a part of the main memory, then upgrading RAM might expose problems in the driver (or the RAM may even be faulty).

这篇关于使用4Gb Ram和IBM Java 1.5消失的按钮文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆