java8不支持swing_在使用Java 8的Solaris上,Swing JButton无法正确呈现

When running a Java 8 application on Solaris 11, the Swing components like JButton fail to render properly. The issue doesn't occur with Java 6. Attempts to change Look and Feel (L&F) didn't resolve the problem. The dialog box code is provided, but buttons appear without text when using 'GTKLookAndFeel'. The issue is observed only on specific Windows versions." 113147972,10541857,Navicat远程MySQL数据库导入本地数据问题及解决,"['navicat', 'mysql数据库', '数据库迁移']
摘要由CSDN通过智能技术生成

我已从

Windows机器连接到Solaris 11.我已将DISPLAY设置为我的机器.我正在使用

Java 8.

注意:使用Java 6时,这很好用.

当我启动对话框时,它的按钮和其他摆动组件不会被渲染.

观察到它的作用

o Windows 7企业版

o Windows Server 2012 Enterprise

我试过更换L& F但是没用.当我使用“GTKLookAndFeel”时,按钮出现但没有文字/标签.

任何帮助是极大的赞赏.如果需要任何详细说明,请告诉我.谢谢.

我的对话框的代码如下

package com.ui;

import javax.swing.SwingUtilities;

public class SimpleDialog extends java.awt.Dialog {

private static final long serialVersionUID = -8298472889742780386L;

public SimpleDialog(java.awt.Frame parent,boolean modal) {

super(parent,modal);

initComponents();

}

/** This method is called from within the constructor to

* initialize the form.

* WARNING: Do NOT modify this code. The content of this method is

* always regenerated by the Form Editor.

*/

// //GEN-BEGIN:initComponents

private void initComponents() {

btnSkip = new javax.swing.JButton();

btnRetry = new javax.swing.JButton();

btnAbort = new javax.swing.JButton();

jScrollPane1 = new javax.swing.JScrollPane();

lblMessage = new javax.swing.JTextArea();

btnViewLog = new javax.swing.JBut

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值