Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用系统默认的最小化、最大化和关闭按钮覆盖自定义外观_Java_Swing_Button_System - Fatal编程技术网

Java 使用系统默认的最小化、最大化和关闭按钮覆盖自定义外观

Java 使用系统默认的最小化、最大化和关闭按钮覆盖自定义外观,java,swing,button,system,Java,Swing,Button,System,是否可以获取标题栏中关闭、最小化/最大化和还原向下按钮的默认系统图标?我使用的是来自jtattoo的定制外观,但我更愿意使用系统标题栏图标。我已经试过了,但是宽度和高度都是负值,按钮是空的 Icon closeIcon = UIManager.getIcon("InternalFrame.closeIcon"); SmartLookAndFeel.setCurrentTheme(props); UIManager.setLookAndFeel("com.jtattoo.p

是否可以获取标题栏中关闭、最小化/最大化和还原向下按钮的默认系统图标?我使用的是来自jtattoo的定制外观,但我更愿意使用系统标题栏图标。我已经试过了,但是宽度和高度都是负值,按钮是空的

Icon closeIcon = UIManager.getIcon("InternalFrame.closeIcon");
SmartLookAndFeel.setCurrentTheme(props);            
UIManager.setLookAndFeel("com.jtattoo.plaf.smart.SmartLookAndFeel");
UIManager.put("InternalFrame.closeIcon", closeIcon);

不是真的。您很可能需要一个基于JNI/JNA的解决方案,即使这样,它也不可能真正起作用。您很可能需要一个基于JNI/JNA的解决方案,即使这样,它也不太可能工作