Langsung ke konten utama

Postingan populer dari blog ini

GUI: Image Viewer V3

Hi guys! In this post, we will make an Image Viewer v3 with GUI Programming. This is the classes we need to make the program: ImageViewer ImagePanel ImageFileManager OFImage Filter LighterFilter DarkerFilter ThresholdFilter FishEyeFilter Here is the source code for each of those classes ImageViewer import java.awt.*; import java.awt.event.*; import java.awt.image.*; import javax.swing.*; import javax.swing.border.*; import java.io.File; import java.util.List; import java.util.ArrayList; import java.util.Iterator; /** * ImageViewer is the main class of the image viewer application. * It builds and displays the application GUI and * initializes all other components. * * @author (Elkana Hans Widersen) * @version 1.0 */ public class ImageViewer { // static fields: private static final String version = "Version 3.0"; private static JFileChooser fileChooser = new JFileChooser(System.getP...

Tugas PBO Remote AC

Hey guys! In this post I'm going to show you how to make an AC Remote using BlueJ. I'm going to use 2 classes, which are: Main ACRemote Main /* * Main function for the AC Remote * * Elkana Hans Widersen * 05111740000127 * 23 September 2018 */ import java.util.Scanner; public class Main{ public static void main(String args[]){ int menu; Scanner input = new Scanner(System.in); //Creates the remote ACRemote remote = new ACRemote(); while(true){ //displays the remote interface every loop remote.display(); //scans for menu number menu = input.nextInt(); switch(menu){ //changes the temperature case 1: remote.TempUp(); break; case 2: remote.TempDown(); break; //sets the AC swing mode case 3: remote.getSwing(); break; //terminates when the AC turned off ...

Tugas 1 PBO A

This is my biodata compiled in Java (first time usage). Check it out! /** * Program membuat biodata menggunakan Java - BlueJ * * Author : Elkana Hans W * Version 1 , Date : 3 September 2018 */ public class biodata{ public biodata(){ System.out.print("PBO-Tugas1\n"); System.out.print("Nama\t: Elkana Hans Widersen\n"); System.out.print("Kelas\t: PBO A\n"); System.out.print("Alamat Rumah: Merak III/P2-104 Rewwin\n"); System.out.print("Email\t: elknhns@gmail.com\n"); System.out.print("Blog\t: elkanahans.blogspot.com\n"); System.out.print("No HP/WA: 082143646716\n"); System.out.print("Twitter\t: @elknhns\n"); } }