EAS PBO B - Image Viewer FINAL Nama : Zahrul Zizki Dinanto NRP : 05111740000168 Kelas : PBO-B Berikut adalah image editor menambahkan filter dan fitur tambahannya saya akan menambahkan seperti zoom in, zoom out, rotate. desain interface dan class diagram nya yang berupa gambar Adalah Sebagai Berkut : Rancangan Interface Gambar Class Yang akan dipakai IMAGE VIEWER 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 initialises all other components. * * To start the application, create an object of this class. * * @author Zahrul Zizki D * @version 3.1 */ public class ImageViewer...
Postingan
Menampilkan postingan dari Desember, 2018
- Dapatkan link
- X
- Aplikasi Lainnya
Nama : Zahrul Zizki Dinanto NRP : 05111740000168 Kelas : PBO-B Terdapat 4 class yang digunakan untuk membuat Game Pong Java: 1. Renderer 2. Paddle 3. Ball 4. Pong 1. Class Ball /** * Source Code untuk Class Ball * @author (Zahrul Zizki Dinanto) * @NRP(05111740000168) */ import java.awt.Color; import java.awt.Graphics; import java.util.Random; public class Ball { public int x, y, width = 25, height = 25; public int motionX, motionY; public Random random; private Pong pong; public int amountOfHits; public Ball(Pong pong) { this.pong = pong; this.random = new Random(); spawn(); } public void update(Paddle paddle1, Paddle paddle2) { int speed = 5; this.x += motionX * speed; this.y += motionY * speed; if (this.y + height - motionY > pong.hei...
- Dapatkan link
- X
- Aplikasi Lainnya
GUI Membuat Graphical User Interface Image Viewer 2.0 Nama : Zahrul Zizki D NRP : 05111740000168 Kelas : PBO - B Berikut adalah membuat image viewer dengan graphical user interface menggunakan blueJ Source code IMAGE VIEWER import java.awt.*; import java.awt.event.*; import java.awt.image.*; import javax.swing.*; import java.io.File; /** * ImageViewer is the main class of the image viewer application. It builds and * displays the application GUI and initialises all other components. * * To start the application, create an object of this class. * * @author Zahrul Zizki D * @version 1.0/20181126 */ public class ImageViewer { // static fields: private static final String VERSION = "Version 1.0"; private static JFileChooser fileChooser = new JFileChooser(System.getProperty("user.dir")); // fields: private JFrame frame; private ImagePanel imag...