Java Choice Example In Java Choice Example, The Choice class is used to create a pop-up list of items from which the user may choose. Thus, a Choice control is a form of menu. When inactive, a Choice component takes up only enough space to show the currently selected item. When the user clicks on […]Continue Reading... No Comments.
Java Check box Class A Java check box class object is a control that is used to turn an option check or unchecked. User can change the state of a check box by clicking on it. Check boxes can be used individually or as part of a group. Check boxes are objects of the Checkbox class. Checkbox supports […]Continue Reading... No Comments.
Java Applet Parameter In The Topic Java Applet Parameter, programmer can pass parameters to applet. To do this, use PARAM attribute of the APPLET tab, with setting the parameter’s name and value. To get back a parameter value, use the getParameter() method, defined by Applet. Its general form is shown here: String getParameter(String paramName); Here, paramName is […]Continue Reading... No Comments.
Java Applet Example Java Applet Example, is created using java Applet class functionality. Java Applets are special purpose GUI programs those can be run on several ways like, using appletviewer tool or on third party web browser. 1. To run applet using “appletviewer” program If you want to run Applet program using third-party “appletviewer” program […]Continue Reading... No Comments.
Java AWT Abstract Window Toolkit – Classes The Design of the Java AWT is an excellent example of using classes, inheritances, and interfaces. The AWT contains the following essential classes. The class’s hierarchical relationship is shown below. Component: This is a super class of all AWT user interface classes. Container: This is used to group […]Continue Reading... No Comments.
Java Applet The Java Applets are small Java programs that are primarily used in Internet computing. They can be transported over the Internet from one computer to another and run using the Applet Viewer or any Web Browser that supports Java. An Applet, like any application program, can do many things for us. It can […]Continue Reading... No Comments.
Java Thread Example In Java Thread Example, Creating threads in Java is simple. Threads are implemented in the form of objects that contain a method called run(). The run() method is the heart and soul of any thread. It makes up the entire body of the thread and is the only method in which the […]Continue Reading... No Comments.
Java Thread Life Cycle During the java thread life cycle, there are many states it can enter. They include: Newborn State Runnable State Running State Blocked State Dead State A thread is always in one of these five states. It can move from one state to another via a variety of ways. Shown in below […]Continue Reading... No Comments.
Java Multithreading Java Multithreading is a conceptual programming paradigm where a program (process) is divided into two or more subprograms (processes), which can be implemented at the same time in parallel. For example, one subprogram can display an animation on the screen while another may build the next animation to be displayed. This is something […]Continue Reading... No Comments.