Java GUI tutorial 1 - Create a window with JFrame, set title

preview_player
Показать описание
In this tutorial we're going to learn how to write programs in Java using Eclipse and the GUI (Graphical User Interface) classes that are part of the Java Cass Library. The first class which we're using to create a window is called JFrame.
Рекомендации по теме
Комментарии
Автор

How way Hello! in the middle of the frame?

msaifulcsse
Автор

i trying to lean how right it from scratch...
and i need help i right my jframe run in cmd so i put this i notepade...

claytonworley
Автор

i have do a jframe
import javax.swing.JFrame;
import java.awt.Toolkit;


public class project {;
public static void main(String[] args) {
JFrame display = new JFrame("Project");
display.setSize(1366, 768);
display.setVisible(true);
display. ("icon.jpg"));






}
how do i use this line to put jlabel show me...
how do i use ti..

}

claytonworley