{"id":197690,"date":"2013-10-16T20:44:03","date_gmt":"2013-10-16T16:44:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=197690"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=197690","title":{"rendered":"<span class=\"post_title\">JavaFX, HelloWorld \u2014 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \tHelloWorld \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e Oracle \u0432 \u00abGetting Started with JavaFX\u00bb, \u043d\u0430 \u041f\u041a \u0441 Windows. \u0420\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e \u043e\u043a\u043d\u0430 \u0432\u0432\u043e\u0434\u0430 \u043b\u043e\u0433\u0438\u043d\u0430 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f. \u041f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u043f\u0440\u0438\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\u043c \u043d\u0435\u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0412 <a href=\"http:\/\/habrahabr.ru\/post\/197494\" title=\"JavaFX \u2014 \u0431\u0435\u0437\u044b\u0434\u0435\u0439\u043d\u044b\u0439 HelloWorld\"> \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u043f\u043e\u0441\u0442\u0435<\/a> \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 <a href=\"http:\/\/docs.oracle.com\/javafx\/2\/get_started\/jfxpub-get_started.htm\">Getting Started with JavaFX<\/a>.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">HelloWorld.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package helloworld;   import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage;   public class HelloWorld extends Application {     public static void main(String[] args) {         launch(args);     }          @Override     public void start(Stage primaryStage) {         primaryStage.setTitle(&quot;Hello World!&quot;);         Button btn = new Button();         btn.setText(&quot;Say 'Hello World'&quot;);         btn.setOnAction(new EventHandler&lt;ActionEvent&gt;() {               @Override             public void handle(ActionEvent event) {                 System.out.println(&quot;Hello World!&quot;);             }         });                  StackPane root = new StackPane();         root.getChildren().add(btn);         primaryStage.setScene(new Scene(root, 300, 250));         primaryStage.show();     } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0431\u044b\u043b \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d, \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d \u0432 jar \u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0438\u0437 jar \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u043c\u0430\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"dos\">@&quot;C:\\Program Files\\Java\\jdk1.7.0_40\\bin\\javac&quot; -d out -classpath &quot;C:\\Program Files\\Java\\jre7\\lib\\jfxrt.jar&quot; src\\helloworld\\HelloWorld.java @&quot;C:\\Program Files\\Java\\jdk1.7.0_40\\bin\\java&quot; -classpath &quot;C:\\Program Files\\Java\\jre7\\lib\\jfxrt.jar;.\\out&quot; helloworld.HelloWorld @&quot;C:\\Program Files\\Java\\jdk1.7.0_40\\bin\\javafxpackager&quot; -createjar -appclass helloworld.HelloWorld -srcdir .\\out -outfile HelloWorld -v @&quot;C:\\Program Files\\Java\\jre7\\bin\\java.exe&quot; -jar HelloWorld.jar @pause <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041a\u0430\u0436\u0434\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0431\u044b\u043b\u0430 \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b .cmd. \u0417\u0430\u0431\u0430\u0432\u043d\u043e, \u043d\u043e \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>  \u0412\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0443 \u0432\u0432\u043e\u0434\u0430 \u043b\u043e\u0433\u0438\u043d\u0430 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f, \u0441 <strike>\u0431\u043b\u044d\u043a\u0434\u0436\u0435<\/strike> \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0440\u0430\u0437\u0432\u0438\u0442\u044c \u0438\u043c\u0435\u044e\u0449\u0438\u0439\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u043a\u0430\u043a \u0435\u0441\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0438 \u043a\u043b\u0430\u0441\u0441 &#038;mdash helloworld.HelloWorld. jfxpub-get_started \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 NetBeans. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0435\u0440\u0432\u044b\u0435 \u0442\u0440\u0438 \u043f\u0443\u043d\u043a\u0442\u0430 \u0438\u0437 \u00abCreate the Project\u00bb, \u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439, \u0437\u0430\u043c\u0435\u043d\u0443 \u0442\u0435\u043b\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u00abstart\u00bb \u043a\u043e\u0434\u043e\u043c \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 2-1, \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u043a \u0438\u043c\u0435\u044e\u0449\u0435\u043c\u0443\u0441\u044f \u0443 \u043d\u0430\u0441 \u0444\u0430\u0439\u043b\u0443 HelloWorld.java:  <\/p>\n<pre><code class=\"java\">    @Override \tpublic void start(Stage primaryStage) { \t    primaryStage.setTitle(&quot;JavaFX Welcome&quot;);          \t    primaryStage.show(); \t} <\/code><\/pre>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044e \u0441\u0442\u0440\u043e\u043a \u0441 18 \u043f\u043e 29 \u0438 \u0437\u0430\u043c\u0435\u043d\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 primaryStage. \u0412 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435 \u0444\u0430\u0439\u043b \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0435\u0440\u0443\u043d\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e. \u0414\u0430\u043b\u0435\u0435 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c GridPane layout, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0438 \u044d\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u043e. \u041f\u043e\u0441\u043b\u0443\u0448\u0430\u0435\u043c\u0441\u044f, \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u0434 \u043f\u0435\u0440\u0435\u0434 primaryStage.show():  <\/p>\n<pre><code class=\"java\">\t    GridPane grid = new GridPane(); \t    grid.setAlignment(Pos.CENTER); \t    grid.setHgap(10); \t    grid.setVgap(10); \t    grid.setPadding(new Insets(25, 25, 25, 25)); \t    Scene scene = new Scene(grid, 300, 275); \t    primaryStage.setScene(scene) <\/code><\/pre>\n<p>  \u0410 \u0432\u043e\u0442 \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0448\u0438\u0431\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"dos\">src\\helloworld\\HelloWorld.java:18: error: cannot find symbol \t\tGridPane grid = new GridPane(); \t\t^   symbol:   class GridPane   location: class HelloWorld src\\helloworld\\HelloWorld.java:18: error: cannot find symbol \t\tGridPane grid = new GridPane(); \t\t                    ^   symbol:   class GridPane   location: class HelloWorld src\\helloworld\\HelloWorld.java:19: error: cannot find symbol \t\tgrid.setAlignment(Pos.CENTER); \t\t                  ^   symbol:   variable Pos   location: class HelloWorld src\\helloworld\\HelloWorld.java:22: error: cannot find symbol \t\tgrid.setPadding(new Insets(25, 25, 25, 25)); \t\t                    ^   symbol:   class Insets   location: class HelloWorld 4 errors <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0418\u0442\u043e\u0433\u043e: \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u043a\u043b\u0430\u0441\u0441\u044b GridPane, Pos \u0438 Insets. \u0410 \u0433\u0434\u0435 \u0438\u0445 \u0438\u0441\u043a\u0430\u0442\u044c? \u042f \u0442\u043e\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u043b. \u041d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 Oracle \u043d\u0430\u0448\u0435\u043b \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 <a href=\"http:\/\/docs.oracle.com\/javafx\/2\/api\/index-all.html\" title=\"Index (JavaFX 2.2)\">\u00ab\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u00bb<\/a>. \u0418\u0437 \u043d\u0435\u0433\u043e \u044f\u0441\u043d\u043e, \u0447\u0442\u043e  <\/p>\n<blockquote>\n<pre> GridPane - Class in javafx.scene.layout     GridPane lays out its children within a flexible grid of rows and columns. Pos - Enum in javafx.geometry     A set of values for describing vertical and horizontal positioning and alignment. Insets - Class in javafx.geometry     A set of inside offsets for the 4 side of a rectangular area <\/pre>\n<\/blockquote>\n<p>  \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0430:  <\/p>\n<pre><code class=\"java\">import javafx.scene.layout.GridPane; import javafx.geometry.*; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0444\u0430\u0439\u043b \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u043d\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e. \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u043d\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u0434 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0449\u0435\u0439 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e Padding \u0442\u0430\u0431\u043b\u0438\u0446\u044b grid, \u0442\u043e \u0435\u0441\u0442\u044c, \u043f\u0435\u0440\u0435\u0434 Scene scene = new Scene(grid, 300, 275).  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043e\u0431\u0430\u0432\u043a\u0430 \u043a HelloWorld.java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">\t    Text scenetitle = new Text(&quot;Welcome&quot;); \t    scenetitle.setFont(Font.font(&quot;Tahoma&quot;, FontWeight.NORMAL, 20)); \t    grid.add(scenetitle, 0, 0, 2, 1); \t    Label userName = new Label(&quot;User Name:&quot;); \t    grid.add(userName, 0, 1); \t    TextField userTextField = new TextField(); \t    grid.add(userTextField, 1, 1); \t    Label pw = new Label(&quot;Password:&quot;); \t    grid.add(pw, 0, 2); \t    PasswordField pwBox = new PasswordField(); \t    grid.add(pwBox, 1, 2);  \t    Button btn = new Button(&quot;Sign in&quot;); \t    HBox hbBtn = new HBox(10); \t    hbBtn.setAlignment(Pos.BOTTOM_RIGHT); \t    hbBtn.getChildren().add(btn); \t    grid.add(hbBtn, 1, 4);  \t    final Text actiontarget = new Text(); \t\t    grid.add(actiontarget, 1, 6);  \t    btn.setOnAction(new EventHandler&lt;ActionEvent&gt;() { \t      \t\t@Override \t\tpublic void handle(ActionEvent e) { \t\t    actiontarget.setFill(Color.FIREBRICK); \t\t    actiontarget.setText(&quot;Sign in button pressed&quot;); \t\t} \t    }); <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u043b\u0438\u043d\u043d\u0443\u044e \u043f\u0440\u043e\u0441\u0442\u044b\u043d\u044e \u043e\u0448\u0438\u0431\u043e\u043a. \u041d\u043e \u043e\u043d\u0438 \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b. \u041c\u044b, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u0435 \u0432 \u043a\u0443\u0440\u0441\u0435, \u043a\u0442\u043e \u0442\u0430\u043a\u0438\u0435 Text, Font, Label, Color \u0438 \u0435\u0449\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0445 \u0434\u0440\u0443\u0437\u044c\u044f. \u041f\u043e\u0440\u043e\u0435\u043c\u0441\u044f \u0432 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u043c \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0432 \u043a\u0430\u043a\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u0430\u0445 \u0438\u0445 \u0440\u043e\u0434\u0438\u043d\u0430. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u043c\u043f\u043e\u0440\u0442:  <\/p>\n<pre><code class=\"java\">import javafx.scene.text.*; import javafx.scene.control.*; import javafx.scene.paint.*; import javafx.scene.layout.HBox; <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u043e\u0435 \u0432\u043e\u0442 \u0443 \u043c\u0435\u043d\u044f \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a \u0437\u0432\u0435\u0437\u0434\u043e\u0447\u043a\u0430\u043c. \u041f\u043e\u0436\u0430\u043b\u0443\u0439, \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u0432\u0435\u0437\u0434\u043e\u0447\u0435\u043a &mdash; \u0447\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0430, \u0442\u0435\u043c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f. \u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435. \u0414\u043b\u044f \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u0446\u0435\u043b\u0435\u0439 \u0441\u043e\u0439\u0434\u0435\u0442 \u0438 \u0442\u0430\u043a. \u041a\u0441\u0442\u0430\u0442\u0438, import javafx.scene.* \u043d\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c javafx.scene.text.* \u0438 import javafx.scene.paint.*.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041d\u0430\u0434\u043e \u043a\u043e\u0440\u043e\u0442\u0435\u043d\u044c\u043a\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0435:  <\/p>\n<ul>\n<li>javafx.application.Application &mdash; \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f JavaFX. <\/li>\n<li>\u0415\u0433\u043e \u043c\u0435\u0442\u043e\u0434 start() \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0432\u0445\u043e\u0434\u0430. <\/li>\n<li>\u041a\u043b\u0430\u0441\u0441 Stage &mdash; \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 (\u043e\u043a\u043d\u043e). <\/li>\n<li>\u041a\u043b\u0430\u0441\u0441 Scene &mdash; \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. <\/li>\n<li>\u041d\u0430\u0448\u0430 \u0441\u0446\u0435\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0430 \u043d\u0430 GridPane, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0431\u044b \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439, \u0432 \u044f\u0447\u0435\u0439\u043a\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. HGap \u0438 VGap \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0437\u0430\u0437\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438 \u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. Padding \u0437\u0430\u0434\u0430\u0435\u0442 \u0437\u0430\u0437\u043e\u0440 \u043c\u0435\u0436\u0434\u0443 \u043a\u0440\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u043a\u0440\u0430\u0435\u043c \u043e\u043a\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442. \u0421\u0442\u0440\u043e\u0447\u043a\u0430 \u00abgrid.setGridLinesVisible(true);\u00bb \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432 \u043e\u043a\u043d\u0435 &mdash; \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0435 \u043b\u0438\u043d\u0438\u0438 \u0432\u0438\u0434\u0438\u043c\u044b\u043c\u0438. <\/li>\n<li>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0435 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0435\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. \u0412\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u044f\u0447\u0435\u0439\u043a\u0430\u0445 (\u0437\u0430\u0434\u0430\u0432\u0430\u044f \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u0438 \u0441\u0442\u0440\u043e\u043a\u0443), \u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u00ab\u0441\u0430\u043c\u0430\u00bb \u0440\u0430\u0437\u0440\u0430\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430. \u041c\u0435\u0442\u043e\u0434 grid.add \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 (\u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440) \u0432 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 (\u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0442\u0440\u0435\u0442\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 \u0441\u0442\u043e\u043b\u0431\u0435\u0446, \u0441\u0442\u0440\u043e\u043a\u0430). \u041c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0438 \u043f\u044f\u0442\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b (\u043a\u0430\u043a \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 scenetitle) &mdash; \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432 \u0438 \u0441\u0442\u0440\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u044d\u043b\u0435\u043c\u0435\u043d\u0442.<\/li>\n<li>\u041c\u0435\u0442\u043e\u0434 main() \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 JavaFX, \u0435\u0441\u043b\u0438 JAR-\u0444\u0430\u0439\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e javafxpackager (\u043e\u043d \u0432\u043d\u0435\u0434\u0440\u044f\u0435\u0442 JavaFX Launcher \u0432 JAR-\u0444\u0430\u0439\u043b). \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c JAR-\u0444\u0430\u0439\u043b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 JavaFX Launcher, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 IDE \u0441 \u043d\u0435\u043f\u043e\u043b\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0435\u0439 \u0441 JavaFX. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, Swing-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u0435 \u043a\u043e\u0434 JavaFX, \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043c\u0435\u0442\u043e\u0434 main().<\/li>\n<li>HBox &mdash; \u044d\u0442\u043e \u0442\u0430\u043a\u0430\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u043d\u0435\u043b\u044c\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u043e\u0439 \u0432 \u044d\u0442\u0443 \u043f\u0430\u043d\u0435\u043b\u044c\u043a\u0443, \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u043e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 &mdash; \u0441 \u043f\u0440\u0430\u0432\u043e\u0433\u043e \u043a\u0440\u0430\u044f.<\/li>\n<li>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043a\u043e\u0434\u0430.<\/li>\n<\/ul>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0441\u043a\u0440\u0430\u0441\u0438\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CSS, \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e FXML \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u044d\u0442\u0438 \u0431\u0443\u043a\u0432\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>  \u0418 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a. \u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432 \u043a\u043e\u0434\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442 \u043e\u0431\u043e\u0437\u0432\u0430\u0442\u044c package HelloWorld, \u0442\u043e \u0432 \u043f\u0430\u043f\u043a\u0435 .\/out \u0441\u043e\u0437\u0434\u0430\u0441\u0442\u0441\u044f \u043f\u0430\u043f\u043a\u0430 HelloWorld, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f &mdash; \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d \u043a\u043b\u0430\u0441\u0441. \u041f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043f\u0430\u043a\u0435\u0442\u0430 &mdash; \u0432\u0441\u0435 \u0441\u043d\u043e\u0432\u0430 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0445\u043e\u0442\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u0430\u043f\u043a\u0438 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u00ab\u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u00bb. \u041e\u0421 Windows \u043d\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0438\u043c\u0435\u043d\u0438 \u043f\u0430\u043f\u043a\u0438 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043f\u043b\u0435\u0432\u0430\u0442\u044c, \u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0435\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u041d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 HelloWorld.class \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442. \u0410 \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0432 .JAR \u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u2014 \u043f\u043e\u043b\u0435\u0437\u0443\u0442 \u043e\u0448\u0438\u0431\u043a\u0438. \u0412 \u0430\u0440\u0445\u0438\u0432\u0435 \u043f\u0430\u043f\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0441 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c (\u0443\u0436\u0435 \u0431\u0435\u0437 \u043a\u0430\u0432\u044b\u0447\u0435\u043a) \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u043c \u0434\u0432\u0443\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0438 \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043d\u0430\u0439\u0442\u0438 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u0442\u0435\u0440\u0435\u0442\u044c \u043f\u0430\u043f\u043a\u0443 .\/out\/HelloWorld, \u0437\u0430\u043d\u043e\u0432\u043e \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c .jar.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/197690\/\"> http:\/\/habrahabr.ru\/post\/197690\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \tHelloWorld \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e Oracle \u0432 \u00abGetting Started with JavaFX\u00bb, \u043d\u0430 \u041f\u041a \u0441 Windows. \u0420\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e \u043e\u043a\u043d\u0430 \u0432\u0432\u043e\u0434\u0430 \u043b\u043e\u0433\u0438\u043d\u0430 \u0438 \u043f\u0430\u0440\u043e\u043b\u044f. \u041f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 \u043f\u0440\u0438\u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\u043c \u043d\u0435\u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043a\u043e\u0434 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-197690","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=197690"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197690\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=197690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=197690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=197690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}