Open xcfdszzr opened 2 years ago
I've tried the same example on Windows and it seems to work just fine, will test this on a Mac a bit later to see if I can reproduce the problem there.
In the meantime, here are a few additional questions:
Just for reference, this is how I displayed the popup -
new WebButton ( "test", e -> {
final WebPopup popup = new WebPopup ( StyleId.of ( "element-choose" ) );
final WebStyledLabel content = new WebStyledLabel ( "{Sample:b}" );
content.setPreferredSize ( 500, 400 );
popup.add ( content );
final Component src = ( Component ) e.getSource ();
popup.showPopup ( src, 0, src.getHeight () );
} )
And I used the exact popup style you have provided.
mac os 12.3.1
jdk 1.8
public RunErrorPopup(EditorTree editorTree, String message, String detailMsg) {
super(StyleId.of("element-choose"));
}
this.setPreferredSize(480, 160);
public static void showRunErrorPopup(EditorTree editorTree, String message, String detailMsg, int x, int y) {
if (runErrorPopup != null) {
runErrorPopup.hidePopup();
}
runErrorPopup = new RunErrorPopup(editorTree, message,detailMsg);
runErrorPopup.setVisible(true);
runErrorPopup.showPopup(editorTree, x, y);
}
jdk 1.8
What is the specific update number/vendor? It rarely matters, but I seen a few cases where some features worked differently within the same major version.