[Practice! ] Introduction of JFrame (explaining up to screen creation)

1. Prior knowledge

-[Latest] How to build Java environment on Ubuntu

-[Even beginners can do it! ] How to create a Java environment on Windows 10 (JDK14.0.1)

-[Easy-to-understand explanation! ] How to use Java instance

-[Even beginners can do it! ] How to install Eclipse on Windows 10 (Java environment construction)

As prior knowledge, the contents of the above link are required.

2. What is JFrame?

--JFrame is one of the Swing classes, and is a class for creating "a central window with an outer frame ".

3. Install Swing Designer

01.png

  1. Start Eclipse and select [Help] → [Install New Software]. 02.png
  2. Click the Add button. 03.png
  3. Enter ʻOxygenfor the name andhttp://download.eclipse.org/releases/oxygen` for the location. 04.png
  4. Check [General Tools] → [Swing Designer] and click Next. 05.png
  5. Check Swing Designer and click Next. 06.png
  6. Select I accept the terms of the Terms of Use and click the Finish button. 07.png 08.png
  7. After software installation is complete, restart.

4. Executing JFrame

09.png

  1. After restarting Eclipse, select [New] → [Java Project]. 11.png
  2. Enter TestFrame as the project name, select JavaSE-1.8 to use the execution environment JRE, and click the Finish button. 13.png
  3. Select [New (N)] → [Other]. 14.png
  4. Select [WindowBuilder] → [Swing Designer] → [JFrame] and click Next. 15.png
  5. Enter test1 in the package and Test1 in the name and click Next. 16.png
  6. Select [Run (R)]-> [Run (S)]-> [Java Application]. 17.png
  7. Success if the screen is displayed like the image.

5. Related

-[Useful to remember !!!] Easy creation of constructor and getter / setter in Eclipse -[Useful to remember !!!] Easy creation of inherited class in Eclipse -[Even beginners can do it! ] How to write Javadoc -[Easy-to-understand explanation! ] How to use Java overload -[Easy-to-understand explanation! ] How to use Java encapsulation -[Easy-to-understand explanation! ] How to use Java inheritance [Override explanation] -[Easy-to-understand explanation! ] Type conversion of reference type in Java -[Easy-to-understand explanation! ] How to use Java polymorphism -[Easy-to-understand explanation! ] How to use ArrayList [Java]

Recommended Posts

[Practice! ] Introduction of JFrame (explaining up to screen creation)
From the introduction of devise to the creation of the users table
How to use setDefaultCloseOperation () of JFrame
From introduction to use of ActiveHash
From introduction to usage of byebug
[Docker] Operation up to container creation # 2
Introduction to kotlin for iOS developers ⑥-Kotlin creation
Output of the book "Introduction to Java"
iOS app development: Timer app (6. Creation of setting screen)
[Rails] Introduction of pry-rails ~ How to debug binding.pry
[Docker] Introduction to docker compose Basic summary of docker-compose.yml
How to use enum (introduction of Japanese notation)
[Note] About the introduction to Swift practice Chapter 11
Introduction to kotlin for iOS developers ②-Project creation
[Introduction to Java] Basics of java arithmetic (for beginners)
Introduction and introduction of management screen generation gem Administrate