当前位置: 首页 > news >正文

用vs2010做免费网站模板下载地址往网站添加图片吗

用vs2010做免费网站模板下载地址,往网站添加图片吗,首饰盒东莞网站建设,龙华百度快速排名VBox布局将子节点堆叠在垂直列中。新添加的子节点被放置在上一个子节点的下面。默认情况下#xff0c;VBox尊重子节点的首选宽度和高度。 当父节点不可调整大小时#xff0c;例如Group节点#xff0c;最大垂直列的宽度基于具有最大优选宽度的节点。 默认情况下#xff0c;…VBox布局将子节点堆叠在垂直列中。新添加的子节点被放置在上一个子节点的下面。默认情况下VBox尊重子节点的首选宽度和高度。 当父节点不可调整大小时例如Group节点最大垂直列的宽度基于具有最大优选宽度的节点。 默认情况下每个子节点与左上(Pos.TOP_LEFT)位置对齐。 示例 以下代码将TextArea控件设置为在调整父VBox的高度时垂直增长 TextArea myTextArea new TextArea(); //设置后跟随外边框增长 VBox.setHgrow(myTextArea, Priority.ALWAYS); 完整的代码如下所示 import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TextArea; import javafx.scene.layout.Priority; import javafx.scene.layout.VBox; import javafx.scene.paint.Color; import javafx.stage.Stage;public class Main extends Application {Overridepublic void start(Stage primaryStage) {TextArea myTextArea new TextArea();VBox hbox new VBox();hbox.getChildren().add(myTextArea);//设置以后跟随外边框增长VBox.setVgrow(myTextArea, Priority.ALWAYS);Scene scene new Scene(hbox, 320, 112, Color.rgb(0, 0, 0, 0));primaryStage.setScene(scene);primaryStage.show();}public static void main(String[] args) {launch(args);} } 示例 下面的代码使用四个矩形来演示VBox的使用。 import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.scene.shape.Rectangle; import javafx.stage.Stage;public class Main extends Application {Overridepublic void start(Stage primaryStage) {Group root new Group();Scene scene new Scene(root, 300, 250);// 5 pixels space between child nodesVBox vbox new VBox(5);// 1 pixel padding between child nodes onlyvbox.setPadding(new Insets(1));Rectangle r1 new Rectangle(10, 10);Rectangle r2 new Rectangle(20, 100);Rectangle r3 new Rectangle(50, 20);Rectangle r4 new Rectangle(20, 50);VBox.setMargin(r1, new Insets(2, 2, 2, 2));vbox.getChildren().addAll(r1, r2, r3, r4);root.getChildren().add(vbox);primaryStage.setScene(scene);primaryStage.show();}public static void main(String[] args) {launch(args);} } VBox间距 VBox vbox new VBox(8); // spacing 8 vbox.getChildren().addAll(new Button(Cut), new Button(Copy), new Button(Paste)); 完整的实现代码如下所示 import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.VBox; import javafx.stage.Stage;public class Main extends Application {Overridepublic void start(final Stage stage) {stage.setTitle(HTML);stage.setWidth(500);stage.setHeight(500);Scene scene new Scene(new Group());VBox vbox new VBox(8); // spacing 8vbox.getChildren().addAll(new Button(Cut), new Button(Copy), new Button(Paste));scene.setRoot(vbox);stage.setScene(scene);stage.show();}public static void main(String[] args) {launch(args);} } 设置填充和间距 import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.VBox; import javafx.scene.text.Font; import javafx.scene.text.FontWeight; import javafx.stage.Stage;public class Main extends Application {public static void main(String[] args) {Application.launch(args);}Overridepublic void start(Stage primaryStage) {primaryStage.setTitle(VBox Test);// VBoxVBox vb new VBox();vb.setPadding(new Insets(10, 50, 50, 50));vb.setSpacing(10);Label lbl new Label(VBox);lbl.setFont(Font.font(Amble CN, FontWeight.BOLD, 24));vb.getChildren().add(lbl);// ButtonsButton btn1 new Button();btn1.setText(Button1);vb.getChildren().add(btn1);Button btn2 new Button();btn2.setText(Button2);vb.getChildren().add(btn2);Button btn3 new Button();btn3.setText(Button3);vb.getChildren().add(btn3);Button btn4 new Button();btn4.setText(Button4);vb.getChildren().add(btn4);// Adding VBox to the sceneScene scene new Scene(vb);primaryStage.setScene(scene);primaryStage.show();} }
http://www.hkea.cn/news/14363365/

相关文章:

  • 分享到各大网站 代码专门做任务的网站6
  • 西安蓝海网站建设建设银行官方网站客户端
  • 学院网站改造方案一天挣5000元的偏门路子
  • 软件定制网站建设国外网站后台模板下载
  • 徐州网站建设 徐州网站推广做网站自己有模板要花多少钱
  • 浏览器网站入口网站功能介绍是什么
  • 自己网站视频直播怎么做优化网站用什么软件好
  • 分析seo网站怎么给一个网站做搜索功能
  • 怎么用外网校内网站做英语绍兴中小企业名录
  • 网站建设论文框架怎样利用网站做淘宝客
  • 网址查询网站北京网站排行
  • 做调查用哪个网站网页版传奇排行榜
  • 软件自学网站长春网站建设于健
  • 免费网站设计网站毕业设计图纸去哪里找
  • 快速做彩平图得网站网站模板怎么设计
  • 网站建设与管理的实训福泉市自己的网站
  • 郴州网站seo外包凌晨网站建设公司
  • 怎么建设物流网站怎样重装电脑wordpress
  • 企业cms建站佛山 详情公布
  • 官方网站建设要点中国流量最大的网站排行
  • 网站建设联雅详情页设计思路遵循哪五个营销环节
  • 漳州 做网站wordpress主题一键生成
  • 网站建设开发报价明细电子营销主要做什么
  • 做网站需要什么服务器配置专业网站制作需要多少钱
  • 温州网站建设推广专家百度广州分公司是外包吗
  • 购物网站开发教学视频嘉定网站设计制作公司
  • 做期货网站违法的吗wordpress食谱
  • 电子商务网站建设项目的阶段的划分网址做
  • 玩具公司网站设计论文做网站要准备什么
  • 网站临时会话防网站黑客