hbox

    0熱度

    1回答

    如何使按鈕事件寫在一個文本框的輸出,因爲按鈕處於橫向盒 和其他在一個文本框,因爲我使用borderpane。 在操作事件的按鈕應該在文本字段寫入已選定的文件簽名 這是什麼問題的解決方案的結束? public class Filrsystemencryption extends Application { private HBox getHBox() { HBox hbButtons =

    0熱度

    1回答

    { layout: { type: 'hbox' }, items: [ { xtype: 'selectfield', placeHolder: 'selectfield', autoSelect: false, },

    0熱度

    1回答

    假設我HBox中有以下孩子: <HBox fx:id="hBox" xmlns="http://javafx.com/javafx/8.0.102-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="gui.controllers.ChatMessageController"> <children> <TextFlow

    1熱度

    1回答

    我的Hbox裏面有標籤。這個盒子有時更小,有時更大。有沒有辦法強制它的孩子(標籤)調整大小,如:label1首先調整大小,如果它不能小於label2大小,如果它不能更小label3大小調整等?

    0熱度

    1回答

    當貨幣標籤(進入moneyBox)不超過5位時,一切都很好,但是當錢增加時,設計就會變得混亂。我該如何解決它? StackPane bottom = new StackPane(); VBox vboxBottom = new VBox(); HBox hboxBottomElements = new HBox(15); HBox hboxBottomMain = n

    0熱度

    2回答

    我想要獲得2個元素,一個按鈕和一個標籤,以便在javafx中的單個HBox中擁有自己的對齊。我的代碼到目前爲止: Button bt1= new Button("left"); bt1.setAlignment(Pos.BASELINE_LEFT); Label tst= new Label("right"); tst.setAlignment(Pos.BASELINE_RIGHT);

    0熱度

    1回答

    我想它會好起來,當數字變量被改變時,但是當增加時按鈕從窗口中消失。如何解決它?另外如何把酒吧降到「10 $」的水平,所以他們將在同一排? 前: 後: 這裏是我的代碼: VBox vboxBottom = new VBox(); HBox hboxBottomElements = new HBox(15); HBox hboxBottomMain = new HBox(0); Region

    0熱度

    3回答

    我想改變在hbox中每個BUTTOM的位置: HBox buttom = new HBox(); Button delete_button = new Button("Delete"); Button showAll_button = new Button("Show All"); Button back_button = new Button("Back"); buttomPaneR

    -1熱度

    1回答

    我是JavaFx中的新成員,並且我花了太多時間嘗試動態地放置單選按鈕+文本字段。輸入號碼後,我想用那種方法顯示我的單選按鈕和我的TextField(藍色和紅色的) 但我得到這個: 我試過vbox,hbox,他們都是,但它不起作用! 任何人都可以找出我的代碼中的問題,請!!!感謝您的幫助 RadioButton[] btn = new RadioButton[100]; //our Collecti

    -1熱度

    1回答

    當我運行下面的代碼時,會出現單選按鈕,但不是按鈕旁邊顯示的文本,只有3個三個小點'...'。請問爲什麼? RadioButton rd= new RadioButton("Hello"); rd.setPrefSize(500, 500) HBox hB = new HBox(); myDialog.getDialogPane().getChildren().add(