JAVABELAJAR PEMROGRAMAN JAVA UNTUK PEMULA JONI HERIANTO | BELAJAR PEMROGRAMAN JAVA UNTUK PEMULA | August 2, Berbicara. is a free interactive Java tutorial for people who want to learn Let's go over the Hello world program, which simply prints "Hello, World! Utilize our Java tutorial to learn the basics of the popular language, including Java objects, in this introductory course.


Author: Admin
Country: Sri Lanka
Language: English
Genre: Education
Published: 22 January 2017
Pages: 389
PDF File Size: 16.7 Mb
ePub File Size: 23.54 Mb
ISBN: 620-9-24330-194-8
Downloads: 16893
Price: Free
Uploader: Admin


You can create high-level abstract data types called classes to mimic real-life things.


These classes tutorial pemrograman java self-contained and are reusable. Writing your own graphics classes and re-inventing the wheels is mission impossible! These graphics classes, developed by tutorial pemrograman java programmers, are highly complex and involve many advanced design patterns.

However, re-using them are not so difficult, if you follow the API documentation, samples and templates provided. I shall assume that you have a good grasp of OOP, including composition, inheritance, polymorphism, abstract class and interface; otherwise, read the earlier articles.

Fikar Blog - Tempat Belajar Bahasa Pemrograman Dari Dasar

I will describe another important OO concept called nested class or inner class in this article. There tutorial pemrograman java current three sets of Java APIs for graphics programming: Most of the AWT components have become obsolete and should be replaced by newer Swing components.

The best online reference for Graphics programming is the "Swing Tutorial" http: For advanced 2D graphics tutorial pemrograman java, read "Java 2D Tutorial" http: For 3D graphics, read my 3D articles.

It consists of 12 packages of classes Swing is even bigger, with 18 packages of classes as of JDK 8.

Java Programming Tutorial

Fortunately, only 2 packages - java. Custom graphics classes, such as Graphics, Color and Font.

AWT provides a platform-independent and device-independent interface to develop graphic programs that runs on all tutorial pemrograman java, including Windows, Mac OS X, and Unixes.

Containers, such as Frame and Panel, are used to hold components in a specific layout such as FlowLayout or GridLayout.

GUI Programming - Java Programming Tutorial

A container can also hold sub-containers. In the above figure, there are three containers: A Frame is the top-level container of an AWT program. A Panel is a rectangular area used to group related GUI components tutorial pemrograman java a certain layout.


In the above figure, the top-level Frame contains two Panels. There are five components: In a GUI program, a component must be kept in a container. You need to identify a container tutorial pemrograman java hold the components.


Every container has a method called add Component c. A container say c tutorial pemrograman java invoke c. A Frame provides the "main window" for your GUI application.

To write a GUI program, we typically start with a subclass extending from java.

Related Articles: