Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7ed2807

Browse files
committed
BorderPanel & ComboBox
1 parent de85517 commit 7ed2807

File tree

12 files changed

+221
-0
lines changed

12 files changed

+221
-0
lines changed

‎JavaFX/BorderPaneLayout/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
out
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
<orderEntry type="library" name="javafx-11" level="application" />
11+
</component>
12+
</module>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module BorderPaneLayout {
2+
requires javafx.fxml;
3+
requires javafx.controls;
4+
5+
opens sample;
6+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sample;
2+
3+
public class Controller {
4+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package sample;
2+
3+
import javafx.application.Application;
4+
import javafx.fxml.FXMLLoader;
5+
import javafx.scene.Parent;
6+
import javafx.scene.Scene;
7+
import javafx.stage.Stage;
8+
9+
public class Main extends Application {
10+
11+
@Override
12+
public void start(Stage primaryStage) throws Exception{
13+
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
14+
primaryStage.setTitle("Hello World");
15+
primaryStage.setScene(new Scene(root, 300, 275));
16+
primaryStage.show();
17+
}
18+
19+
20+
public static void main(String[] args) {
21+
launch(args);
22+
}
23+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?import javafx.geometry.Insets?>
2+
3+
<?import javafx.scene.control.Button?>
4+
<?import javafx.scene.layout.HBox?>
5+
6+
<?import javafx.scene.layout.BorderPane?>
7+
<?import javafx.scene.control.Label?>
8+
<BorderPane fx:controller="sample.Controller"
9+
xmlns:fx="http://javafx.com/fxml" >
10+
<top>
11+
<Label text="This label is in the top position" alignment="center"
12+
BorderPane.alignment="center"
13+
style="-fx-border-color: blue; -fx-border-width: 3; -fx-border-style: dashed"/>
14+
</top>
15+
<bottom>
16+
<HBox spacing="10" alignment="bottom_right">
17+
<padding>
18+
<Insets bottom="10" right="10"/>
19+
</padding>
20+
<Button text="Okay" prefWidth="90"/>
21+
<Button text="Cancel" prefWidth="90"/>
22+
<Button text="Help" prefWidth="90"/>
23+
</HBox>
24+
</bottom>
25+
</BorderPane>

‎JavaFX/ComboBox-and-ChoiceBox/.DS_Store

6 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
out
3+
*.jar
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
<orderEntry type="module-library" exported="">
11+
<library>
12+
<CLASSES>
13+
<root url="jar://$MODULE_DIR$/jlfgr-1_0.jar!/" />
14+
</CLASSES>
15+
<JAVADOC />
16+
<SOURCES />
17+
</library>
18+
</orderEntry>
19+
</component>
20+
</module>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package sample;
2+
3+
public class Controller {
4+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /