swing

Logo Applet in Java

Submitted by donbermoy on
This is a sample logo applet programmed in Java programming language. This project will teach you to create applets with the use of graphical methods such as fillRoundRect, drawString, fillPolygon, and many more. This will enhance your knowledge in Java making applets that can run on browsers and has an html tags. For more inquiries and need programmer for your thesis systems in any kind of

Caret Event and Listener in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that will have an example of Caret Event and Listener in Java. A CaretEvent lets the user notify interested parties that the text caret has changed in the event with its source. Note: A caret is the cursor indicating the insertion point So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of caretListener.java. 2.

Change User Interface(UI) in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that can choose and change the User Interface(UI) that is installed already in java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of UILookAndFeel.java. 2. Import the following package library: import java.awt.event.*; //used to access the ActionEvent and ActionListener class import

Focus when Mouse Hover in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that when hovering a mouse it will focus on the button using java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of focusSample.java. 2. Import the following package library: import java.awt.*; //used to access a Component and GridLayout class import java.awt.event.*; //used to access

KeyStroke/KeyPress in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program in java that has a KeyPress or KeyStroke. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of keyStroke.java. 2. Import the following package library: import java.awt.event.*; // used to access the ActionEvent clas import javax.swing.*; //used to access the AbstractAction,Action,ActionMap

Undo Text using Ctrl Z in Java

Submitted by donbermoy on
This tutorial will teach you how to create a program that can undo a text using a shortcut key of ctrl+z in java. So, now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of undoCtrlZ.java. 2. Import the following package library: import java.awt.event.*; //used to access ActionEvent class import javax.swing.*; //used to access AbstractAction,JFrame

How to have a Center Screen Window in Java

Submitted by donbermoy on
Some of the programs in java is set to its user location using the setLocation method of the JFrame or JWindow because they find it hard to center their window screen. So here in this tutorial, we will create a program that has a center screen window in Java. Now let's start this tutorial! 1. Open JCreator or NetBeans and make a java program with a file name of centerScreen.java. 2. Import the