Tutorials

Styling Java Buttons & Labels with HTML tags

Submitted by mehfuza on

Introduction:

Java buttons and labels support using different HTML (Hyper Text Markup Language) tags. HTML is Web page development language where as Java is Programming language but still Java executes the HTML tags and displays the output according to the HTML tags. These tags can be used to insert new line on the button or labels or styling the text on the buttons and labels. Text Area does not support executing HTML tags it displays the tags as it is. Buttons and label support following HTML tags.

Tags Supported by Labels and Buttons

1.

Cursor and Combo Box Demo in Java

Submitted by mehfuza on

Introduction:

In this tutorial we will see changing cursor when it is selected from Combo Box in Java. You will learn about cursor as well as JComboBox. The position of the mouse is represented on the computer's screen by a small image called a cursor. It has a hot spot, which is a Point that specifies the pixel within the image that corresponds to the exact point on the screen where the mouse is pointing. The Cursor class has many predefined cursor which can be used with Cursor.getPredefinedCursor(code) method. Where code represent type of cursor.

Visual Basic Rock, Paper, Scissors Game

Submitted by Yorkiebar on
Introduction: Welcome to my tutorial on how to create a simple Rock, Paper, Scissors game in Visual Basic which has no game graphics and is only to see how the game would work. Steps of Creation: Step 1: The first thing we need to do is import System.Random so we can randomly get a choice of Rock, Paper or Scissors for the computer:

Book Finder Using Visual Basic.Net and MS Access 2007

Submitted by joken on
Book Finder Using Visual Basic.Net and MS Access 2007 In this tutorial, I’m going to teach you how to create a “Book Finder” program that commonly used in any library system. The user can search for a book titles based on authors, subject, and Dewey decimal classification Number of a specific book.

Progress Bar control in Visual Basic.net

Submitted by joken on
The Windows progress bar control represents the visual feedback to the users about the current status of any task. And it shows the bar that fills from left to right representing the operation progress. In this tutorial we will focus on how to put the prograess bar control and its functionality using visual basic. And here’s the final output of our project. To start building this program, open visual basic and create a new project and name it according to your will.

Creating Executable Program in Java

Submitted by mehfuza on
Executable software can be created using JAR(Java Archive) utility. Once you create jar file of the program it can run on any machine having JRE(Java Runtime Environment ) installed. JAR file should contain the .class files and resource such images, audio or any other files required. Including only .class files makes the code private. It can also include .java files, the source code of the program. Following are the commands to be run at Command Prompt or Terminal in Linux. Step 1: Compiling the Java Programs First compile all the Java programs of an application.

Simple Editor in Java

Submitted by mehfuza on

Introduction

This simple editor has only one menu with New, Open, Save, Exit option. It requires JMenuBar, JMenu, JMenuItem, ActionListener, File related classes. This tutorial demonstrate creation of menu and reading and writing the files. Once user clicks on open menu then Open dialog box is displayed and File is displayed in the display area. This simple editor can be created easily with following steps. File reading and writing part is similar to previous tutorial.

Implementation

Step 1: Designing the Menu The class is application so it extends JFrame.