-
Bug
-
Resolution: Fixed
-
P2
-
8u131, 9
-
b03
-
b172
-
x86
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8181558 | 10 | Alexander Zvegintsev | P2 | Resolved | Fixed | b11 |
JDK-8181277 | 9.0.4 | Alexander Zvegintsev | P2 | Resolved | Fixed | b01 |
JDK-8184879 | 8u162 | Alexander Zvegintsev | P2 | Resolved | Fixed | b01 |
JDK-8183466 | 8u161 | Alexander Zvegintsev | P2 | Resolved | Fixed | b01 |
JDK-8180287 | 8u152 | Alexander Zvegintsev | P2 | Resolved | Fixed | b05 |
JDK-8182208 | 8u151 | Unassigned | P2 | Resolved | Fixed | b01 |
JDK-8180380 | 8u141 | Alexander Zvegintsev | P2 | Closed | Fixed | b09 |
JDK-8192587 | emb-8u161 | Alexander Zvegintsev | P2 | Resolved | Fixed | b01 |
JDK-8184599 | emb-8u151 | Unassigned | P2 | Resolved | Fixed | b01 |
JDK-8180843 | emb-8u141 | Alexander Zvegintsev | P2 | Resolved | Fixed | b09 |
JDK-8187208 | openjdk7u | Alexander Zvegintsev | P2 | Resolved | Fixed | master |
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OSX 10.12 Sierra
A DESCRIPTION OF THE PROBLEM :
In a mixed JavaFx Swing Application with java version "1.8.0_131", JComboBox doesn't display popup
(see example code). This happens only on Apple OSX 10.12 Sierra. The program works well on Windows 10 and Linux Debian.
REGRESSION. Last worked in version 8u121
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start this and try to select the JComboBox
The popup doesn't appear
public class TestGuiSwing extends Application{
@Override
public void start(Stage primaryStage) throws Exception {
final SwingNode swingNode = new SwingNode();
createSwingContent(swingNode);
Pane pane = new Pane();
pane.getChildren().add(swingNode);
primaryStage.setTitle("Swing in JavaFX");
primaryStage.setScene(new Scene(pane, 500, 500));
primaryStage.show();
}
private void createSwingContent(final SwingNode swingNode) {
SwingUtilities.invokeLater(() -> {
JComboBox<String> cb = new JComboBox<String>();
cb.addItem("item 1");
cb.addItem("item 2");
cb.addItem("item 3");
cb.addItem("item 4");
JPanel jPanel = new JPanel();
jPanel.add(cb);
swingNode.setContent(jPanel);
});
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
If you select the JComboBox
the popup appears
ACTUAL -
If you select the JComboBox
the popup doesn't appear
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class TestGuiSwing extends Application{
@Override
public void start(Stage primaryStage) throws Exception {
final SwingNode swingNode = new SwingNode();
createSwingContent(swingNode);
Pane pane = new Pane();
pane.getChildren().add(swingNode);
primaryStage.setTitle("Swing in JavaFX");
primaryStage.setScene(new Scene(pane, 500, 500));
primaryStage.show();
}
private void createSwingContent(final SwingNode swingNode) {
SwingUtilities.invokeLater(() -> {
JComboBox<String> cb = new JComboBox<String>();
cb.addItem("item 1");
cb.addItem("item 2");
cb.addItem("item 3");
cb.addItem("item 4");
JPanel jPanel = new JPanel();
jPanel.add(cb);
swingNode.setContent(jPanel);
});
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
no workaround
- backported by
-
JDK-8180287 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8180843 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8181277 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8181558 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8182208 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8183466 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8184599 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8184879 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8187208 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8192587 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Resolved
-
JDK-8180380 [macos] JComboBox doesn't display popup in mixed JavaFX Swing Application on 8u131 and Mac OS 10.12
- Closed