Java Lecture 4 Applets

Total Page:16

File Type:pdf, Size:1020Kb

Java Lecture 4 Applets Java Lecture 4 Applets HTML: Hypertext Markup Language lays out the syntax for web pages. The relevant parts for our purposes are shown below: <html> // start tag for html document <head> // Introduces the Head section <title>Hi</title> // Title that will appear on title bar </head> // end of head section <body> // start of body section <hr> // Horizontal line <applet // begin an applet definition code=Hi.class // class to execute name=Hi // name of applet for use on the html page width=320 // initial window width height=240 > // initial window height </applet> // end of applet definition <hr> <a href="Hi.java">The source.</a> // declares a link </body> // end of body section </html> // end of html document Here's the code for the Java image in the syllabus: <APPLET code=An.class id=An width=56 height=30 > // the param parameter passes a value to a variable in the applet <PARAM name=fps value=10> <PARAM name=imageFile value="LJN"> <PARAM name=numImages value=22> </APPLET> Applets: Some additional applet parameters for the applet tag in HTML are: CODEBASE This url specifies the base url of the applet, the default is the html document's url. ALT Text the browser can display IF it can't run the applet - but understands the applet tag. ALIGN Gives the alignment of the applet. Possible values are: BASELINE, CENTER, LEFT, MIDDLE, RIGHT, TEXTBOTTOM, TEXTMIDDLE, TEXTTOP. VSPACE Specifies the number of pixels above and below the applet. HSPACE Specifies the number of pixels on each side of the applet. Here's the class hierarchy that pertains to applets: java.lang.Object java.awt.Component java.awt.Container java.awt.Panel java.applet.Applet AWT means the Abstract Windows Toolkit which we will investigate later. Event Oriented: Java applets are event oriented. We'll see mouse and keyboard events later. Key events in an applets life: Loading the Applet: 1. An instance of the applet's controlling class is created (this is a subclass of Applet). 2. The applet initializes itself. 3. The applet starts running. Reloading the Applet: This occurs when the window is minimized (iconified) or goes to another page. The applet can (has the option) of stopping itself. If it stops it must restart, with the steps shown above in loading an applet. Quitting the Applet: The applet has a chance of stopping itself and doing final cleanup. And the Member methods: init Initializes the applet each time it is opened (loaded or reloaded). This is called after the constructor. This method is called by the browser or applet viewer to inform this applet that it has been loaded into the system. It is always called before the first time the start method is called. A subclass of Applet should override this method if it has initialization to perform. For example, an applet with threads would use the init method to create the threads and the destroy method to kill them. start This method is called by the browser or applet viewer to inform this applet that it should start its execution. It is called after the init method and each time the applet is revisited in a Web page. A subclass of Applet should override this method if it has any operation that it wants to perform each time the Web page containing it is visited. For example, an applet with animation might want to use the start method to resume animation, and the stop method to suspend the animation. stop This method is called by the browser or applet viewer to inform this applet that it should stop its execution. It is called when the Web page that contains this applet has been replaced by another page and also just before the applet is to be destroyed. A subclass of Applet should override this method if it has any operation that it wants to perform each time the Web page containing it is no longer visible. For example, an applet with animation might want to use the start method to resume animation, and the stop method to suspend the animation. destroy This method is called by the browser or applet viewer to inform thisapplet that it is being reclaimed and that it should destroy any resources that it has allocated. The stop method will always be called before destroy. A subclass of Applet should override this method if it has any operation that it wants to perform before it is destroyed. For example, an applet with threads would use the init method to create the threads and the destroy method to kill them. paint Paints this component. Most application components, including applets, override this method. The paint method of Component calls the repaint method of this component's peer. repaint schedules a call to component’s update method asap. update is responsible for redrawing the component. The default redraws the background and then calls paint. Here's an example: import java.applet.Applet; import java.awt.Graphics; public class Hi extends Applet { private int m_nInitCnt; private int m_nStartCnt; private int m_nStopCnt; private int m_nDestroyCnt; private int m_nPaintCnt; public Hi() { m_nInitCnt = 0; m_nStartCnt = 0; m_nStopCnt = 0; m_nDestroyCnt = 0; m_nPaintCnt = 0; } public void init() { resize(320, 240); m_nInitCnt++; } public void start() { m_nStartCnt++; } public void stop() { m_nStopCnt++; } public void destroy() { m_nDestroyCnt++; } public void paint(Graphics g) { g.drawString("Init count = " + m_nInitCnt, 0, 20); g.drawString("Start count = " + m_nStartCnt, 0, 30); g.drawString("Stop count = " + m_nStopCnt, 0, 40); g.drawString("Destroy count = " + m_nDestroyCnt, 0, 50); g.drawString("Paint count = " + ++m_nPaintCnt, 0, 60); } } Painting and Graphics: paint is a member of the Component class. It has a signature of public void paint(Graphics g) Paints this component. For example, a string would NOT be painted with println but with drawString. Most application components, including applets, override this method. The paint method of Component calls the repaint method of this component's peer. The (0, 0) coordinate of the graphics context is the top-left corner of this component. This is the MM_TEXT mapping mode of C++ Windows programming. The clipping region of the graphics context is the bounding rectangle of this component. Positive x value are to the right. The y offset has positive values going down. Parameters: g - the graphics context to use for painting The Graphics class is the abstract base class for all graphics contexts which allow an application to draw onto components or onto off-screen images. public abstract class java.awt.Graphics extends java.lang.Object { // Constructors protected Graphics() // Methods public abstract void clearRect(int x, int y, int width, int height); public abstract void clipRect(int x, int y, int width, int height); public abstract void copyArea(int x, int y, int width, int height, int dx, int dy); public abstract Graphics create(); public Graphics create(int x, int y, int width, int height); public abstract void dispose(); public void draw3DRect(int x, int y, int width, int height, boolean raised); public abstract voiddrawArc(int x, int y, int width, int height, int startAngle, int arcAngle); public void drawBytes(byte data[], int offset, int length, int x, int y); public void drawChars(char data[], int offset, int length, int x, int y); public abstract boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer); public abstract boolean drawImage(Image img, int x, int y, ImageObserver observer); public abstract boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer); public abstract boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer); public abstract void drawLine(int x1, int y1, int x2, int y2); public abstract void drawOval(int x, int y, int width, int height); public abstract void drawPolygon(int xPoints[], int yPoints[], int nPoints); public void drawPolygon(Polygon p); public void drawRect(int x, int y, int width, int height); public abstract void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight); public abstract void drawString(String str, int x, int y); public void fill3DRect(int x, int y, int width, int height, boolean raised); public abstract void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle); public abstract void fillOval(int x, int y, int width, int height); public abstract void fillPolygon(int xPoints[], int yPoints[], int nPoints); public void fillPolygon(Polygon p); public abstract void fillRect(int x, int y, int width, int height); public abstract void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight); public void finalize(); public abstract Rectangle getClipRect(); public abstract Color getColor(); public abstract Font getFont(); public FontMetrics getFontMetrics(); public abstract FontMetrics getFontMetrics(Font f); public abstract void setColor(Color c); public abstract void setFont(Font font); public abstract void setPaintMode(); public abstract void setXORMode(Color c1); public String toString(); public abstract void translate(int x, int y); } An Event Application: An Event object has the following: public Object arg; // optional additional argument public int clickCount; // number of times in a row that mouse was pressed public Event evt; // the next event (for a linked list) public int id; // the event type (see below) public int key; // the key that was pressed public int modifiers; // Modifier state (like shift, control and alt) public Object target; //object on which the event occurred (like a window) public long when; // time when event occurred
Recommended publications
  • Cross-Platform System of Medical Documents Protection Through Digital Signatures
    CROSS-PLATFORM SYSTEM OF MEDICAL DOCUMENTS PROTECTION THROUGH DIGITAL SIGNATURES Fernando Guilherme Ferreira Sousa Project/Dissertation developed under supervising of José Magalhães Cruz (PhD) in Glintt - Healthcare Solutions, S.A. 1. Motivation documents, which are then sent to the server and, consequently, validated and stored in the database. Due to the extreme information sensibility in the Subsequent to this process, each time a document is health area, it is really necessary to be absolutely sure opened to be viewed, for example, a check is made of about who performs certain medical transactions. It a possible change to the same document, in order to must have permission and authority to do so, i.e. be ensure that recurrently its integrity. Through really the right person to do this transaction. In areas cryptography-based security methods of public keys, involving health treatments, marking of exams or it is verified if someone tampered the document or even surgeries and new prescriptions, there must be made it invalid in some way. an extremely effective control to verify effectively that all transactions must be properly carried out, Each platform that the doctor use should read his without any type of deception or illegality. digital certificate, which is contained in a Smart Card and is installed on the machine, once inserted in a One of the biggest motivations is that the patient, in suitable card reader. Then, the digital signature is the future, might be aware that there is a control in performed with the certificate’s associated private the preparation of their medical documents. All key, which certificates the medical document.
    [Show full text]
  • Applets, Servlets and JSP
    Java Programming : applets, servlets and JSP. SR03 Dritan Nace A summary of Java Java is a language developed by Sun, which is designed to be object oriented and Simple, robust and secure, independent of hardware architectures and Multitasking. Object oriented and simple : Simpler than C++, transparent memory managment… Robust et secure : Data typing is extremely strict. For applets, it is in principle impossible to access the resources of the host machine. Independant of hardware architectures : The compiler generates a universal code : the « byte-code ». An interpreter which is specific to the host machine, « virtual machine », executes the programs. Multitasking : Java seemingly allows execution of several processes. In reality, a time slot is given to each process on the processor (Multithreaded). J2SE versus J2EE J2SE (standard edition) contains the basic usable components from both the client and server side, – GUI, AWT/Swing for applications (client) or applets. Currently J2SE v1.6 (ou V6) J2EE (enterprise edition), is in a certain sense an extension of SE, designed for server side programming – Servlets, JSP, EJB, etc. • Currently J2EE v1.4 Java and object oriented programming • Classes, and objects – The objects include data and processing for the data. Communication is done via messages (methods). – A class corresponds to an abstract model for object construction. A class is made up of: • attributes (static part) • Methods (dynamic part), which define the behaviour. – Inheritance : the « is a » relationship : a car is a vehicule, – Polymorphism : the same message can be recognised by several objects and entail different behaviour. Portability: JVM The compiler compiles the java source in byte code : javac car.java => car.class Then, java is the name of the program which will interpret the generated byte code.
    [Show full text]
  • Abstract Window Toolkit Overview
    In this chapter: • Components • Peers 1 • Layouts • Containers • And the Rest • Summary Abstract Window Toolkit Overview For years, programmers have had to go through the hassles of porting software from BSD-based UNIX to System V Release 4–based UNIX, from OpenWindows to Motif, from PC to UNIX to Macintosh (or some combination thereof), and between various other alternatives, too numerous to mention. Getting an applica- tion to work was only part of the problem; you also had to port it to all the plat- forms you supported, which often took more time than the development effort itself. In the UNIX world, standards like POSIX and X made it easier to move appli- cations between different UNIX platforms. But they only solved part of the prob- lem and didn’t provide any help with the PC world. Portability became even more important as the Internet grew. The goal was clear: wouldn’t it be great if you could just move applications between different operating environments without worr yingabout the software breaking because of a different operating system, win- dowing environment, or internal data representation? In the spring of 1995, Sun Microsystems announced Java, which claimed to solve this dilemma. What started out as a dancing penguin (or Star Trek communicator) named Duke on remote controls for interactive television has become a new paradigm for programming on the Internet. With Java, you can create a program on one platform and deliver the compilation output (byte-codes/class files) to ever yother supported environment without recompiling or worrying about the local windowing environment, word size, or byte order.
    [Show full text]
  • Apache Harmony Project Tim Ellison Geir Magnusson Jr
    The Apache Harmony Project Tim Ellison Geir Magnusson Jr. Apache Harmony Project http://harmony.apache.org TS-7820 2007 JavaOneSM Conference | Session TS-7820 | Goal of This Talk In the next 45 minutes you will... Learn about the motivations, current status, and future plans of the Apache Harmony project 2007 JavaOneSM Conference | Session TS-7820 | 2 Agenda Project History Development Model Modularity VM Interface How Are We Doing? Relevance in the Age of OpenJDK Summary 2007 JavaOneSM Conference | Session TS-7820 | 3 Agenda Project History Development Model Modularity VM Interface How Are We Doing? Relevance in the Age of OpenJDK Summary 2007 JavaOneSM Conference | Session TS-7820 | 4 Apache Harmony In the Beginning May 2005—founded in the Apache Incubator Primary Goals 1. Compatible, independent implementation of Java™ Platform, Standard Edition (Java SE platform) under the Apache License 2. Community-developed, modular architecture allowing sharing and independent innovation 3. Protect IP rights of ecosystem 2007 JavaOneSM Conference | Session TS-7820 | 5 Apache Harmony Early history: 2005 Broad community discussion • Technical issues • Legal and IP issues • Project governance issues Goal: Consolidation and Consensus 2007 JavaOneSM Conference | Session TS-7820 | 6 Early History Early history: 2005/2006 Initial Code Contributions • Three Virtual machines ● JCHEVM, BootVM, DRLVM • Class Libraries ● Core classes, VM interface, test cases ● Security, beans, regex, Swing, AWT ● RMI and math 2007 JavaOneSM Conference | Session TS-7820 |
    [Show full text]
  • Migrating from Java Applets to Plugin-Free Java Technologies
    Migrating from Java Applets to plugin-free Java technologies An Oracle White Paper January, 2016 Migrating from Java Applets to plugin-free Java technologies Migrating from Java Applets to plugin-free Java technologies Disclaimer The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Migrating from Java Applets to plugin-free Java technologies Executive Overview ........................................................................... 4 Browser Plugin Perspectives ............................................................. 4 Java Web Start .................................................................................. 5 Alternatives ....................................................................................... 6 Native Windows/OS X/Linux Installers ........................................... 6 Inverted Browser Control ............................................................... 7 Detecting Applets .............................................................................. 7 Migrating from Java Applets to plugin-free Java technologies Executive Overview With modern browser vendors working to restrict or reduce the support of plugins like
    [Show full text]
  • Installing Open Java Development Kit – Ojdkbuild for Windows
    Installing Open Java Development Kit – ojdkbuild for Windows © IZUM, 2019 IZUM, COBISS, COMARC, COBIB, COLIB, CONOR, SICRIS, E-CRIS are registered trademarks owned by IZUM. CONTENTS 1 Introduction ......................................................................................................... 1 2 OpenJDK distribution .......................................................................................... 1 3 Removing Oracle Java ......................................................................................... 2 4 Installing OJDK – 32bit or 64bit, IcedTea Java .................................................. 3 5 Installing the COBISS3 interface ........................................................................ 7 6 Launching the COBISS3 interface .................................................................... 11 7 COBISS3 interface as a trusted source in IcedTea ojdkbuild ........................... 11 © IZUM, 16. 7. 2019, VOS-NA-EN-380, V1.0 i VOS Installing Open Java Development Kit – ojdkbuild for Windows 1 Introduction At the end of 2018 Oracle announced a new business policy for Java SE which entered into force in April 2019. That is why when you install Java a notification and warning window appears. All versions of Java from 8 u201 onwards not intended for personal use are payable. For this reason, we suggest you do not update Java 8 to a newer version for work purposes. If you want a newer version of Java 8, install OpenJDK 8 and IcedTea. Also, do not install Java 8 on new computers (clients), but install OpenJDK 8 with IcedTea support. 2 OpenJDK distribution OpenJDK 1.8. build for Windows and Linux is available at the link https://github.com/ojdkbuild/ojdkbuild. There you will find versions for the installation. The newest version is always at the top, example from 7 May 2019: © IZUM, 16. 7. 2019, VOS-NA-EN-380, V1.0 1/11 Installing Open Java Development Kit – ojdkbuild for Windows VOS 3 Removing Oracle Java First remove the Oracle Java 1.8 software in Control Panel, Programs and Features.
    [Show full text]
  • Home Java Plugin Detector Java (Using <Applet> And/Or <Object> Tag
    22/05/12 Java plugin detection with PluginDetect Home Java Plugin Detector Java (using <applet> and/or <object> tag) installed & enabled: true Highest Installed Java Version: 1,6,0,31 Java 1,6,0,10 or higher (using <applet> and/or <object> tag) is installed & enabled. Java detection: completed ON THE FLY (OTF) Deployment Toolkit browser plugin installed & enabled: false Next-Generation Java Plugin2 installed & enabled: true Java vendor: Sun Microsystems Inc. Java plugin name: Java(TM) Platform SE 6 U31 Java plugin description: Next Generation Java Plug-in 1.6.0_31 for Mozilla browsers navigator.javaEnabled(): true [This detector is capable of OTF & NOTF Java detection. Detection occurs before window.onload event has fired.] [window.onload event has fired successfully.] [ The plugin detector(s) in this web page use the following: PluginDetect_Java.js, detectJava_OTF_NOTF.js, getJavaInfo.jar ] Download PluginDetect and the jarfile here... In order to do Java detection, you will need 2 things: 1) download the getJavaInfo.jar applet along with a few Java detection examples. The jarfile (Java ARchive file) is used by PluginDetect in order to accomplish Java detection. 2) download the PluginDetect script itself. The PluginDetect script generator will allow you to customize the PluginDetect script to include whatever features you desire. That being said, I would still recommend that you read thru most of this page before creating your own Java detection code. A brief introduction to Java detection PluginDetect uses a number of different methods when trying to detect Java in your browser. These Java detection methods can be divided into 2 groups: a) the non-applet methods and b) the applet methods.
    [Show full text]
  • (Microsoft Powerpoint
    Entwicklung mit JavaFX Die Java UI-Technologie im JDK 8 Wolfgang Weigend Sen. Leitender Systemberater Java Technologie und Architektur 1 Copyright © 2016 Oracle and/or its affiliates. All rights reserved. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 2 Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Agenda • Aktueller Status von JavaFX • Entwicklungsressourcen beim Engineering und in der Java Community • Linux on ARM Port • JavaFX-Aufbau und Architekturkonzept • Migration von Swing Komponenten • Barrierefreiheit • Vorteile bei der Entwicklung von JavaFX Anwendungen • SceneBuilder GUI Editor • Automatisiertes Testen von JavaFX GUI Komponenten • Open Source Projekt OpenJFX • Kundenbeispiele, Projekte und relevante Partnerlösungen • Zusammenfassung 3 Copyright © 2016 Oracle and/or its affiliates. All rights reserved. Aktueller Status von JavaFX • JavaFX 8 ist fester Bestandteil der Java SE 8 – General Availability for Windows, Linux, Mac OS – Java SE 8 Roadmap until 2025 and expected JDK 9 until 2028 – Java SE Development Kit 8 Update 6 for ARM • Starting with JDK 8u33, JavaFX Embedded is removed from the ARM bundle and is not supported – http://www.oracle.com/technetwork/java/javase/jdk-8u33-arm-relnotes-2406696.html – http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-January/016570.html • Development Tools – NetBeans 8.2 – JavaFX Scene Builder 2.0 und Version 8.2.0 – e(fx)clipse • major release cycle alignment with eclipse roadmap • minor release cycle with JavaFX roadmap 4 Copyright © 2016 Oracle and/or its affiliates.
    [Show full text]
  • (F/K/A LCCP) Open Source Disclosure
    Below are the licenses for open source software used in the LCCP product and platform. You may download certain source code (as required by applicable licenses below) from verizon.com/opensource. 1. Xerces 3.1.1 2. Libtins 3. G3log v1.1 4. Winpcap v4.1.0.902 5. jersey-container-servlet-core 2.23.1 6. jersey-media-moxy 2.23.1 7. jersey-container-servlet 2.7 8. jersey-media-multipart 2.23.2 9. jersey-media-json-jackson 2.23.2 10. derby 10.12.1.1 11. Log4j 1.2.17 12. quartz 2.2.1 13. jetty-server/jetty-servlet/jetty-webapp 9.2.3.v20140905 14. commons-dbcp 1.4 15. json 20160810 16. gson 2.7 17. mimepull 1.9.3 18. poi 3.15 19. poi-ooxml 3.15 20. ibatis-sqlmap 2.3.0 21. commons-net 3.4 22. commons-lang 3 23. Angular JS/Angular Cookies/Angular Routes/Angular Sanitize 1.5.7 24. Angular ToolTips 1.1.7 25. Google Material Design 26. jQuery v3.0 27. ngDraggable 28. Simple Pagination 29. Animation 3.5.1 30. Freemarker library 2.3.25 31. jetty-runner 9 32. jersey-client 1.8 33. jersey-core 1.8 34. jackson-core-asl-1.7.1 35. jackson-mapper-asl-1.7.1 36. device-api 0.3.2 37. ddmlib 24.5.0 38. ADB 39. AdbWinAPI.dll 40. NVD 3 1.8.1 41. JSCH – 0.1.55 42. Libssh2 – 0.74 43. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1 44.
    [Show full text]
  • Introduction to Java Applets
    1 2020 Introduction to Java Applets 2005 Pearson Education, Inc. All rights reserved. 2 Observe due measure, for right timing is in all things the most important factor. — Georg Wilhelm Friedrich Hegel Painting is only a bridge linking the painter’s mind with that of the viewer. — Eugene Delacroix The direction in which education starts a man will determine his future in life. — Plato 2005 Pearson Education Inc. All rights reserved. 3 OBJECTIVES In this chapter you will learn: To differentiate between applets and applications. To observe some of Java's exciting capabilities through the JDK's demonstration applets. To write simple applets. To write a simple HyperText Markup Language (HTML) document to load an applet into an applet container and execute the applet. Five methods that are called automatically by an applet container during an applet's life cycle. 2005 Pearson Education, Inc. All rights reserved. 4 20.1 Introduction 20.2 Sample Applets Provided with the JDK 20.3 Simple Java Applet: Drawing a String 20.3.1 Executing an Applet in the appletviewer 20.3.2 Executing an Applet in a Web Browser 20.4 Applet Life-Cycle Methods 20.5 Initializing an Instance Variable with Method init 20.6 Sandbox Security Model 20.7 Internet and Web Resources 20.8 Wrap-Up 2005 Pearson Education, Inc. All rights reserved. 5 20.1 Introduction • Applets – Java programs that can be embedded in HyperText Markup Language (HTML) documents – The browser that executes an applet is generically known as the applet container 2005 Pearson Education, Inc. All rights reserved.
    [Show full text]
  • Applets Programming Introduction Building Applet Code
    Introduction Applets are small Java programs that are embedded in Web pages. Applets Programming They can be transported over the Internet from one computer (web server) Enabling Application Delivery Via to another (client computers). the Web They transform web into rich media and support the delivery of applications via the Internet. 1 2 Applet: Making Web Interactive and How Applets Differ from Applications Application Delivery Media ¡ 1 2 3 4 5 Although both the Applets and stand-alone applications are Java programs, there are certain restrictions are APPLET hello.class Create Accessing The browser Development AT SUN’S Applet from creates imposed on Applets due to security concerns: “hello.java” WEB tag in Your Organisation a new ¢ Applets don’t use the main() method, but when they are load, AT SERVER HTML window and automatically call certain methods (init, start, paint, stop, SUN.COM document a new thread destroy). and ¢ They are embedded inside a web page and executed in then runs the browsers. code ¢ They cannot read from or write to the files on local computer. Hello Java ¢ They cannot communicate with other servers on the network. <app= “Hello”> The Internet ¢ They cannot run any programs from the local computer. Hello ¢ They are restricted from using libraries from other languages. ¡ The above restrictions ensures that an Applet cannot do any damage to the local system. 3 4 Building Applet Code: An Example Embedding Applet in Web Page //HelloWorldApplet.java < HTML> import java.applet.Applet; < HEAD> import java.awt.* ; < TITLE> Hello World Applet < /TITLE> public class HelloWorldApplet extends Applet { < /HEAD> public void paint(Graphics g) { g.drawString ("Hello World of Java!",25, 25); < body> < h1> Hi, This is My First Java Applet on the Web!< /h1> } < APPLET CODE= "HelloWorldApplet.class" width= 500 height= 400> } < /APPLET> < /body> < /HTML> 5 6 Accessing Web page (runs Applet) Applet Life Cycle £ Every applet inherits a set of default behaviours from the Applet class.
    [Show full text]
  • Security Target Lite Rev
    NXP JCOP on SN100.C25 Secure Element Security Target Lite Rev. 3.1 – 2020-08-25 Evaluation documentation Release Company Public NSCIB-CC-195714_3 Document Information Info Content Keywords ASE, JCOP, Common Criteria, EAL5 augmented Abstract This document contains information to fulfill the requirements of the Common Criteria component ASE (Security Target) for the Evaluation of the NXP JCOP products deployed on NXP SN100 Secure Element, developed and provided by NXP Semiconductors, Business Unit Security & Connectivity, according to the Common Criteria for Information Technology Security Evaluation Version 3.1 at EAL5 augmented. NXP Semiconductors JCOP on SN100.C25 Security Target Lite Company Public Rev Date Description 2.0 2019-10-10 Product Maintenance for JCOP 5.0 on SN100 3.0 2020-08-24 Re-certification for JCOP 6.1 on SN100 3.1 2020-08-25 Corrected a typo in the references Release ©NXP B.V. 2019. All rights reserved. Evaluation documentation Rev. 3.1 – 2020-08-25 1 of 186 NXP Semiconductors JCOP on SN100.C25 Security Target Lite Company Public 1 ST Introduction (ASE_INT) The TOE consists of a software stack (JCOP), which is stored and executed on a certified embedded Secure Element (eSE), including an associated Crypto Library and Security Software. The Secure Element (eSE) is embedded in a micro-controller which also includes an Integrated NFC controller and a System Mailbox. 1.1 ST Reference and TOE Reference Title NXP JCOP on SN100.C25 Secure Element Security Target Lite ST Version Revision 3.1 Date Product 2020-08-25 Type TOE Java Card Name NXP JCOP on SN100.C25 Secure Element Certification ID NSCIB-CC-195714_3 CC version Common Criteria for Information Technology Security Evaluation Version 3.1, Revision 5, April 2017 (Part 1 [8], Part 2 [9] and Part 3 [10]) Tab.
    [Show full text]