Recent content by JGuru

  1. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    Thats's it. Hope you guys like my tutorial!!! Happy Coding!!!
  2. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    HelpContents.java /** * Created with IntelliJ IDEA. * User: JGuru * Date: 7/20/18 * Time: 12:24 PM * To change this template use File | Settings | File Templates. */ import java.awt.*; import javax.swing.*; import java.net.*; import java.io.*; public class HelpContents extends JFrame {...
  3. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    class MenuHelpAction extends AbstractAction { MenuHelpAction() { super("Help Contents"); } @Override public void actionPerformed(ActionEvent e) { new HelpContents(); } } class MenuRunAction extends AbstractAction {...
  4. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    // An action that opens an existing file class OpenAction extends AbstractAction { OpenAction() { super("Open", getIcon("Open.png")); putValue(Action.SHORT_DESCRIPTION, "Open an Archive"); } // Query user for a filename and attempt to open...
  5. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    // Actions declaration private final Action newAction = new NewAction(); private final Action openAction = new OpenAction(); private final Action favoritesAction = new FavoritesAction(); private final Action addAction = new AddAction(); private final Action extractAction =...
  6. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    5) Write a program to read a zip file (similar to WinZip) and unzip the file contents? JZipDemo.java import java.awt.*; import java.awt.event.ActionEvent; import java.io.*; import java.util.Date; import java.util.Enumeration; import java.util.Vector; import java.util.logging.Level; import...
  7. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    class TwirlFilterAction extends AbstractAction { public TwirlFilterAction() { super("Twirl"); } @Override public void actionPerformed(ActionEvent e) { setEnabled(false); TwirlFilter tFilter = new TwirlFilter()...
  8. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    class BlurFilterAction extends AbstractAction { public BlurFilterAction() { super("Blur"); } @Override public void actionPerformed(ActionEvent e) { BlurFilter blurFilter = new BlurFilter(); if (getImage() != null) {...
  9. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    // Create a FileChooser public void createFileChooser() { fileChooser = new JFileChooser(); fileChooser.setAccessory(new ImagePreview(fileChooser)); fileChooser.setPreferredSize(new Dimension(800, 500)); fileChooser.setAcceptAllFileFilterUsed(false)...
  10. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    4) Write a program to perform various filters like sharpen , emboss, crystallize, edge detect, threshold, marble, motion blur, oil, twirl, tile etc.,? You need to download the Jerry Huxtable's Image Filters from http://jhlabs.com/ip/filters/Filters.zip ImageProcessor.java // You need to...
  11. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    Paddle.java import java.awt.*; import java.awt.event.KeyEvent; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; class Paddle extends Sprite implements Commons { private int dx; private int paddleWidth = 114, paddleHeight = 14; public Paddle() {...
  12. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    9) Write a BreakOut Java2D game where the player moves a paddle on the screen and bounces a ball or balls. The objective is to destroy bricks in the top of the window? Breakout is an arcade game originally developed by Atari Inc. The game was created in 1976. In this game, the player moves a...
  13. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    TableMap.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; import...
  14. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    8) Write a Java program to display the contents of a table in a table format? TableExample.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import...
  15. JGuru

    Java Development Made Easy!!: Step-by-step Guide

    7) Write a program to show a text editor in action using Java Swing? TextEditor.java /** * Created with IntelliJ IDEA. User: raghu Date: 7/14/16 Time: 8:04 PM To change * this template use File | Settings | File Templates. */ // TextEditor.java import java.awt.*; import java.awt.event.*...
Top Bottom