-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
fx2.0.1
-
Windows 7 - 64 bits
jdk1.7.0_01 - 32 bits
jfx 2.0.1 - 32 bits
I have 5 tabs, each with a TextArea inside. I open the app, I select the TextArea on the first Tab, and I write, everything's fine. When I switch to the second tab I don't seem to be able to focus on the TextArea (mouse cursor is an arrow and if I click it doesn't do anything), unless I go to the top left corner of the TextArea. It's like there's this small square, inside which I can focus the TextArea. But on the rest of the TextArea's space, I can't focus it, hence I can't write. Please let me know if you need more detail or a screenshot or whatever.
public class TabbedApp extends Application {
Group root = new Group();
TabPane tabPane = new TabPane();
public void init() {
// Prepare tab pane with set of tabs
BorderPane borderPane = new BorderPane();
tabPane.setPrefSize(400, 400);
tabPane.setSide(Side.TOP);
tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
for(int i=1; i<=5; i++) {
final Tab t = new Tab("T" + i);
t.setId(""+i);
TextArea ta = new TextArea();
t.setContent(ta);
tabPane.getTabs().add(t);
}
borderPane.setCenter(tabPane);
root.getChildren().add(borderPane);
}
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setScene(new Scene(root));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
public class TabbedApp extends Application {
Group root = new Group();
TabPane tabPane = new TabPane();
public void init() {
// Prepare tab pane with set of tabs
BorderPane borderPane = new BorderPane();
tabPane.setPrefSize(400, 400);
tabPane.setSide(Side.TOP);
tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
for(int i=1; i<=5; i++) {
final Tab t = new Tab("T" + i);
t.setId(""+i);
TextArea ta = new TextArea();
t.setContent(ta);
tabPane.getTabs().add(t);
}
borderPane.setCenter(tabPane);
root.getChildren().add(borderPane);
}
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setScene(new Scene(root));
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
- relates to
-
JDK-8128720 TextArea: focus is not gained by clicking on empty area
-
- Closed
-