CODE WIDTH HEIGHT ARCHIVE ALIGN VSPACE, HSPACE ALT APPLET APPLET ALIGN IMG
|
|
|
- Simon Rich
- 9 years ago
- Views:
Transcription
1 Java Web Web Web Applet java.applet.applet Applet public void init () start public void start () public void stop () public void destroy () stop Applet Java.awt.Component Component public void paint () EventListener implements EventListener Web HTML APPLET <APPLET CODE = appletfile WIDTH = pixels HEIGHT = pixels> </APPLET> CODE WIDTH HEIGHT ARCHIVE ALIGN VSPACE, HSPACE ALT APPLET APPLET ALIGN IMG 20
2 Java GUI java.awt GUI Canvas MyCanvas Jikken.java import java.applet.applet; import java.awt.*; import java.awt.event.*; import javax.imageio.*; import java.net.*; /** */ public class JikkenApplet extends Applet implements ActionListener, ItemListener, AdjustmentListener, MouseListener, MouseMotionListener, WindowListener, KeyListener { Button button, button1, button2; // Checkbox check[]; // CheckboxGroup group; // Choice choice; // Dialog dialog; // Frame frame; Image image; Label label; // // // List list1, list2; // Scrollbar scroll; // TextArea textarea; // TextField textfield1, textfield2; // Panel panel1, panel2, panel3; // MyCanvas canvas; public void init() { GridBagLayout gridbag = new GridBagLayout(); setlayout(gridbag); GridBagConstraints c = new GridBagConstraints(); c.fill = GridBagConstraints.BOTH; c.gridheight = 2; makepanel1(); gridbag.setconstraints(panel1, c); add(panel1); c.weightx = 1.0; canvas = new MyCanvas(); gridbag.setconstraints(canvas, c); canvas.addmouselistener(this); canvas.addmousemotionlistener(this); add(canvas); canvas.addkeylistener(this); 21
3 c.weightx = 0.0; c.gridheight = 1; c.gridwidth = GridBagConstraints.REMAINDER; makepanel2(); gridbag.setconstraints(panel2, c); add(panel2); makepanel3(); gridbag.setconstraints(panel3, c); add(panel3); c.weightx = 1.0; c.weighty = 1.0; c.gridheight = GridBagConstraints.REMAINDER; c.gridwidth = GridBagConstraints.REMAINDER; textarea = new TextArea("TextArea"); gridbag.setconstraints(textarea, c); add(textarea); try { image = getimage(new URL(getCodeBase(), "2euro.gif")); catch (MalformedURLException ex) { ex.printstacktrace(); canvas.setimage(image); canvas.setpoint(30, 30); canvas.repaint(); makeframe(); public void makepanel1() { panel1 = new Panel(); panel1.setbackground(color.yellow); panel1.setlayout(new GridLayout(8, 1)); button = new Button("Button"); button.addactionlistener(this); panel1.add(button); check = new Checkbox[6]; group = new CheckboxGroup(); for(int i = 0; i < 3; i++) { check[i] = new Checkbox("check " + i); check[i].additemlistener(this); panel1.add(check[i]); for(int i = 0; i < 3; i++) { check[i + 3] = new Checkbox("radio " + i, false, group); check[i + 3].addItemListener(this); panel1.add(check[i + 3]); 22
4 choice = new Choice(); for(int i = 0; i < 3; i++) { choice.additem("choice " + (i + 1)); choice.additemlistener(this); panel1.add(choice); public void makepanel2() { panel2 = new Panel(); panel2.setbackground(new Color(255, 192, 192)); list1 = new List(4, false); list2 = new List(4, true); for(int i = 0; i < 6; i++) { list1.add("list " + (i + 1)); list2.add("list " + (i + 1)); list1.additemlistener(this); list2.additemlistener(this); panel2.add(list1); panel2.add(list2); public void makepanel3() { panel3 = new Panel(); panel3.setbackground(color.white); panel3.setlayout(null); label = new Label("Label"); label.setbounds(10, 10, 80, 25); panel3.add(label); button1 = new Button("Frame"); button1.addactionlistener(this); button1.setbounds(10, 40, 80, 30); panel3.add(button1); textfield1 = new TextField("TextField"); textfield1.setbounds(100, 10, 120, 25); textfield1.addactionlistener(this); panel3.add(textfield1); textfield2 = new TextField("50"); textfield2.seteditable(false); textfield2.setbounds(100, 45, 120, 25); panel3.add(textfield2); scroll = new Scrollbar(Scrollbar.HORIZONTAL, 50, 5, 0, 105); scroll.setbounds(10, 80, 210, 25); scroll.addadjustmentlistener(this); panel3.add(scroll); public void makeframe() { frame = new Frame("Frame"); frame.setbounds(100, 100, 200, 200); frame.add(new Label("Dialog "), BorderLayout.CENTER); 23
5 button2 = new Button("Dialog"); button2.addactionlistener(this); frame.addwindowlistener(this); frame.add(button2, BorderLayout.SOUTH); dialog = new Dialog(frame, "Dialog"); dialog.setbounds(500, 100, 200, 200); dialog.add(new Label(" ")); dialog.addwindowlistener(this); public void actionperformed(actionevent e) { Object obj = e.getsource(); if(obj == button) { textarea.append(" nbutton "); else if(obj == button1) { frame.setvisible(true); else if(obj == button2) { dialog.setvisible(true); else { textarea.append(" ntextfield " + textfield1.gettext() + " "); public void itemstatechanged(itemevent e) { Object obj = e.getsource(); boolean c = false; for(int i = 0; (i < 3) && (c == false); i++) { if(obj == check[i]) { textarea.append(" n" + check[i].getlabel() + " " + check[i].getstate() + " "); c = true; if(i == 0) { boolean b = check[0].getstate(); canvas.setdoublebuffer(b); if (b) { /* */ textarea.append(" n else { if(c == false) { if(obj == choice) { "); textarea.append(" n "); textarea.append(" n" + choice.getselectedindex() + " " + choice.getselecteditem() + " "); else if(obj == list1) { textarea.append(" n " + list1.getselectedindex() + 24
6 Java " " + list1.getselecteditem() + " "); else if(obj == list2) { int[] x = list2.getselectedindexes(); String[] s = list2.getselecteditems(); int ii = x.length; if(ii == 0) { textarea.append(" n "); else { String str =" n "; str = str + x[0] + " " + s[0] + " "; for(int i = 1; i < ii; i++) { str = str + " " + x[i] + " " + s[i] + " "; textarea.append(str + " "); else { Checkbox cb = group.getselectedcheckbox(); textarea.append(" n" + cb.getlabel() + " "); String str; if (cb == check[3]) { str = "2euro.gif"; else if(cb == check[4]) { str = "norokko.png"; else { str = "grasshopper.jpg"; try { image = getimage(new URL(getCodeBase(), str)); catch (MalformedURLException ex) { canvas.setimage(image); public void adjustmentvaluechanged(adjustmentevent e) { textfield2.settext(integer.tostring(scroll.getvalue())); public void mouseclicked(mouseevent e) { textarea.append(" n ( " + e.getx() + ", " + e.gety() + canvas.setpoint(e.getx(), e.gety()); ") "); public void mousepressed(mouseevent e) { textarea.append(" n ( " + e.getx() + ", " + e.gety() + ") "); public void mousereleased(mouseevent e) { textarea.append(" n ( " + e.getx() + ", " + e.gety() + ") "); 25
7 public void mouseentered(mouseevent e) { textarea.append(" n ( " + e.getx() + ", " + e.gety() + ") "); public void mouseexited(mouseevent e) { textarea.append(" n ( " + e.getx() + ", " + e.gety() + ") "); public void mousedragged(mouseevent e) { canvas.setpoint(e.getx(), e.gety()); public void mousemoved(mouseevent e) { label.settext("( " + e.getx() + ", " + e.gety() + ")"); public String which(object obj) { if(obj == frame) { return "Frame"; else { return "Dialog"; public void windowopened(windowevent e){ textarea.append(" n" + which(e.getsource()) + " "); public void windowclosing(windowevent e){ ((Window)e.getSource()).setVisible(false); String str; if(e.getsource() == frame) { str = "Frame"; else { str = "Dialog"; textarea.append(" n" + which(e.getsource()) + " "); public void windowclosed(windowevent e) { public void windowiconified(windowevent e) { public void windowdeiconified(windowevent e) { public void windowactivated(windowevent e) { public void windowdeactivated(windowevent e) { public void keytyped(keyevent e) { textarea.append(" n" + e.getkeychar() + " "); public void keypressed(keyevent e) { public void keyreleased(keyevent e) { 26
8 MyCanvas.java import java.awt.*; import java.util.*; public class MyCanvas extends Canvas implements Runnable { int drawx, drawy; Image image, buffer; Thread thread; Font font; boolean dbuffer; public MyCanvas() { thread = null; font = null; buffer = null; dbuffer = false; this.init(); public void init() { image = null; drawx = -1; drawy = -1; if(font == null) { font = new Font("Sans-serif", 0, 50); if(thread == null) { thread = new Thread(this); thread.start(); public void setdoublebuffer(boolean b) { dbuffer = b; public boolean getdoublebuffer() { return dbuffer; public void setimage(image i) { image = i; public Image getimage() { return image; public void setpoint(int x, int y) { drawx = x; drawy = y; 27
9 public int getx() { return drawx; public int gety() { return drawy; public String time() { GregorianCalendar cal = new GregorianCalendar(); String str = Integer.toString(cal.get(Calendar.HOUR_OF_DAY)) + ":"; int x = cal.get(calendar.minute); if(x < 10) { str += "0"; str = str + x + ":"; x = cal.get(calendar.second); if(x < 10) { str += "0"; return (str + x); public void paint(graphics g) { Graphics gr; if(dbuffer) { int w = getwidth(); int h = getheight(); if (buffer == null) { buffer = createimage(w, h); gr = buffer.getgraphics(); gr.setcolor(getbackground()); gr.fillrect(0, 0, w - 1, w - 1); gr.setcolor(color.black); else { gr = g; if((image!= null) && (drawx >=0) && (drawy >= 0)) { int w = image.getwidth(this); int h = image.getheight(this); gr.drawimage(image, drawx - w / 2, drawy - h / 2, this); gr.setfont(font); gr.drawstring(time(), 5, 70); if(dbuffer) { g.drawimage(buffer, 0, 0, this); public void update(graphics g) { if(dbuffer) { paint(g); else { super.update(g); 28
10 public void run() { while(true) { repaint(); try { thread.sleep(100); catch(interruptedexception e) { jikken.html <!DOCUMENT HTML PUBLIC "-//W3C/DTD HTML 4.01 Transitional//EN" " <HTML> <BODY> <HEAD> <META http-equiv="content-type" content="text/html; charset=shift_jis"> <TITLE> </TITLE> </HEAD> <P> <H2> </H2> </P> </P> <BODY BGCOLOR="#ffffff"> <P> <APPLET CODE="JikkenApplet.class" WIDTH=600 HEIGHT=400> </APPLET><BR> </P> </BODY> </HTML> 2euro.gif norokko.png grasshopper.jpg 29
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
core 2 Handling Mouse and Keyboard Events
core Web programming Handling Mouse and Keyboard Events 1 2001-2003 Marty Hall, Larry Brown http:// Agenda General event-handling strategy Handling events with separate listeners Handling events by implementing
public class Application extends JFrame implements ChangeListener, WindowListener, MouseListener, MouseMotionListener {
Application.java import javax.swing.*; import java.awt.geom.*; import java.awt.event.*; import javax.swing.event.*; import java.util.*; public class Application extends JFrame implements ChangeListener,
Java Mouse and Keyboard Methods
7 Java Mouse and Keyboard Methods 7.1 Introduction The previous chapters have discussed the Java programming language. This chapter investigates event-driven programs. Traditional methods of programming
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
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
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
java.applet Reference
18 In this chapter: Introduction to the Reference Chapters Package diagrams java.applet Reference Introduction to the Reference Chapters The preceding seventeen chapters cover just about all there is to
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
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
Java Appletek II. Applet GUI
THE INTERNET,mapped on the opposite page, is a scalefree network in that Java Appletek II. dis.'~tj port,from BYALBERTU\SZLOBARABASI ANDERICBONABEAU THE INTERNET,mapped on the opposite page, is a scalefree
There are some important differences between an applet and a standalone Java application, including the following:
JAVA - APPLET BASICS Copyright tutorialspoint.com An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java application because it has the entire Java API at its
WEEK 2 DAY 14. Writing Java Applets and Java Web Start Applications
WEEK 2 DAY 14 Writing Java Applets and Java Web Start Applications The first exposure of many people to the Java programming language is in the form of applets, small and secure Java programs that run
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
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
An Overview of Java. overview-1
An Overview of Java overview-1 Contents What is Java Major Java features Java virtual machine Java programming language Java class libraries (API) GUI Support in Java Networking and Threads in Java overview-2
Remote Method Invocation
Goal of RMI Remote Method Invocation Implement distributed objects. Have a program running on one machine invoke a method belonging to an object whose execution is performed on another machine. Remote
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
abstract windows toolkit swing
GUI abstract windows toolkit swing GUI Graphical User Interface let user enter data for application let user control processing steps display a view of data to user Graphical User Interface Mostly or entirely
Assignment No.3. /*-- Program for addition of two numbers using C++ --*/
Assignment No.3 /*-- Program for addition of two numbers using C++ --*/ #include class add private: int a,b,c; public: void getdata() couta; cout
Event-Driven Programming
Event-Driven Programming Lecture 4 Jenny Walter Fall 2008 Simple Graphics Program import acm.graphics.*; import java.awt.*; import acm.program.*; public class Circle extends GraphicsProgram { public void
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
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
Here's the code for our first Applet which will display 'I love Java' as a message in a Web page
Create a Java Applet Those of you who purchased my latest book, Learn to Program with Java, know that in the book, we create a Java program designed to calculate grades for the English, Math and Science
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
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:
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
Tutorial: Building a Java applet
Tutorial: Building a Java applet Presented by developerworks, your source for great tutorials Table of Contents If you're viewing this document online, you can click any of the topics below to link directly
11. Applets, normal window applications, packaging and sharing your work
11. Applets, normal window applications, packaging and sharing your work In this chapter Converting Full Screen experiments into normal window applications, Packaging and sharing applications packaging
Using the Beans Development Kit 1.0. September 1997. A Tutorial. Alden DeSoto. Sept 97. 2550 Garcia Avenue Mountain View, CA 94043 U.S.A.
Using the Beans Development Kit 1.0 September 1997 A Tutorial Alden DeSoto 2550 Garcia Avenue Mountain View, CA 94043 U.S.A. 408-343-1400 Sept 97 Contents 1. Getting Started.......................................
Java Example. A First Java Program. Pixels, Rasters, Sprites, and BitBlts. Exercise #1. Experiencing JAVAphobia?
Pixels, Rasters, Sprites, and BitBlts Exercise #1 Set up your course homepage by next Tuesday 9/19 Experiencing JAVAphobia? Homepage Requirements: Exercise #1 A Graphical Hello World Rasters Pixels Sprites
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
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
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
Fondamenti di Java. Introduzione alla costruzione di GUI (graphic user interface)
Fondamenti di Java Introduzione alla costruzione di GUI (graphic user interface) component - container - layout Un Container contiene [0 o +] Components Il Layout specifica come i Components sono disposti
MillMedia Guidelines
Millennium Media Guidelines OVERVIEW Millennium Media is the Innovative Interfaces media management application that enables access to a variety of digitized media files selected from the print resources
The Design and Implementation of Multimedia Software
Chapter 3 Programs The Design and Implementation of Multimedia Software David Bernstein Jones and Bartlett Publishers www.jbpub.com David Bernstein (jbpub.com) Multimedia Software Jones and Bartlett 1
Chapter 1 Java Program Design and Development
presentation slides for JAVA, JAVA, JAVA Object-Oriented Problem Solving Third Edition Ralph Morelli Ralph Walde Trinity College Hartford, CT published by Prentice Hall Java, Java, Java Object Oriented
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
JAVA DEVELOPER S GUIDE TO ASPRISE SCANNING & IMAGE CAPTURE SDK
Technical Library JAVA DEVELOPER S GUIDE TO ASPRISE SCANNING & IMAGE CAPTURE SDK Version 10 Last updated on June, 2014 ALL RIGHTS RESERVED BY LAB ASPRISE! 1998, 2014. Table of Contents 1 INTRODUCTION...6
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
Introduction to Java Applets (Deitel chapter 3)
Introduction to Java Applets (Deitel chapter 3) 1 2 Plan Introduction Sample Applets from the Java 2 Software Development Kit Simple Java Applet: Drawing a String Drawing Strings and Lines Adding Floating-Point
@ - 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 @-
XHTML BASICS. Institute of Finance Management CIT Department Herman Mandari
XHTML BASICS Institute of Finance Management CIT Department Herman Mandari HTML Styles Introduces CSS to HTML The main purposes is to provide a common way to style all HTML elements Examples
Web Development and Core Java Lab Manual V th Semester
Web Development and Core Java Lab Manual V th Semester DEPT. OF COMPUTER SCIENCE AND ENGINEERING Prepared By: Kuldeep Yadav Assistant Professor, Department of Computer Science and Engineering, RPS College
Fachbereich Informatik und Elektrotechnik Java Applets. Programming in Java. Java Applets. Programming in Java, Helmut Dispert
Java Applets Programming in Java Java Applets Java Applets applet= app = application snippet = Anwendungsschnipsel An applet is a small program that is intended not to be run on its own, but rather to
Website Login Integration
SSO Widget Website Login Integration October 2015 Table of Contents Introduction... 3 Getting Started... 5 Creating your Login Form... 5 Full code for the example (including CSS and JavaScript):... 7 2
core 2 Applets and Basic Graphics
core Web programming Applets and Basic Graphics 1 2001-2003 Marty Hall, Larry Brown, http:// Agenda Applet restrictions Basic applet and HTML template The applet life-cycle Customizing applets through
JAVA Program For Processing SMS Messages
JAVA Program For Processing SMS Messages Krishna Akkulu The paper describes the Java program implemented for the MultiModem GPRS wireless modem. The MultiModem offers standards-based quad-band GSM/GPRS
Cours de Java. Sciences-U Lyon. Java - Introduction Java - Fondamentaux Java Avancé. http://www.rzo.free.fr
Cours de Java Sciences-U Lyon Java - Introduction Java - Fondamentaux Java Avancé http://www.rzo.free.fr Pierre PARREND 1 Octobre 2004 Sommaire Java Introduction Java Fondamentaux Java Avancé GUI Graphical
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,
c. Write a JavaScript statement to print out as an alert box the value of the third Radio button (whether or not selected) in the second form.
Practice Problems: These problems are intended to clarify some of the basic concepts related to access to some of the form controls. In the process you should enter the problems in the computer and run
CSS Techniques: Scrolling gradient over a fixed background
This is a little hard to describe, so view the example and be sure to scroll to the bottom of the page. The background is a gradient that fades into a simple graphic. As you scroll down the page, the graphic
GUI Event-Driven Programming
GUI Event-Driven Programming CSE 331 Software Design & Implementation Slides contain content by Hal Perkins and Michael Hotan 1 Outline User events and callbacks Event objects Event listeners Registering
How to develop your own app
How to develop your own app It s important that everything on the hardware side and also on the software side of our Android-to-serial converter should be as simple as possible. We have the advantage that
Working with forms in PHP
2002-6-29 Synopsis In this tutorial, you will learn how to use forms with PHP. Page 1 Forms and PHP One of the most popular ways to make a web site interactive is the use of forms. With forms you can have
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
TABLE OF CONTENTS...2 INTRODUCTION...3 APPLETS AND APPLICATIONS...3 JAVABEANS...4 EXCEPTION HANDLING...5 JAVA DATABASE CONNECTIVITY (JDBC)...
Advanced Features Trenton Computer Festival May 1 sstt & 2 n d,, 2004 Michael P.. Redlich Senior Research Technician ExxonMobil Research & Engineering [email protected] Table of Contents
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,
Chapter 1 Programming Languages for Web Applications
Chapter 1 Programming Languages for Web Applications Introduction Web-related programming tasks include HTML page authoring, CGI programming, generating and parsing HTML/XHTML and XML (extensible Markup
Implementing Specialized Data Capture Applications with InVision Development Tools (Part 2)
Implementing Specialized Data Capture Applications with InVision Development Tools (Part 2) [This is the second of a series of white papers on implementing applications with special requirements for data
Java applets. SwIG Jing He
Java applets SwIG Jing He Outline What is Java? Java Applications Java Applets Java Applets Securities Summary What is Java? Java was conceived by James Gosling at Sun Microsystems Inc. in 1991 Java is
Fireworks 3 Animation and Rollovers
Fireworks 3 Animation and Rollovers What is Fireworks Fireworks is Web graphics program designed by Macromedia. It enables users to create any sort of graphics as well as to import GIF, JPEG, PNG photos
Translating to Java. Translation. Input. Many Level Translations. read, get, input, ask, request. Requirements Design Algorithm Java Machine Language
Translation Translating to Java Introduction to Computer Programming The job of a programmer is to translate a problem description into a computer language. You need to be able to convert a problem description
JavaScript and Dreamweaver Examples
JavaScript and Dreamweaver Examples CSC 103 October 15, 2007 Overview The World is Flat discussion JavaScript Examples Using Dreamweaver HTML in Dreamweaver JavaScript Homework 3 (due Friday) 1 JavaScript
Internet Technologies
QAFQAZ UNIVERSITY Computer Engineering Department Internet Technologies HTML Forms Dr. Abzetdin ADAMOV Chair of Computer Engineering Department [email protected] http://ce.qu.edu.az/~aadamov What are forms?
Hello World RESTful web service tutorial
Hello World RESTful web service tutorial Balázs Simon ([email protected]), BME IIT, 2015 1 Introduction This document describes how to create a Hello World RESTful web service in Eclipse using JAX-RS
1 Hour, Closed Notes, Browser open to Java API docs is OK
CSCI 143 Exam 2 Name 1 Hour, Closed Notes, Browser open to Java API docs is OK A. Short Answer For questions 1 5 credit will only be given for a correct answer. Put each answer on the appropriate line.
Tutorial 8: Quick Form Button
Objectives: Your goal in this tutorial is to be able to: properly use NetStores Quick-Form feature in Dreamweaver customize the Quick Form order button create a form with various components: check boxes
CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus
CSS 543 Program 3: Online Tic-Tac-Toe Game Professor: Munehiro Fukuda Due date: see the syllabus 1. Purpose This assignment exercises how to write a peer-to-peer communicating program using non-blocking
Interview Questions in Core Java
Interview Questions in Core Java 1.what is a transient variable? A transient variable is a variable that may not be serialized. 2.which containers use a border Layout as their default layout? The window,
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
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
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
CSS - Cascading Style Sheets
CSS - Cascading Style Sheets From http://www.csstutorial.net/ http://www.w3schools.com/css/default.asp What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements External
Cisco Adaptive Security Appliance (ASA) Web VPN Portal Customization: Solution Brief
Guide Cisco Adaptive Security Appliance (ASA) Web VPN Portal Customization: Solution Brief Author: Ashur Kanoon August 2012 For further information, questions and comments please contact [email protected]
JAVA - MULTITHREADING
JAVA - MULTITHREADING http://www.tutorialspoint.com/java/java_multithreading.htm Copyright tutorialspoint.com Java is amulti threaded programming language which means we can develop multi threaded program
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
Chapter 2 Introduction to Java programming
Chapter 2 Introduction to Java programming 1 Keywords boolean if interface class true char else package volatile false byte final switch while throws float private case return native void protected break
Principles of Software Construction: Objects, Design and Concurrency. GUIs with Swing. toad 15-214. Spring 2013
Principles of Software Construction: Objects, Design and Concurrency GUIs with Swing 15-214 toad Spring 2013 Christian Kästner Charlie Garrod School of Computer Science 2012-13 C Garrod, C Kästner, J Aldrich,
Introduction to XHTML. 2010, Robert K. Moniot 1
Chapter 4 Introduction to XHTML 2010, Robert K. Moniot 1 OBJECTIVES In this chapter, you will learn: Characteristics of XHTML vs. older HTML. How to write XHTML to create web pages: Controlling document
ICE: HTML, CSS, and Validation
ICE: HTML, CSS, and Validation Formatting a Recipe NAME: Overview Today you will be given an existing HTML page that already has significant content, in this case, a recipe. Your tasks are to: mark it
Tema: Encriptación por Transposición
import java.awt.*; import java.awt.event.*; import javax.swing.*; public class PrincipalSO extends JApplet implements ActionListener { // Declaración global JLabel lblclave, lblencriptar, lblencriptado,
An Attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.
CHAPTER 10 HTML-I BASIC HTML ELEMENTS HTML (Hyper Text Markup Language) is a document-layout and hyperlink-specification language i.e., a language used to design the layout of a document and to specify
