Search results

  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 *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.*...
  16. JGuru

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

    Explanation : This is a JavaFX WebView Example. JavaFX provides a web component that can be used as an embedded web browser in a JavaFX application. It is based on WebKit, which is an open source web browser engine. It supports: Viewing HTML5 content with CSS and JavaScript Access to the DOM...
  17. JGuru

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

    6) Write a program to show a simple webbrowser in action? SimpleBrowser.java import javafx.application.Platform; import javafx.collections.ListChangeListener; import javafx.concurrent.Worker; import javafx.embed.swing.JFXPanel; import javafx.embed.swing.SwingFXUtils; import...
  18. JGuru

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

    ImagePreview.java // ImageViewer needs an accessory class ImagePreview import java.awt.*; import java.awt.image.BufferedImage; import java.beans.*; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing.*; import javax.swing.border.*; /** * *...
  19. JGuru

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

    3) Write a program to view an image and also perform various operations like rotateLeft, rotateRight, flip horizontal, flip vertical, save , print etc., ? import javax.imageio.ImageIO; import javax.swing.*; import javax.swing.filechooser.FileFilter; import java.awt.*; import...
  20. JGuru

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

    2. Write a program to show a download manager in action? import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.net.URL; import java.util.Observable; import java.util.Observer; // The Download Manager. class DownloadManager extends JFrame implements Observer {...
Top Bottom