
JavaFX2 debug causes multi layout to not respond
I registered just to share the behavior that I'm seeing. If you have multiple MigPanes with buttons, and turn on debug, some of your button's do not respond. Nodes in the Pane seem to be unresponsive.
Here is an example:
Code:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;
import org.tbee.javafx.scene.layout.MigPane;
public class MigTest extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(final Stage stage) throws InterruptedException {
stage.setTitle("MigPane example");
Button newBtn = new Button("New");
MigPane layout = new MigPane();
layout.add(newBtn);
MigPane mp = new MigPane("debug");
mp.add(new Button("FOOO1"));
layout.add(mp);
MigPane mp2 = new MigPane();
mp2.add(new Button("FOOO2"));
layout.add(mp2);
Scene scene = new Scene(layout);
stage.setScene(scene);
stage.show();
}
}
The "debug" constraint causes button "New" to not work. If I remove the "debug" constraint things work as you would expect, "New" responds to clicks.