Advance

How to create JNLP(Web Start Launcher) from NetBeans 6

Ok now i’m here to show some good feature of Java . Java has a seperate extension like as to the C/C++. Many C/C++ uses .exe(executables) for executing the program in a bundle form . In the same way previously Java uses JAR file as executable but later from Java 2 SE 1.5 the new extension (*.jnlp) had took place for executing the java programs.

Here we are going to create a .jnlp file via NetBeans 6 Ok first create one simple Project which display some GUI. Or you can download sample NetBeans Project from here

Let’s take step by step process:

Press Ctrl+1 and you will see Project tab at your left Pane(for more.. )

Read More »How to create JNLP(Web Start Launcher) from NetBeans 6

Making Simple JTable

The JTable is almost great component of Java Swing which is used to display records of any data.
Specially JTable are used for displaying records which are retrived from the database like MySQL, ORACLE ,Excel and other…

Simply JTable has it’s default model for displaying the records in format.
In this blog we would just demonstrate a simple JTable where all the data records are being assigned by developers.

Ok, here is a detail codes of Making simple JTable:

Read More »Making Simple JTable

Combining JAR files to one JAR from IDE NetBeans

Actually I am gonna demonstrate the simple way to create the jar file which is a combination of multiple jars’ .
Requirements:

  • Firstly We need the NetBeans
  • JDK 1.6

Here we’ll create a sample Project which is included in NetBeans.

I used NetBeans 6.7.1 and now i am starting my demonstration.

(Also you can create a project where there is presence of jar files)

Let’s make a project File>New Project> …. and as your requirement you can make a project but there

is need of some extra jar files . If you are not familiar with adding jar files to Projects then ,

Please refer this:

Now you are able to attach jar files in Project.

It’s time time to have some trick now, just choose Files Tab in Project Window or just press Ctrl+2 as shown in figure

FILE TAB

Read More »Combining JAR files to one JAR from IDE NetBeans

GUI (Graphical User Interface)

An applet is the software components or a small application which can run the program via JAVA programming Language.

Applets are on either desktop or on the web pages too.
The applets are mostly used for the GUI end user clients. The Applets are in GUI form.

Basically GUI is being used by the help of the JFrame which is located at the javax.swing

JFrame is the first platform for the deployment of the GUI applications. The Container classes are used to add the components at JFrame.

Some essential classes for the developing GUI app are:

  • JFrame
  • JPanel
  • JLabel
  • JButton
  • JTextField
  • and other classes ..

First of all if we are going to develop a small GUI program which can display the only the text;

[source language=’java’]
//import directives
import javax.swing.*;

public class Text1 extends JFrame{

public Text1() {
//FOR LABEL
JLabel label = new JLabel(“Hello JAVA !!!”);

//ADDING CONTAINERS TO COMPONENTS
this.getContentPane().add(label);
this.setSize(200,200);
this.setVisible(true);

}

public static void main (String[] args) {
// invoking constructor
new Text1();
}

}
[/source]

Read More »GUI (Graphical User Interface)