我正试图在stage.initStyle(StageStyle.UNDECORATED);上创建一个自定义边框
它不起作用,我也不知道我做错了什么。
// Using Pane to able to customize children
Pane rootPane = new Pane();
// my main.css is src/main/resources
rootPane.getStylesheets().add("main.css");
// rootPane is the name of the css class
rootPane.getStyleCla
我一直在使用SWT (GUI库Eclipse使用),我希望使用Swing创建以下内容。
前面的屏幕截图是由以下代码使用SWT完成的
public static void main(String[] args) {
Display display = new Display();
final Shell shell = new Shell(display, SWT.RESIZE);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())