javafx窗口程序

javafx窗口程序

ID:38189947

大小:18.00 KB

页数:3页

时间:2019-05-24

javafx窗口程序_第1页
javafx窗口程序_第2页
javafx窗口程序_第3页
资源描述:

《javafx窗口程序》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、importjavafx.application.Application;importjavafx.scene.Scene;importjavafx.scene.layout.Priority;importjavafx.scene.control.Button;importjavafx.geometry.Pos;importjavafx.scene.control.TextArea;importjavafx.scene.effect.Light;importjavafx.scene.effect.Lighting;importjavafx.scene.layout.Bord

2、erPane;importjavafx.scene.layout.HBox;importjavafx.scene.layout.StackPane;importjavafx.scene.layout.VBox;importjavafx.stage.Stage;publicclassLayoutLabextendsApplication{publicstaticvoidmain(String[]args){LayoutLab.launch(args);}publicvoidstart(Stagestage){stage.setTitle("FTPExample");Stack

3、Paneroot=newStackPane();BorderPanelayout=newBorderPane();HBoxhtop=newHBox(5);TextAreat1=newTextArea();t1.setPrefRowCount(5);t1.setText("Messagelog");htop.getChildren().add(t1);layout.setTop(htop);HBoxhbottom=newHBox(5);TextAreat2=newTextArea();t2.setPrefRowCount(6);t2.setText("Transfer

4、QueueLog");hbottom.getChildren().add(t2);layout.setBottom(hbottom);VBoxvcenter=newVBox(4);layout.setCenter(vcenter);HBoxhtcenter=newHBox(5);HBoxhbcenter=newHBox(20);TextAreat3=newTextArea();t3.setPrefRowCount(6);t3.setText("LocalSiteDirectory1.2.3.4.");TextAreat4=newTextArea();t4.s

5、etPrefRowCount(6);t4.setText("RemoteSiteDirectory1.2.3.4.");htcenter.getChildren().add(t3);htcenter.getChildren().add(t4);vcenter.getChildren().add(htcenter);TextAreat5=newTextArea();TextAreat6=newTextArea();t5.setPrefRowCount(11);t6.setPrefRowCount(11);t5.setText("LocalFileThisi

6、sanExpndingArea");t6.setText("RemoteFilesThisisanExpndingArea");VBoxvccenter=newVBox(5);vccenter.getChildren().add(newButton(">>"));vccenter.getChildren().add(newButton("<<"));vccenter.setAlignment(Pos.CENTER);hbcenter.getChildren().add(t5);hbcenter.getChildren().add(vccenter);hbcenter.g

7、etChildren().add(t6);vcenter.getChildren().add(hbcenter);vccenter.setMinWidth(50);HBox.setHgrow(t1,Priority.ALWAYS);HBox.setHgrow(t2,Priority.ALWAYS);HBox.setHgrow(t3,Priority.ALWAYS);HBox.setHgrow(t4,Priority.ALWAYS);HBox.setHgrow(t5,Priority.ALWAYS);HBox.set

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。