English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In fact need to create a form.
price per item should be on the form and when i input quantity in the form the total price should be displayed on the form. there should be at least 6 items on the form. one column for items . one for unit price , one for "in stock" and input field for quantity , and the total price in the last column.. At the bottom it shall display the final total price for items selected. On clicking next the next form will display the items the customer took , quantity and the total price with the remaining stock.

THIS SHOULD BE IN JAVA GUI programming only.

Plz do help me out as i am trying JAVA programming

2006-10-12 17:15:06 · 2 answers · asked by vikingbho 1 in Computers & Internet Programming & Design

2 answers

sounds like an assignment to me. What your asking us to do is quite extensive, but i will point you in the right direction. Java's main GUI component is known as Swing. You can find many working examples (with code) on how to create forms in Swing off Sun's java site. java.sun.com

Also if you look around the internet, you may be able to find some programs that will design the GUI for you. I know JBuilder from Borland has this feature.

2006-10-12 19:28:47 · answer #1 · answered by Brady 3 · 0 0

first we have to import two package called
import javax.swing.*;
import java.awt.*;
import java.awt.actionListener.*;

public class Gul extends swings implements ActionListener
{
public Gul()
{
declare the variable for the each form separte
JLabel l;
JText t;
l=new Jlabel(lable.right);
t=new JText("quantity input");
//similar in the next five we have to create the form separtely and give the hyper link to the each other and write the main method in the call the action listener method in that give the lable variable eg l.getText() and executed this program .

2006-10-12 21:45:31 · answer #2 · answered by rajni k 1 · 0 0

fedest.com, questions and answers