Continue? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Continue?

When this was the end.Who are the lessons there show to create a button,window or whatever?

10th Feb 2017, 1:20 PM
Dogyuso
Dogyuso - avatar
2 Answers
+ 7
The tutorials are... tutorials which teaches you the basics of Java. If you wish to advance towards app development, you may look into Android Studio and SDK.
10th Feb 2017, 2:01 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
For desktop applications you can use Java Swing or JavaFX. The code for an empty window in Java Swing for example would look like this: ------------ import javax.swing.JFrame; import javax.swing.WindowConstants; public class window { public static void main(String args []){ JFrame myFrame = new JFrame ("Sample Frame"); myFrame.setSize(300,400); myFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); myFrame.setVisible (true); } } ----------- write this in a file, name it window.java (or in general the file name has to be the same as the name of the public class) and compile and run it and you'll see... (this will only run on desktops)
5th Mar 2017, 7:59 AM
Arcturus