当用户将鼠标悬停在触摸屏键盘下方的编辑字段上时,不会显示。显示的是一个与键盘大小相同的白色区域。这是 BlackBerry Torch 上的一个问题。我希望触摸屏键盘使用下面的代码正确显示?
BasicEditField nameField = 
    new BasicEditField(
        "  "+Local.getInfo8()+ " : ", "", 100, BasicEditField.FILTER_DEFAULT)
    {
        private int iRectX = getFont().getAdvance(getLabel());
        private int iRectWidth = backgroundButtonBitmap.getWidth() - iRectX - 4;
        public int getPreferredHeight() {
            return backgroundButtonBitmap.getHeight() / 2;
        }
        public void layout(int width, int height) {
            //setExtent(width, getPreferredHeight());
            super.layout(width, getPreferredHeight());
        }
        public void paint(Graphics g) {
            g.setColor(Color.BLACK);
            g.setBackgroundColor(Color.WHITE);
            //g.drawRect(iRectX, 0, iRectWidth, 20);
            super.paint(g);
        }
    };