Postingan

Menampilkan postingan dari Desember, 2020

LOGIN SYSTEM DAN IMAGE VIEWER

Gambar
LOGIN  /**  * tampilan login sistem.  *  * @author IchsanulAulia  * @version (12142020)  */ import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Login {     String Username = "Ozoraa";     String Password = "1223";     String msg = " ";     private JTextField txtUsername;     private JPasswordField txtPassword;     public static void main (String args[])     {         Login gui = new Login();         gui.go();       }     public void go(){         JFrame frame = new JFrame("Welcome To The Aplication !!!");         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);         JPanel panel = new JPanel();         JLabel lblUsername = new JLabel("Username:");         JLabel lblPassword = new JLabel(...

APPLET & JAVA FX

Gambar
 APPLET /*  *  * @author IchsanulAulia  * @version (12142020)  */ import java.awt.*; public class TesApplet extends java.applet.Applet {    public void paint(Graphics g){         Font f = new Font("SansSerif", Font.BOLD, 20);         g.setFont(f);         g.setColor(Color.BLUE);           int xPusat = this.getSize().width/2;         int yPusat = this.getSize().height/2;           String s = "Selamat Belajar Java Applet";         FontMetrics fm = this.getFontMetrics(f);         int posisiX = xPusat - (fm.stringWidth(s)/2);         g.drawString("Selamat Belajar java Applet", posisiX, yPusat);     } } Hasil Compile : JavaFX  Source Code JAVA FX source code : /**  * .  *  * @author UIchsanulAulia  * @version (12142020)  */ import ...