Cara Mudah Membuat Aplikasi About Pada Java

 

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

class Aplikasi_About extends JFrame
{
 JLabel picture=new JLabel(new ImageIcon("1236509.jpg"));
 JLabel nama=new JLabel("IKHWAN");

 Aplikasi_About()
 {
  setTitle("About Me");
  setLocation(500,30);
  setSize(150,200);
  setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
  }

  void KomponenVisual()
  {
   getContentPane().setLayout(null);

   getContentPane().setLayout(null);
   nama.setBounds(10,10,120,20);

   picture.setPreferredSize(new Dimension(100,100));
   getContentPane().add(picture);
   picture.setBounds(20,30,100,100);
   setVisible(true);
   }
 public static void main(String args[])
 {
  Aplikasi_About AA=new Aplikasi_About();
  AA.KomponenVisual();
  }}
**OutPut**

No comments:
Write comments
Recent Posts Widget