この小さなJavaFXのテストアプリケーションJavaFX:なぜstage.setResizable(false)が余白を増やすのですか?
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
public class ApplicationWithNonResizableStage extends Application {
public static void main(final String[] args) {
launch(args);
}
@Override
public void start(final Stage primaryStage) throws Exception {
final Rectangle rectangle = new Rectangle(200, 100, Color.POWDERBLUE);
final BorderPane pane = new BorderPane(rectangle);
final Scene scene = new Scene(pane);
primaryStage.setScene(scene);
primaryStage.setResizable(false);
primaryStage.show();
}
}
不要なパディングを持つウィンドウを作成:
コールprimaryStage.setResizable(false)
を削除
も効果を削除します。
は何ですか間違っている?
解決方法が見つかりましたか?他のコンポーネントにも影響があります:http://stackoverflow.com/questions/22620919/combobox-options-receive-margin-upon-making-the-stage-resizable – tvkanters
@TVK:私はステージの問題を解決できました。 –
は私のバグのように見えますが、FXの問題追跡ツールで問題を提出することを検討するかもしれません – kleopatra