Java GUI Programming
|
|
|
- Ashley Holland
- 9 years ago
- Views:
Transcription
1 Java GUI Programming Sean P. Strout Robert Duncan 10/24/2005 Java GUI Programming 1 Java has standard packages for creating custom Graphical User Interfaces What is a GUI? Some of the fundamental GUI components: Button Label Text Field Check Box Radio Buttons Combo Box 10/24/2005 Java GUI Programming 2 1
2 import javax.swing.*; import java.awt.*; public class ShowComponents extends JFrame { public ShowComponents () { Container container = getcontentpane(); container.setlayout(new FlowLayout (FlowLayout.LEFT, 10, 20)); container.add(new JButton("OK")); container.add(new JLabel("Enter your name: ")); container.add(new JTextField("Type name here...")); container.add(new JCheckBox("Bold")); container.add(new JRadioButton("Red", true)); container.add(new JRadioButton("Green")); container.add(new JRadioButton("Blue")); container.add(new JComboBox(new String[]{"High", "Med", "Low"})); } // ShowComponents ShowComponents frame = new ShowComponents(); frame.settitle("gui Components"); frame.setdefaultcloseoperation(jframe.exit_on_close); frame.setsize(650, 100); frame.setlocation(100, 100); frame.setvisible(true); } // ShowComponents ShowComponents.java 10/24/2005 Java GUI Programming 3 What is AWT? The Abstract Window Toolkit was a part of Java from the beginning import java.awt.*; All AWT components must be mapped to platform specific components using peers The look and feel of these components is tied to the native components of the window manager AWT components are considered to be very error prone and should not be used in modern Java applications 10/24/2005 Java GUI Programming 4 2
3 The same application using only AWT components, running on X-Windows: What is AWT? 10/24/2005 Java GUI Programming 5 import java.awt.*; public class AWTComponents extends Frame { public AWTComponents () { /* set up the window layout */ setlayout(new FlowLayout (FlowLayout.LEFT, 10, 20)); setlocation(100, 100); settitle("awt components"); resize(600, 125); AWTComponents.java /* button */ add(new Button("OK")); /* label */ add(new Label("Enter your name: ")); /* text field */ add(new TextField("Type name here...")); /* check box group */ CheckboxGroup cbg = new CheckboxGroup(); add(new Checkbox("Bold", cbg, false)); add(new Checkbox("Red", null, true)); add(new Checkbox("Green")); add(new Checkbox("Blue")); 10/24/2005 Java GUI Programming 6 3
4 /* Must put priorities in a menu bar */ MenuBar mb = new MenuBar(); Menu fileb = new Menu("Priority"); mb.add(fileb); MenuItem highb = new MenuItem("High"); MenuItem medb = new MenuItem("Medium"); MenuItem lowb = new MenuItem("Low"); fileb.add(highb); fileb.add(medb); fileb.add(lowb); setmenubar(mb); AWTComponents.java - continued /* show the window */ setvisible(true); } // AWTComponents new AWTComponents(); } // AWTComponents 10/24/2005 Java GUI Programming 7 With the release of Java 2, the AWT user interface components were replaced with Swing What is Swing? Swing is built on top of AWT to give a more flexible, robust library Lightweight components don t rely on the native GUI Heavyweight components do depend on the target platform because they extend AWT components Swing components are directly painted onto the canvas using Java code 10/24/2005 Java GUI Programming 8 4
5 Java GUI API Dimension AWT: java.awt Font FontMetrics Heavweight Object Color Graphics LayoutManager Panel Applet JApplet Component Container Window Frame JFrame Dialog JDialog JComponent Swing: javax.swing Lightweight 10/24/2005 Java GUI Programming 9 Java GUI API AbstractButton JMenuItem JButton JCheckBoxMenuItem JMenu JComponent JToggleButton JRadioButtonMenuItem JTextComponent JEditorPane JTextField JTextArea JCheckBox JRadioButton JPasswordField JLabel JList JComboBox JPanel JOptionPane JScrollBar JSlider JTabbedPane JSplitPane JLayeredPane JSeparator JScrollPane JRootPane JToolBar JMenuBar JPopupMenu JFileChooser JColorChooser JToolTip JTree JTable JTableHeader JInternalFrame JProgressBar JSpinner 10/24/2005 Java GUI Programming 10 5
6 Container Classes Container classes are GUI components that are used as containers to contain other GUI components For Swing use: Component, Container, JFrame, JDialog, JApplet, Jpanel JFrame is a window not contained inside another window JDialog is a temporary popup window or message box JApplet is an applet that can run in a web browser JPanel is an invisible, nest-able container used to hold UI components or canvases to draw graphics A layout manager is used to position and place components in a container 10/24/2005 Java GUI Programming 11 You need a frame to hold the UI components (100, 100) Title bar Frames Content pane 300 pixels high 400 pixels wide 10/24/2005 Java GUI Programming 12 6
7 MyFrame.java import javax.swing.*; public class MyFrame { // Create frame with the title "MyFrame" JFrame frame = new JFrame("MyFrame"); // Set the size of the frame to width=400, height=300. // If this is not set, it will just be the size of the title bar frame.setsize(400, 300); // The frame is not displayed until this statement frame.setvisible(true); // The location of the frame on the screen. The upper-left corner is 0,0 frame.setlocation(100, 100); // Tell the program to terminate when the frame is closed. // If this is not used, the program does not terminate and // it must be stopped manually (CTRL-Z then 'kill %' ) frame.setdefaultcloseoperation(jframe.exit_on_close); } // MyFrame 10/24/2005 Java GUI Programming 13 Content Pane Layered pane Glass pane Menu bar Content pane The content pane is the part of the frame where the UI components will be placed It is a java.awt.container object 10/24/2005 Java GUI Programming 14 7
8 Adding Components to a Frame UI components can be add ed to the content pane after they are created Here, the OK button is centered in the frame and occupies the whole frame, no matter how it is resized 10/24/2005 Java GUI Programming 15 import javax.swing.*; // JFrame import java.awt.*; // Container public class MyFrameWithButton { JFrame frame = new JFrame("Frame with components"); // Get the content pane, which was made when the // frame was created. Container container = frame.getcontentpane(); // Create an "OK" button JButton okbutton = new JButton("OK"); // Add the button into the frame via the content pane container.add(okbutton); // Set up the frame behavior frame.setsize(400, 300); frame.setlocation(100, 100); frame.setvisible(true); frame.setdefaultcloseoperation(jframe.exit_on_close); } // MyFrameWithButton MyFrameWithButton.java 10/24/2005 Java GUI Programming 16 8
9 Layout Managers There are three basic layout managers which control how UI components are organized on the frame FlowLayout GridLayout BorderLayout Once created, the layout can be set in the content pane using setlayout As the window is resized, the UI components reorganize themselves based on the rules of the layout 10/24/2005 Java GUI Programming 17 Extending JFrame public class GUIMain extends JFrame { // construct GUI interface with components public GUIMain() { // set the layout manager Container container = getcontentpane(); container.setlayout( ); // create UI components and add container.add( ) } // GUIMain // create instance of GUIMain and set // frame behaviors GUIMain frame = new GUIMain(); frame.settitle( ); } // GUIMain 10/24/2005 Java GUI Programming 18 9
10 FlowLayout With flow layout, the components arrange themselves from left to right in the order they were added Rows/buttons are left aligned using FlowLayout.LEFT Horizontal gap of 10 pixels Vertical gap of 20 pixels 10/24/2005 Java GUI Programming 19 ShowFlowLayout.java public class ShowFlowLayout extends JFrame { // Constructor places components in the frame public ShowFlowLayout() { // Get the content pane from the frame Container container = getcontentpane(); // Set FlowLayout, aligned left with a horizontal // gap 10 and vertical gap 20 between components container.setlayout(new FlowLayout(FlowLayout.LEFT, 10, 20)); // Add 10 buttons into the frame for (int i=0; i<10; i++) { container.add(new JButton("Component " + i)); } } // ShowFlowLayout ShowFlowLayout frame = new ShowFlowLayout(); frame.settitle("showflowlayout"); frame.setsize(600, 200); frame.setlocation(100, 100); frame.setvisible(true); frame.setdefaultcloseoperation(jframe.exit_on_close); } // ShowFlowLayout 10/24/2005 Java GUI Programming 20 10
11 GridLayout With grid layout, the components arrange themselves in a matrix formation (rows, columns) Either the row or column must be non-zero The non-zero dimension is fixed and the zero dimension is determined dynamically The dominating parameter is the rows 10/24/2005 Java GUI Programming 21 2,4 GridLayout 0,4 10, 10 4,4 10/24/2005 Java GUI Programming 22 11
12 ShowGridLayout.java public class ShowGridLayout extends JFrame { public ShowGridLayout(int rows, int cols) { // Get the content pane of the frame Container container = getcontentpane(); // Set the grid layout based on user input for // the rows and columns. The gaps are 5 pixels container.setlayout(new GridLayout(rows, cols, 5, 5)); // Add 10 buttons to the frame for (int i=0; i<10; i++) { container.add(new JButton("Component " + i)); } } // ShowGridLayout if (args.length!= 2) { System.err.println("Usage: java ShowGridLayout rows cols"); System.exit(-1); } int rows = Integer.parseInt(args[0]); int cols = Integer.parseInt(args[1]); ShowGridLayout frame = new ShowGridLayout(rows, cols); frame.settitle("showgridlayout"); frame.setsize(600, 200); frame.setlocation(100, 100); frame.setvisible(true); frame.setdefaultcloseoperation(jframe.exit_on_close); } // ShowGridLayout 10/24/2005 Java GUI Programming 23 BorderLayout With border layout, the window is divided into five areas: BorderLayout.NORTH BorderLayout.WEST BorderLayout.CENTER BorderLayout.EAST BorderLayout.SOUTH Components are added to the frame using a specified index: container.add(new JButton( East ), BorderLayout.EAST); 10/24/2005 Java GUI Programming 24 12
13 BorderLayout 10/24/2005 Java GUI Programming 25 ShowBorderLayout.java public class ShowBorderLayout extends JFrame { public ShowBorderLayout() { // Get the content pane of the frame Container container = getcontentpane(); // Set the border layout with horizontal gap 5 // and vertical gap 10 container.setlayout(new BorderLayout(5, 10)); // Add buttons to the frame container.add(new JButton("East"), BorderLayout.EAST); container.add(new JButton("South"), BorderLayout.SOUTH); container.add(new JButton("West"), BorderLayout.WEST); container.add(new JButton("North"), BorderLayout.NORTH); container.add(new JButton("Center"), BorderLayout.CENTER); } // ShowBorderLayout ShowBorderLayout frame = new ShowBorderLayout(); frame.settitle("showborderlayout"); frame.setsize(600, 200); frame.setlocation(100, 100); frame.setvisible(true); frame.setdefaultcloseoperation(jframe.exit_on_close); } // ShowBorderLayout 10/24/2005 Java GUI Programming 26 13
14 BorderLayout The window stretches for each component: North and South stretch horizontally East and West stretch vertically Center can stretch in both directions to fill space The default location for a component is BorderLayout.CENTER If you add two components to the same location, only the last one will be displayed It is unnecessary to place components to occupy all areas 10/24/2005 Java GUI Programming 27 The color of GUI components can be set using the java.awt.color class Color Colors are made of red, green and blue components which range from 0 (darkest shade) to 255 (lightest shade) Each UI component has a background and foreground: Color color = new Color(128, 0, 0); JButton button = new JButton(); button.setbackground(color); // red button.setforeground(new Color(0, 0, 128)); // blue 10/24/2005 Java GUI Programming 28 14
15 There are 13 constant colors defined in Color: BLACK, BLUE, CYAN, DARK_GRAY, GRAY, GREEN, LIGHT_GRAY, MAGENTA, ORANGE, PINK, RED, WHITE, YELLOW Color 10/24/2005 Java GUI Programming 29 public class ColorButtons extends JFrame { // Constructor places components in the frame public ColorButtons() { // Get the content pane from the frame Container container = getcontentpane(); // Set FlowLayout, aligned left with a horizontal // gap 10 and vertical gap 20 between components container.setlayout(new FlowLayout(FlowLayout.LEFT, 10, 20)); ColorButtons.java Color colors[] = new Color [10]; colors[0] = Color.RED; colors[1] = Color.BLUE; colors[2] = Color.CYAN; colors[3] = Color.GRAY; colors[4] = Color.GREEN; colors[5] = Color.MAGENTA; colors[6] = Color.ORANGE; colors[7] = Color.PINK; colors[8] = Color.YELLOW; colors[9] = Color.DARK_GRAY; 10/24/2005 Java GUI Programming 30 15
16 // Add 10 buttons into the frame for (int i=0; i<10; i++) { JButton button = new JButton("Component " + i); button.setforeground(colors[i]); button.setbackground(colors[9-i]); container.add(button); } } // ColorButtons ColorButtons.java ColorButtons frame = new ColorButtons(); frame.settitle("colorbuttons"); frame.setsize(600, 200); frame.setlocation(100, 100); frame.setvisible(true); frame.setdefaultcloseoperation(jframe.exit_on_close); } // ColorButtons 10/24/2005 Java GUI Programming 31 Write a program to organize the components for a microwave oven: Panels text field button 12 buttons The problem is we want to use different layouts for different components 10/24/2005 Java GUI Programming 32 16
17 The window can be subdivided into different panels Panels The panels act as sub-containers for grouping UI components The content pane uses a border layout: Panel2: East Button: Center button text field 12 buttons Panel 2 uses a border layout: text: North Panel 1: Center Panel 1 uses a grid layout 10/24/2005 Java GUI Programming 33 import java.awt.*; import javax.swing.*; public class MicrowaveUI extends JFrame { public MicrowaveUI() { // Get the content pane of the frame Container container = getcontentpane(); // Set the border layout for the frame container.setlayout(new BorderLayout()); // Create panel1 for the button and // use a grid layout JPanel panel1 = new JPanel(); panel1.setlayout(new GridLayout(4, 3)); // Add buttons to the panel for (int i=1; i<10; i++) { JButton button = new JButton("" + i); button.setforeground(color.white); button.setbackground(color.black); panel1.add(button); } MicrowaveUI.java 10/24/2005 Java GUI Programming 34 17
18 MicrowaveUI.java JButton button = new JButton("0"); button.setforeground(color.white); button.setbackground(color.black); panel1.add(button); button = new JButton("Start"); button.setforeground(color.white); button.setbackground(color.black); panel1.add(button); button = new JButton("Stop"); button.setforeground(color.white); button.setbackground(color.black); panel1.add(button); // Create panel2 to hold a text field and panel1 JPanel panel2 = new JPanel(new BorderLayout()); JTextField textfield = new JTextField("Time to be displayed here..."); textfield.setforeground(color.white); textfield.setbackground(color.black); panel2.add(textfield,borderlayout.north); panel2.add(panel1, BorderLayout.CENTER); // Add panel2 and a button to the frame container.add(panel2, BorderLayout.EAST); button = new JButton("Food to be placed here"); button.setforeground(color.red); button.setbackground(color.black); container.add(button, BorderLayout.CENTER); } // MicrowaveUI 10/24/2005 Java GUI Programming 35 MicrowaveUI frame = new MicrowaveUI(); frame.settitle("zap It!"); frame.setsize(400, 250); frame.setlocation(100, 100); frame.setvisible(true); frame.setdefaultcloseoperation(jframe.exit_on_close); } // MicrowaveUI MicrowaveUI.java 10/24/2005 Java GUI Programming 36 18
19 Graphics can be drawn using a class which extends JPanel Graphics Swing will call the paintcomponent method to draw: protected void paintcomponent(graphics g); There are a variety of drawing methods: drawline(int x1, int y1, int x2, int y2); drawrect(int x, int y, int w, int h); drawoval(int x, int y, int w, int h); drawpolygon(int[] xpoints, int[] ypoints, int npoints); 10/24/2005 Java GUI Programming 37 Graphics line filled oval filled arc filled rectangle unfilled rectangle filled polygon unfilled oval unfilled arc 10/24/2005 Java GUI Programming 38 19
The Abstract Windowing Toolkit. Java Foundation Classes. Swing. In April 1997, JavaSoft announced the Java Foundation Classes (JFC).
The Abstract Windowing Toolkit Since Java was first released, its user interface facilities have been a significant weakness The Abstract Windowing Toolkit (AWT) was part of the JDK form the beginning,
Swing. A Quick Tutorial on Programming Swing Applications
Swing A Quick Tutorial on Programming Swing Applications 1 MVC Model View Controller Swing is based on this design pattern It means separating the implementation of an application into layers or components:
5.17 GUI. Xiaoyi Jiang Informatik I Grundlagen der Programmierung
AWT vs. Swing AWT (Abstract Window Toolkit; Package java.awt) Benutzt Steuerelemente des darunterliegenden Betriebssystems Native Code (direkt für die Maschine geschrieben, keine VM); schnell Aussehen
LAYOUT MANAGERS. Layout Managers Page 1. java.lang.object. java.awt.component. java.awt.container. java.awt.window. java.awt.panel
LAYOUT MANAGERS A layout manager controls how GUI components are organized within a GUI container. Each Swing container (e.g. JFrame, JDialog, JApplet and JPanel) is a subclass of java.awt.container and
GUI Components: Part 2
GUI Components: Part 2 JComboBox and Using an Anonymous Inner Class for Event Handling A combo box (or drop-down list) enables the user to select one item from a list. Combo boxes are implemented with
Mouse Event Handling (cont.)
GUI Components: Part II Mouse Event Handling (cont.) Each mouse event-handling method receives a MouseEvent object that contains information about the mouse event that occurred, including the x- and y-coordinates
CS 335 Lecture 06 Java Programming GUI and Swing
CS 335 Lecture 06 Java Programming GUI and Swing Java: Basic GUI Components Swing component overview Event handling Inner classes and anonymous inner classes Examples and various components Layouts Panels
Graphical User Interfaces
M14_REGE1813_02_SE_C14.qxd 2/10/10 3:43 PM Page 822 Chapter14 Graphical User Interfaces 14.1 GUI Basics Graphical Input and Output with Option Panes Working with Frames Buttons, Text Fields, and Labels
Programming with Java GUI components
Programming with Java GUI components Java includes libraries to provide multi-platform support for Graphic User Interface objects. The multi-platform aspect of this is that you can write a program on a
JIDE Action Framework Developer Guide
JIDE Action Framework Developer Guide Contents PURPOSE OF THIS DOCUMENT... 1 WHAT IS JIDE ACTION FRAMEWORK... 1 PACKAGES... 3 MIGRATING FROM EXISTING APPLICATIONS... 3 DOCKABLEBARMANAGER... 9 DOCKABLE
JIDE Common Layer Developer Guide (Open Source Project)
JIDE Common Layer Developer Guide (Open Source Project) Contents PURPOSE OF THIS DOCUMENT... 4 WHY USING COMPONENTS... 4 WHY DO WE OPEN SOURCE... 5 HOW TO LEARN JIDE COMMON LAYER... 5 PACKAGE STRUCTURE...
Fachbereich Informatik und Elektrotechnik Java Swing. Advanced Java. Java Swing Programming. Programming in Java, Helmut Dispert
Java Swing Advanced Java Java Swing Programming Java Swing Design Goals The overall goal for the Swing project was: To build a set of extensible GUI components to enable developersto more rapidly develop
Software Design: Figures
Software Design: Figures Today ColorPicker Layout Manager Observer Pattern Radio Buttons Prelimiary Discussion Exercise 5 ColorPicker They don't teach you the facts of death, Your mum and dad. They give
Java GUI Programming. Building the GUI for the Microsoft Windows Calculator Lecture 2. Des Traynor 2005
Java GUI Programming Building the GUI for the Microsoft Windows Calculator Lecture 2 Des Traynor 2005 So, what are we up to Today, we are going to create the GUI for the calculator you all know and love.
How To Build A Swing Program In Java.Java.Netbeans.Netcode.Com (For Windows) (For Linux) (Java) (Javax) (Windows) (Powerpoint) (Netbeans) (Sun) (
Chapter 11. Graphical User Interfaces To this point in the text, our programs have interacted with their users to two ways: The programs in Chapters 1-5, implemented in Processing, displayed graphical
GUIs with Swing. Principles of Software Construction: Objects, Design, and Concurrency. Jonathan Aldrich and Charlie Garrod Fall 2012
GUIs with Swing Principles of Software Construction: Objects, Design, and Concurrency Jonathan Aldrich and Charlie Garrod Fall 2012 Slides copyright 2012 by Jeffrey Eppinger, Jonathan Aldrich, William
Using A Frame for Output
Eventos Roteiro Frames Formatting Output Event Handling Entering Data Using Fields in a Frame Creating a Data Entry Field Using a Field Reading Data in an Event Handler Handling Multiple Button Events
public class Craps extends JFrame implements ActionListener { final int WON = 0,LOST =1, CONTINUE = 2;
Lecture 15 The Game of "Craps" In the game of "craps" a player throws a pair of dice. If the sum on the faces of the pair of dice after the first toss is 7 or 11 the player wins; if the sum on the first
How to Convert an Application into an Applet.
How to Convert an Application into an Applet. A java application contains a main method. An applet is a java program part of a web page and runs within a browser. I am going to show you three different
How To Program In Java (Ipt) With A Bean And An Animated Object In A Powerpoint (For A Powerbook)
Graphic Interface Programming II Applets and Beans and animation in Java IT Uppsala universitet Applets Small programs embedded in web pages
Mapping to the Windows Presentation Framework
Mapping to the Windows Presentation Framework This section maps the main IFML concepts to the.net Windows Presentation Framework (WFP). Windows Presentation Framework (WPF) is a part of.net Framework by
INTRODUCTION TO COMPUTER PROGRAMMING. Richard Pierse. Class 7: Object-Oriented Programming. Introduction
INTRODUCTION TO COMPUTER PROGRAMMING Richard Pierse Class 7: Object-Oriented Programming Introduction One of the key issues in programming is the reusability of code. Suppose that you have written a program
@ - Internal # - External @- Online TH PR OR TW TOTAL HOURS 04 --- 04 03 100 50# --- 25@ 175
COURSE NAME : COMPUTER ENGINEERING GROUP COURSE CODE SEMESTER SUBJECT TITLE : CO/CM/IF/CD : SIXTH : ADVANCED JAVA PROGRAMMING SUBJECT CODE : Teaching and Examination Scheme: @ - Internal # - External @-
Skills and Topics for TeenCoder: Java Programming
Skills and Topics for TeenCoder: Java Programming Our Self-Study Approach Our courses are self-study and can be completed on the student's own computer, at their own pace. You can steer your student in
Karsten Lentzsch JGoodies SWING WITH STYLE
Karsten Lentzsch JGoodies SWING WITH STYLE JGoodies: Karsten Lentzsch Open source Swing libraries Example applications Consultant for Java desktop Design assistance Training for visual design and implementation
How to create buttons and navigation bars
How to create buttons and navigation bars Adobe Fireworks CS3 enables you to design the look and functionality of buttons, including links and rollover features. After you export these buttons from Fireworks,
method is never called because it is automatically called by the window manager. An example of overriding the paint() method in an Applet follows:
Applets - Java Programming for the Web An applet is a Java program designed to run in a Java-enabled browser or an applet viewer. In a browser, an applet is called into execution when the APPLET HTML tag
Simple Line Drawing. Description of the Simple Line Drawing program
Simple Line Drawing Description of the Simple Line Drawing program JPT Techniques Creating and using the ColorView Creating and using the TextAreaView Creating and using the BufferedPanel with graphics
Interactive Programs and Graphics in Java
Interactive Programs and Graphics in Java Alark Joshi Slide credits: Sami Rollins Announcements Lab 1 is due today Questions/concerns? SVN - Subversion Versioning and revision control system 1. allows
http://netbeans.org/kb/docs/java/gui-functionality.html?print=yes
Page 1 of 6 Introduction to GUI Building Contributed by Saleem Gul and Tomas Pavek, maintained by Ruth Kusterer and Irina Filippova This beginner tutorial teaches you how to create a simple graphical user
Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.
Working with Tables in Microsoft Word The purpose of this document is to lead you through the steps of creating, editing and deleting tables and parts of tables. This document follows a tutorial format
How to create pop-up menus
How to create pop-up menus Pop-up menus are menus that are displayed in a browser when a site visitor moves the pointer over or clicks a trigger image. Items in a pop-up menu can have URL links attached
Object Oriented Programming with Java. School of Computer Science University of KwaZulu-Natal
Object Oriented Programming with Java School of Computer Science University of KwaZulu-Natal January 30, 2006 2 Object Oriented Programming with Java Notes for the Computer Science Module Object Oriented
Advanced Network Programming Lab using Java. Angelos Stavrou
Advanced Network Programming Lab using Java Angelos Stavrou Table of Contents A simple Java Client...3 A simple Java Server...4 An advanced Java Client...5 An advanced Java Server...8 A Multi-threaded
If you know exactly how you want your business forms to look and don t mind detail
Advanced Form Customization APPENDIX E If you know exactly how you want your business forms to look and don t mind detail work, you can customize QuickBooks forms however you want. With QuickBooks Layout
DIA Creating Charts and Diagrams
DIA Creating Charts and Diagrams Dia is a vector-based drawing tool similar to Win32 OS Visio. It is suitable for graphical languages such as dataflow diagrams, entity-relationship diagrams, organization
Create a Poster Using Publisher
Contents 1. Introduction 1. Starting Publisher 2. Create a Poster Template 5. Aligning your images and text 7. Apply a background 12. Add text to your poster 14. Add pictures to your poster 17. Add graphs
If you know exactly how you want your business forms to look and don t mind
appendix e Advanced Form Customization If you know exactly how you want your business forms to look and don t mind detail work, you can configure QuickBooks forms however you want. With QuickBooks Layout
Java is commonly used for deploying applications across a network. Compiled Java code
Module 5 Introduction to Java/Swing Java is commonly used for deploying applications across a network. Compiled Java code may be distributed to different machine architectures, and a native-code interpreter
Artificial Intelligence. Class: 3 rd
Artificial Intelligence Class: 3 rd Teaching scheme: 4 hours lecture credits: Course description: This subject covers the fundamentals of Artificial Intelligence including programming in logic, knowledge
Joomla Article Advanced Topics: Table Layouts
Joomla Article Advanced Topics: Table Layouts An HTML Table allows you to arrange data text, images, links, etc., into rows and columns of cells. If you are familiar with spreadsheets, you will understand
Tutorial: Time Of Day Part 2 GUI Design in NetBeans
Tutorial: Time Of Day Part 2 GUI Design in NetBeans October 7, 2010 Author Goals Kees Hemerik / Gerard Zwaan Getting acquainted with NetBeans GUI Builder Illustrate the separation between GUI and computation
In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move
WORD PROCESSING In this session, we will explain some of the basics of word processing. The following are the outlines: 1. Start Microsoft Word 11. Edit the Document cut & move 2. Describe the Word Screen
file://c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html
file:c:\dokumente und Einstellungen\Marco Favorito\Desktop\ScanCmds.html Seite 1 von 5 ScanCmds.java ------------------------------------------------------------------------------- ScanCmds Demontration
Instructions for Creating a Poster for Arts and Humanities Research Day Using PowerPoint
Instructions for Creating a Poster for Arts and Humanities Research Day Using PowerPoint While it is, of course, possible to create a Research Day poster using a graphics editing programme such as Adobe
Assignment # 2: Design Patterns and GUIs
CSUS COLLEGE OF ENGINEERING AND COMPUTER SCIENCE Department of Computer Science CSc 133 Object-Oriented Computer Graphics Programming Spring 2014 John Clevenger Assignment # 2: Design Patterns and GUIs
Lession: 2 Animation Tool: Synfig Card or Page based Icon and Event based Time based Pencil: Synfig Studio: Getting Started: Toolbox Canvas Panels
Lession: 2 Animation Tool: Synfig In previous chapter we learn Multimedia and basic building block of multimedia. To create a multimedia presentation using these building blocks we need application programs
Homework/Program #5 Solutions
Homework/Program #5 Solutions Problem #1 (20 points) Using the standard Java Scanner class. Look at http://natch3z.blogspot.com/2008/11/read-text-file-using-javautilscanner.html as an exampleof using the
How To Write A Program For The Web In Java (Java)
21 Applets and Web Programming As noted in Chapter 2, although Java is a general purpose programming language that can be used to create almost any type of computer program, much of the excitement surrounding
JIDE Docking Framework Developer Guide
JIDE Docking Framework Developer Guide Contents PURPOSE OF THIS DOCUMENT... 1 WHAT IS JIDE DOCKING FRAMEWORK... 2 HOW TO USE JIDE DOCKING FRAMEWORK... 2 UNDERSTANDING THE DOCKINGMANAGER... 2 INTEGRATION
DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen
DHBW Karlsruhe, Vorlesung Programmieren, Remote Musterlösungen Aufgabe 1 RMI - TimeService public interface TimeServerInterface extends Remote { public String gettime() throws RemoteException; import java.util.date;
Tutorials. If you have any questions, comments, or suggestions about these lessons, don't hesitate to contact us at [email protected].
Tutorials The lesson schedules for these tutorials were installed when you installed Milestones Professional 2010. They can be accessed under File Open a File Lesson Chart. If you have any questions, comments,
Ad Hoc Reporting. Usage and Customization
Usage and Customization 1 Content... 2 2 Terms and Definitions... 3 2.1 Ad Hoc Layout... 3 2.2 Ad Hoc Report... 3 2.3 Dataview... 3 2.4 Page... 3 3 Configuration... 4 3.1 Layout and Dataview location...
Microsoft Word defaults to left justified (aligned) paragraphs. This means that new lines automatically line up with the left margin.
Microsoft Word Part 2 Office 2007 Microsoft Word 2007 Part 2 Alignment Microsoft Word defaults to left justified (aligned) paragraphs. This means that new lines automatically line up with the left margin.
Dev Articles 05/25/07 11:07:33
Java Crawling the Web with Java Contributed by McGraw Hill/Osborne 2005 06 09 Access Your PC from Anywhere Download Your Free Trial Take your office with you, wherever you go with GoToMyPC. It s the remote
Programação Orientada a Objetos. Programando Interfaces Gráficas Orientadas a Objeto Parte 2
Programação Orientada a Objetos Programando Interfaces Gráficas Orientadas a Objeto Parte 2 Paulo André Castro CES-22 IEC - ITA Sumário Programando Interfaces Gráficas Orientadas a Objeto - Parte 2 2.2.1
Tutorial Reference Manual. Java WireFusion 4.1
Tutorial Reference Manual Java WireFusion 4.1 Contents INTRODUCTION...1 About this Manual...2 REQUIREMENTS...3 User Requirements...3 System Requirements...3 SHORTCUTS...4 DEVELOPMENT ENVIRONMENT...5 Menu
// Correntista. //Conta Corrente. package Banco; public class Correntista { String nome, sobrenome; int cpf;
// Correntista public class Correntista { String nome, sobrenome; int cpf; public Correntista(){ nome = "zé"; sobrenome = "Pereira"; cpf = 123456; public void setnome(string n){ nome = n; public void setsobrenome(string
Lab 9. Spam, Spam, Spam. Handout 11 CSCI 134: Spring, 2015. To gain experience with Strings. Objective
Lab 9 Handout 11 CSCI 134: Spring, 2015 Spam, Spam, Spam Objective To gain experience with Strings. Before the mid-90s, Spam was a canned meat product. These days, the term spam means just one thing unwanted
Essentials of the Java(TM) Programming Language, Part 1
Essentials of the Java(TM) Programming Language, Part 1 http://developer.java.sun.com/developer...ining/programming/basicjava1/index.html Training Index Essentials of the Java TM Programming Language:
Creating Fill-able Forms using Acrobat 8.0: Part 1
Creating Fill-able Forms using Acrobat 8.0: Part 1 The first step in creating a fill-able form in Adobe Acrobat is to generate the form with all its formatting in a program such as Microsoft Word. Then
CaptainCasa. CaptainCasa Enterprise Client. CaptainCasa Enterprise Client. Feature Overview
Feature Overview Page 1 Technology Client Server Client-Server Communication Client Runtime Application Deployment Java Swing based (JRE 1.6), generic rich frontend client. HTML based thin frontend client
Using Adobe Dreamweaver CS4 (10.0)
Getting Started Before you begin create a folder on your desktop called DreamweaverTraining This is where you will save your pages. Inside of the DreamweaverTraining folder, create another folder called
Essentials of the Java Programming Language
Essentials of the Java Programming Language A Hands-On Guide by Monica Pawlan 350 East Plumeria Drive San Jose, CA 95134 USA May 2013 Part Number TBD v1.0 Sun Microsystems. Inc. All rights reserved If
Using Microsoft Word. Working With Objects
Using Microsoft Word Many Word documents will require elements that were created in programs other than Word, such as the picture to the right. Nontext elements in a document are referred to as Objects
Google Sites: Site Creation and Home Page Design
Google Sites: Site Creation and Home Page Design This is the second tutorial in the Google Sites series. You should already have your site set up. You should know its URL and your Google Sites Login and
Introduction to Microsoft Word 2008
1. Launch Microsoft Word icon in Applications > Microsoft Office 2008 (or on the Dock). 2. When the Project Gallery opens, view some of the available Word templates by clicking to expand the Groups, and
Welcome to CorelDRAW, a comprehensive vector-based drawing and graphic-design program for the graphics professional.
Working with layout Welcome to CorelDRAW, a comprehensive vector-based drawing and graphic-design program for the graphics professional. In this tutorial, you will create a poster for an imaginary coffee
How to Use the Drawing Toolbar in Microsoft Word
How to Use the Drawing Toolbar in Microsoft Word The drawing toolbar allows you to quickly and easily label pictures (e.g., maps) in a MS Word file. You can add arrows, circle spots, or label with words.
The Basic Java Applet and JApplet
I2PUJ4 - Chapter 6 - Applets, HTML, and GUI s The Basic Java Applet and JApplet Rob Dempster [email protected] School of Computer Science University of KwaZulu-Natal Pietermaritzburg Campus I2PUJ4 - Chapter
How Scala Improved Our Java
How Scala Improved Our Java Sam Reid PhET Interactive Simulations University of Colorado http://spot.colorado.edu/~reids/ PhET Interactive Simulations Provides free, open source educational science simulations
Creating Web Pages with Microsoft FrontPage
Creating Web Pages with Microsoft FrontPage 1. Page Properties 1.1 Basic page information Choose File Properties. Type the name of the Title of the page, for example Template. And then click OK. Short
Tips for optimizing your publications for commercial printing
Tips for optimizing your publications for commercial printing If you need to print a publication in higher quantities or with better quality than you can get on your desktop printer, you will want to take
Create Charts in Excel
Create Charts in Excel Table of Contents OVERVIEW OF CHARTING... 1 AVAILABLE CHART TYPES... 2 PIE CHARTS... 2 BAR CHARTS... 3 CREATING CHARTS IN EXCEL... 3 CREATE A CHART... 3 HOW TO CHANGE THE LOCATION
BHARATHIAR UNIVERSITY COIMBATORE 641 046. SCHOOL OF DISTANCE EDUCATION
Anx.31 M - PG Dip WebSer (SDE) 2007-08 Page 1 of 6 BHARATHIAR UNIVERSITY COIMBATORE 641 046. SCHOOL OF DISTANCE EDUCATION PG DIPLOMA IN WEB SERVICES (PGDWS) (Effective from the Academic Year 2007-2008)
Inserting Graphics into Grant Applications & Other Word Documents
Merle Rosenzweig, [email protected] Inserting Graphics into Grant Applications & Other Word Documents ABOUT This document offers instruction on the efficient and proper placement of images, charts, and
PDF Web Form. Projects 1
Projects 1 In this project, you ll create a PDF form that can be used to collect user data online. In this exercise, you ll learn how to: Design a layout for a functional form. Add form fields and set
Microsoft Office 2010: Introductory Q&As PowerPoint Chapter 1
Microsoft Office 2010: Introductory Q&As PowerPoint Chapter 1 Are the themes displayed in a specific order? (PPT 6) Yes. They are arranged in alphabetical order running from left to right. If you point
Using NetBeans IDE for Desktop Development. Geertjan Wielenga http://blogs.sun.com/geertjan
Using NetBeans IDE for Desktop Development Geertjan Wielenga http://blogs.sun.com/geertjan Agenda Goals Design: Matisse GUI Builder Medium Applications: JSR-296 Tooling Large Applications: NetBeans Platform
KaleidaGraph Quick Start Guide
KaleidaGraph Quick Start Guide This document is a hands-on guide that walks you through the use of KaleidaGraph. You will probably want to print this guide and then start your exploration of the product.
Adobe InDesign Creative Cloud
Adobe InDesign Creative Cloud Beginning Layout and Design November, 2013 1 General guidelines InDesign creates links to media rather than copies so -Keep all text and graphics in one folder -Save the InDesign
Excel basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:
Excel basics Excel is a powerful spreadsheet and data analysis application, but to use it most effectively, you first have to understand the basics. This tutorial introduces some of the tasks and features
Creating Interactive PDF Forms
Creating Interactive PDF Forms Using Adobe Acrobat X Pro Information Technology Services Outreach and Distance Learning Technologies Copyright 2012 KSU Department of Information Technology Services This
ClarisWorks 5.0. Graphics
ClarisWorks 5.0 Graphics Level 1 Training Guide DRAFT Instructional Technology Page 1 Table of Contents Objectives... Page 3 Course Description and Organization... Page 4 Technology Requirements... Page
Illustration 1: An applet showing constructed responses in an intuitive mode. Note the misprint!
Applets in Java using NetBeans as an IDE (Part 1) C.W. David Department of Chemistry University of Connecticut Storrs, CT 06269-3060 [email protected] We are interested in creating a teaching/testing
Lab 1A. Create a simple Java application using JBuilder. Part 1: make the simplest Java application Hello World 1. Start Jbuilder. 2.
Lab 1A. Create a simple Java application using JBuilder In this lab exercise, we ll learn how to use a Java integrated development environment (IDE), Borland JBuilder 2005, to develop a simple Java application
After you complete the survey, compare what you saw on the survey to the actual questions listed below:
Creating a Basic Survey Using Qualtrics Clayton State University has purchased a campus license to Qualtrics. Both faculty and students can use Qualtrics to create surveys that contain many different types
Making Visio Diagrams Come Alive with Data
Making Visio Diagrams Come Alive with Data An Information Commons Workshop Making Visio Diagrams Come Alive with Data Page Workshop Why Add Data to A Diagram? Here are comparisons of a flow chart with
Data Visualization. Prepared by Francisco Olivera, Ph.D., Srikanth Koka Department of Civil Engineering Texas A&M University February 2004
Data Visualization Prepared by Francisco Olivera, Ph.D., Srikanth Koka Department of Civil Engineering Texas A&M University February 2004 Contents Brief Overview of ArcMap Goals of the Exercise Computer
Table of Contents. I. Banner Design Studio Overview... 4. II. Banner Creation Methods... 6. III. User Interface... 8
User s Manual Table of Contents I. Banner Design Studio Overview... 4 II. Banner Creation Methods... 6 a) Create Banners from scratch in 3 easy steps... 6 b) Create Banners from template in 3 Easy Steps...
Excel 2007: Basics Learning Guide
Excel 2007: Basics Learning Guide Exploring Excel At first glance, the new Excel 2007 interface may seem a bit unsettling, with fat bands called Ribbons replacing cascading text menus and task bars. This
Digital Signage with Apps
Version v1.0.0 Digital Signage with Apps Copyright 2012 Syabas Technology, All Rights Reserved 2 Digital Signage with Apps Project...6 New Project...6 Scheduler...6 Layout Panel...7 Property Panel...8
PowerPoint 2007 Basics Website: http://etc.usf.edu/te/
Website: http://etc.usf.edu/te/ PowerPoint is the presentation program included in the Microsoft Office suite. With PowerPoint, you can create engaging presentations that can be presented in person, online,
A Guide to Microsoft Paint (Windows XP)
A Guide to Microsoft Paint (Windows XP) Introduction Microsoft Paint allows you to produce your own pictures (or edit existing ones). In Windows XP, you can no longer access Paint directly from the Microsoft
How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For
How-to Guide: MIT DLC Drupal Cloud Theme This guide will show you how to take your initial Drupal Cloud site... and turn it into something more like this, using the MIT DLC Drupal Cloud theme. See this
Green = 0,255,0 (Target Color for E.L. Gray Construction) CIELAB RGB Simulation Result for E.L. Gray Match (43,215,35) Equal Luminance Gray for Green
Red = 255,0,0 (Target Color for E.L. Gray Construction) CIELAB RGB Simulation Result for E.L. Gray Match (184,27,26) Equal Luminance Gray for Red = 255,0,0 (147,147,147) Mean of Observer Matches to Red=255
