Hi all,
FYI im really new in Java.last time my project was in C but suddenly my supervisor changed to Java.i got the code from him (see below).wanna ask u guys how to learn Java and these means?
Lastly, how to create dropdown menu?
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.border.Border;
import java.awt.*;
import java.io.*;
import java.util.*;
public class JScrollPanes extends JApplet
{
//--------------------------------------------------
// variable declarations for pairwise generation
static int t_value=2;
static int no_of_parameter = 0;
String binary_setting;
static int data[];
static ArrayList<String> binary_cmd_list = new ArrayList<String>();
static ArrayList<String> test_suite_list = new ArrayList<String>();
// -----------------------------------------------
private JButton generate_btn = new JButton("Generate Pairwise Data Sets");
private Label label = new Label ("Enter Parameter Values");
private JTextArea t1 = new JTextArea("", 1, 20), t2 = new JTextArea("",
6, 20), t3 = new JTextArea("",13, 30);
private JScrollPane sp3 = new JScrollPane(t3,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
i guess import is like include in c.header file isnt it?
but, i dont know how to get the library for button like in this code import javax.swing.JButton;
Really need help!!!
Thanks for advance