You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
The focus is not correctly managed for Swing controls when there are more than one SwingNode in the same Stage and it is impossible to give the focus to any Swing controls when more than
Steps to reproduce the problem :
open a stage with two SwingNode, both containing some JTextField
try to give the focus to the JTextField in the first SwingNode with keyboard or mouse
=> The JTextField can get the focus
try to give the focus to the JTextField in the second SwingNode with keyboard or mouse
=> Problem: it is impossible to give the focus to the JTextField in the second SwingNode
open a second empty Stage within the same application
=> Problem: it is impossible to give the focus to any JTextField in both SwingNode of the primary Stage
Close the second Stage:
=> Problem: it is still impossible to given the focus to any JTexField in both SwingNode of the primary Stage
Observations:
The problem does not happen on Windows
No exception raised
On point 4), there is no need to show the Stage to reproduce the problem (the creation of the Stage without displaying it is enough)
The focus is not correctly managed for Swing controls when there are more than one SwingNode in the same Stage and it is impossible to give the focus to any Swing controls when more than
Steps to reproduce the problem :
=> The JTextField can get the focus
=> Problem: it is impossible to give the focus to the JTextField in the second SwingNode
=> Problem: it is impossible to give the focus to any JTextField in both SwingNode of the primary Stage
=> Problem: it is still impossible to given the focus to any JTexField in both SwingNode of the primary Stage
Observations:
Environment:
EXAMPLE CODE:
package application;
import java.awt.GridLayout;
import java.util.concurrent.atomic.AtomicInteger;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javafx.application.Application;
import javafx.embed.swing.SwingNode;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class SwingNodeFocus extends Application {
}
The text was updated successfully, but these errors were encountered: