Posts

Showing posts from May, 2017

contoh JOptionPane

import javax.swing.*; /** * JOptionPane showInputDialog example #1. * A simple showInputDialog example. * @author alvin alexander, http://alvinalexander.com */ public class JOptionPaneShowInputDialogExample1 { public static void main(String[] args) { // a jframe here isn't strictly necessary, but it makes the example a little more real JFrame frame = new JFrame("InputDialog Example #1"); // prompt the user to enter their name String name = JOptionPane.showInputDialog(frame, "What's your name?"); JOptionPane.showMessageDialog(frame,"my name is "+name); // get the user's input. note that if they press Cancel, 'name' will be null System.out.printf("The user's name is '%s'.\n", name); System.exit(0); } } //original source: http://alvinalexander.com/java/joptionpane-showinputdialog-examples

Makmal OOP 11/mei/2017

Oleh kerana semua staff ppimg tiada di pusat pengajian. Makmal pada hari ini ditangguhkan. Diminta semua pelajar menyiapkan tugasan makmal untuk mimggu ini dan upload ke mylearn seperti biasa . Terima kasih

tutorial 4 mei

http://192.168.30.139:8080/ WebApplication2/tutorial4mei. pdf