JavaFX Application Application Example _java

Source: Internet
Author: User

The following code shows an instance of the JavaFX process command line argument. You can refer to it.

Import java.util.List; 
 
 
Import javafx.application.Application; 
Import Javafx.geometry.Insets; 
Import Javafx.scene.Group; 
Import Javafx.scene.Scene; 
Import Javafx.scene.effect.SepiaTone; 
Import Javafx.scene.image.Image; 
Import Javafx.scene.image.ImageView; 
Import Javafx.scene.layout.GridPane; 
Import Javafx.scene.layout.HBox; 
Import Javafx.scene.paint.Color; 
Import Javafx.stage.Stage;  /* http://www.manongjc.com  /Public
class Main extends application {public 
 
 
  static void main ( String[] args) { 
    application.launch (args); 
  } 
   
  @Override public 
  void Start (Stage primarystage) { 
    primarystage.settitle ("Title"); 
     
    Final Parameters params = GetParameters (); 
    Final list<string> parameters = Params.getraw (); 
    Final String imageUrl =!parameters.isempty ()? Parameters.get (0): ""; 
     
    Primarystage.show (); 
  } 

The above is a small series for everyone to bring the JavaFX application application of all the content, I hope that we support cloud-Habitat Community ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.