Browse Source

边框问题

newui
renekton 6 months ago
parent
commit
bceaac2fc7
  1. 21
      designer-base/src/main/java/com/fr/design/gui/frpane/UIBubbleFloatPane.java

21
designer-base/src/main/java/com/fr/design/gui/frpane/UIBubbleFloatPane.java

@ -328,6 +328,17 @@ public abstract class UIBubbleFloatPane<T> extends BasicBeanPane<T> {
final JPanel contentPane = (JPanel) this.getContentPane();
this.setLayout(null);
contentPane.add(UIBubbleFloatPane.this);
setContentBorder(contentPane);
}
/**
* 检查
*/
public void checkValid() throws Exception {
}
private void setContentBorder(JPanel contentPane) {
if (SystemInfo.isWindows) {
contentPane.setBorder(new Border() {
@Override
@ -350,15 +361,9 @@ public abstract class UIBubbleFloatPane<T> extends BasicBeanPane<T> {
return false;
}
});
} else {
contentPane.setBorder(null);
}
}
/**
* 检查
*/
public void checkValid() throws Exception {
}
}
}
Loading…
Cancel
Save