Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

    Help, I am a new comer here.
    My Teacher wants to output this:

    1.JPG

    I have my codes but, it was totally different. Can somebody help debug my codes?
    Here is the code:
     
    package clickers;
     
    /**
     *
     * @author User
     */
     
    import java.awt.*;
    import javax.swing.*;
    import java.util.ArrayList.*;
    import java.util.Arrays.*;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
     
    public class Clickers extends JPanel implements ActionListener {
    	TextArea text1;
    	JRadioButton button1,button2;
            JComboBox d;
            JCheckBox e,f,g,h,i,j;
    	public Clickers(){
                CheckboxGroup a = new CheckboxGroup();
        e=new JCheckBox("Hospital");
        f=new JCheckBox("University");
        g=new JCheckBox("Pool");
        h=new JCheckBox("Farm");
        i=new JCheckBox("Castle");
        j=new JCheckBox("Sewer");
     
     
        add(e);
        add(f);
        add(g);
        add(h);
        add(i);
        add(j);
        e.addActionListener(this);
        f.addActionListener(this);
        g.addActionListener(this);
        h.addActionListener(this);
        i.addActionListener(this);
        j.addActionListener(this);
     
     
                    String[] v={"Car","Bicycle","DumpTruck","BattleTank"};
                    d = new JComboBox(v);
                    add(d);
                    text1 = new TextArea();
     
    		add(text1);
    		button1 = new JRadioButton("Boy");
    		add(button1);
                    button1.addActionListener(this);
    		button2 = new JRadioButton("Girl");
    		add(button2);
    		button2.addActionListener(this);
                    ButtonGroup bg = new ButtonGroup();
                    bg.add(button1);
                    bg.add(button2);
     
     
    	}
     
        @Override
    public void actionPerformed(ActionEvent event){
    	if(event.getSource()==button1 || (event.getSource()==e)){
    	text1.setText("When I was a boy, I always dreamed of having my own Hospital");
            }
            if(event.getSource()==button1 || (event.getSource()==f)){
    	text1.setText("When I was a boy, I always dreamed of having my own University");
            }
            if(event.getSource()==button1 || (event.getSource()==g)){
    	text1.setText("When I was a boy, I always dreamed of having my own Pool");
            }
            if(event.getSource()==button1 || (event.getSource()==h)){
    	text1.setText("When I was a boy, I always dreamed of having my own Farm");
            }
            if(event.getSource()==button1 || (event.getSource()==i)){
    	text1.setText("When I was a boy, I always dreamed of having my own Castle");
            }
            if(event.getSource()==button1 && (event.getSource()==j)){
    	text1.setText("When I was a boy, I always dreamed of having my own Sewer");
            }
             if(event.getSource()==button1){
    	text1.setText("When I was a boy, I always dreamed of having my own");
            }
     
     
    	if(event.getSource()==button2 || (event.getSource()==e)){
    	text1.setText("When I was a girl, I always dreamed of having my own Hospital");
     
    	}
            if(event.getSource()==button2 || (event.getSource()==f)){
    	text1.setText("When I was a girl, I always dreamed of having my own University");
            }
            if(event.getSource()==button2 || (event.getSource()==g)){
    	text1.setText("When I was a girl, I always dreamed of having my own Pool");
            }
            if(event.getSource()==button2 || (event.getSource()==h)){
    	text1.setText("When I was a girl, I always dreamed of having my own Farm");
            }
            if(event.getSource()==button2 || (event.getSource()==i)){
    	text1.setText("When I was a girl, I always dreamed of having my own Castle");
            }
            if(event.getSource()==button2 || (event.getSource()==j)){
    	text1.setText("When I was a girl, I always dreamed of having my own Sewer");
            }
            if(event.getSource()==button2){
    	text1.setText("When I was a girl, I always dreamed of having my own");
            }
    	}
     
     
     
            public static void main(String[] args){
     
     
        JFrame jf = new JFrame("Defend for our Final!");
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        jf.setSize(500, 400);
        jf.getContentPane().add(new Clickers());
        jf.setVisible(true);
     
    }
     
        }

    The problems are: in the ComboBox, I don't know how to output the selected item in the ComboBox inside the TextField/TextArea and when I added the Button 2 in the program which is the girl, when I run it, it was bug, because if i will select the boy, the output in the TextField/TextArea is always about the girl. I don't know where I will edit and I don't know what I'm gonna use, it's either TextField or TextArea ,and also to Layout the items in the Frame I used the for Layout which is, Border,Grid,Flow and CardLayout but sometimes it has no effect. So I decided the post my problems.
    If I choose the boy, it will output some words about the boy, and if I will select any in CheckBox it will add in the boy information and if I select in the ComboBox, it will add to the boy information also and so on. And if I check another in the CheckBox, the first item that I checked will be unchecked. It is ok if it is not in a proper format as long as the output is correct.
    My JDK is 6 and I am using NetBeans IDE 7.0
    Your help will highly appreciated, I need this to my final exam 1 week from now.

    P.S. Sorry for my English grammars, this is not my mother tongue.
    Last edited by Kinshen09; September 22nd, 2012 at 11:27 PM. Reason: Adding the problems encountered


  2. #2
    Member
    Join Date
    Sep 2012
    Posts
    30
    My Mood
    Cool
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

    Hi Kinshen09

    You already using netbeans, but why the interface not the same like the picture? Don't u just drag and drop with that

  3. #3
    Junior Member
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

    Thx for the reply.

    Here's the latest: I already got what the picture look a like and how it arranged. Now my only problem is, I don't know how to add a text in the TextArea, for example, i will choose the RadioButton "Boy" then in the TextArea there will be an info about the boy(eg. When I was a little Boy) the same as the other Button which is the "Girl", I did it, but when I select one of the content in the ComboBox, I want to add more info about the Boy if I will select the Car or other vehicle(eg. When I was a little boy I always dreamed of having a Car) instead of adding more info, the content in the TextArea will change, the first info will be deleted and replaced about the selected Item in the ComboBox. I did my best but, I don't know how to maintain the first content in the TextArea and add more info if I will select in the ComboBox and CheckBox. I used ItemListener for the ComboBox and CheckBox. ActionListener for the RadioButton, I want to merge the two Listener if it is possible.

    Please I need the Idea, only the Idea in how to add more text in the TextArea without replacing the first content.

  4. #4
    Member
    Join Date
    Sep 2012
    Posts
    30
    My Mood
    Cool
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

    Hi Kinshen09

    You can see my code below


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    /*
    * MyClick.java
    *
    * Created on Sep 28, 2012, 4:39:31 PM
    */

    package test;

    import javax.swing.JComboBox;

    /**
    *
    * @author user
    */
    public class MyClick extends javax.swing.JFrame {

    /** Creates new form MyClick */
    public MyClick() {
    initComponents();
    }

    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

    jScrollPane1 = new javax.swing.JScrollPane();
    jTR_Output = new javax.swing.JTextArea();
    jRB_Boy = new javax.swing.JRadioButton();
    jRB_Girl = new javax.swing.JRadioButton();
    String[] comb = {"Car","Motor"};
    jCB_Vehicle = new javax.swing.JComboBox();
    jCB_Office = new javax.swing.JCheckBox();
    jCB_Hospital = new javax.swing.JCheckBox();
    jCB_University = new javax.swing.JCheckBox();
    jCB_Pool = new javax.swing.JCheckBox();
    jCB_Farm = new javax.swing.JCheckBox();
    jCB_Castle = new javax.swing.JCheckBox();
    jCB_Sewer = new javax.swing.JCheckBox();

    setDefaultCloseOperation(javax.swing.WindowConstan ts.EXIT_ON_CLOSE);

    jTR_Output.setColumns(20);
    jTR_Output.setRows(5);
    jScrollPane1.setViewportView(jTR_Output);

    jRB_Boy.setText("Boy");
    bG = new javax.swing.ButtonGroup();

    bG.add(jRB_Boy);
    bG.add(jRB_Girl);
    jRB_Boy.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jRB_BoyActionPerformed(evt);
    }
    });

    jRB_Girl.setText("Girl");
    jRB_Girl.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jRB_GirlActionPerformed(evt);
    }
    });

    jCB_Vehicle.setModel(new javax.swing.DefaultComboBoxModel(comb));
    jCB_Vehicle.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    jCB_VehicleActionPerformed(evt);
    }
    });

    jCB_Office.setText("Office");
    jCB_Office.addItemListener(new java.awt.event.ItemListener() {
    public void itemStateChanged(java.awt.event.ItemEvent evt) {
    jCB_OfficeItemStateChanged(evt);
    }
    });

    jCB_Hospital.setText("Hospital");

    jCB_University.setText("University");

    jCB_Pool.setText("Pool");

    jCB_Farm.setText("Farm");

    jCB_Castle.setText("Castle");

    jCB_Sewer.setText("Sewer");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILI NG, layout.createSequentialGroup()
    .addContainerGap()
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 483, javax.swing.GroupLayout.PREFERRED_SIZE)
    .addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED, 30, Short.MAX_VALUE)
    .addGroup(layout.createParallelGroup(javax.swing.G roupLayout.Alignment.LEADING, false)
    .addComponent(jCB_Vehicle, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addComponent(jRB_Boy, javax.swing.GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)
    .addComponent(jRB_Girl))
    .addGap(61, 61, 61)
    .addGroup(layout.createParallelGroup(javax.swing.G roupLayout.Alignment.LEADING)
    .addGroup(layout.createParallelGroup(javax.swing.G roupLayout.Alignment.TRAILING, false)
    .addComponent(jCB_Hospital, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addComponent(jCB_University, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addComponent(jCB_Pool, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
    .addComponent(jCB_Farm)
    .addComponent(jCB_Castle)
    .addComponent(jCB_Sewer)
    .addComponent(jCB_Office))
    .addGap(40, 40, 40))
    );
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGroup(layout.createParallelGroup(javax.swing.G roupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addGap(29, 29, 29)
    .addGroup(layout.createParallelGroup(javax.swing.G roupLayout.Alignment.LEADING)
    .addGroup(layout.createSequentialGroup()
    .addComponent(jRB_Boy)
    .addGap(12, 12, 12)
    .addComponent(jRB_Girl)
    .addGap(30, 30, 30)
    .addComponent(jCB_Vehicle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
    .addGroup(layout.createSequentialGroup()
    .addComponent(jCB_Office)
    .addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
    .addComponent(jCB_Hospital)
    .addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
    .addComponent(jCB_University)
    .addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
    .addComponent(jCB_Pool)
    .addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
    .addComponent(jCB_Farm)
    .addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
    .addComponent(jCB_Castle)
    .addPreferredGap(javax.swing.LayoutStyle.Component Placement.RELATED)
    .addComponent(jCB_Sewer))))
    .addGroup(layout.createSequentialGroup()
    .addGap(21, 21, 21)
    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE)))
    .addContainerGap(31, Short.MAX_VALUE))
    );

    pack();
    }// </editor-fold>

    private void jCB_OfficeItemStateChanged(java.awt.event.ItemEven t evt) {
    // TODO add your handling code here:
    }

    private void jRB_BoyActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    if(evt.getSource() == jRB_Boy) {
    jTR_Output.setText("When I was Boy");
    }
    }

    private void jCB_VehicleActionPerformed(java.awt.event.ActionEv ent evt) {
    // TODO add your handling code here:
    JComboBox cb = (JComboBox) evt.getSource();
    String item = (String) cb.getSelectedItem();
    String text = ", I always dreamed of having a "+item;
    jTR_Output.setText(jTR_Output.getText()+text);
    }

    private void jRB_GirlActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    if(evt.getSource() == jRB_Girl) {
    jTR_Output.setText("When I was Girl");
    }
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new MyClick().setVisible(true);
    }
    });
    }

    // Variables declaration - do not modify
    private javax.swing.JCheckBox jCB_Castle;
    private javax.swing.JCheckBox jCB_Farm;
    private javax.swing.JCheckBox jCB_Hospital;
    private javax.swing.JCheckBox jCB_Office;
    private javax.swing.JCheckBox jCB_Pool;
    private javax.swing.JCheckBox jCB_Sewer;
    private javax.swing.JCheckBox jCB_University;
    private javax.swing.JComboBox jCB_Vehicle;
    private javax.swing.JRadioButton jRB_Boy;
    private javax.swing.JRadioButton jRB_Girl;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTR_Output;
    // End of variables declaration
    private javax.swing.ButtonGroup bG;
    }

    You can selected the gender radio button and you should've selected combo box after. If you don't selected combo box, you can't see any thing in the text are.

  5. The Following User Says Thank You to ardisamudra For This Useful Post:

    Kinshen09 (November 17th, 2012)

  6. #5
    Junior Member
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

    Hello ardisamudra. Thank you for the time just to make this program for me. I really really appreciate your efforts. But, I'm not familiar in your methods, anyway I solve my own problem, it's not perfect yet but, it's ok as long as I have my project to be defend tomorrow.
    Here's the code:

     
    package final;
     
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.ArrayList.*;
    import java.util.Arrays.*;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
     
     
    public class Fi extends JFrame implements  ActionListener, ItemListener{
        JTextArea Text,j,k,l,m;
        JRadioButton Boy,Girl;
        JCheckBox a,b,c,d,e,f,g;
        JComboBox h;
     
        String i[]={"Select","Car","Bike","Motorcycle"};
     
        public JPanel createContentPane (){
            JPanel totalGUI = new JPanel();
            totalGUI.setLayout(null);
     
            Text = new JTextArea();
            Text.setLocation(10, 10);
            Text.setSize(370, 250);
            Text.setEditable(false);
            totalGUI.add(Text);
     
            j = new JTextArea();
            j.setLocation(10, 10);
            j.setSize(370, 30);
            j.setFont(new Font("Serif", Font.BOLD, 14));
            totalGUI.add(j);
     
     
            k = new JTextArea();
            k.setLocation(10, 30);
            k.setSize(370, 30);
            k.setFont(new Font("Serif", Font.BOLD, 14));
            totalGUI.add(k);
     
            l = new JTextArea();
            l.setLocation(10, 50);
            l.setSize(370, 30);
            l.setFont(new Font("Serif", Font.BOLD, 14));
            totalGUI.add(l);
     
            m = new JTextArea();
            m.setLocation(160, 10);
            m.setSize(220, 30);
            m.setFont(new Font("Serif", Font.BOLD, 14));
            totalGUI.add(m);
     
            h = new JComboBox(i);
            h.setLocation(400, 90);
            h.setSize(80, 130);
            totalGUI.add(h);
            h.addItemListener(this);
            // Button for Logging in
            Boy = new JRadioButton("Boy");
            Boy.setLocation(420, 20);
            Boy.setSize(50, 20);
            Boy.addActionListener(this);
            totalGUI.add(Boy);
     
            Girl = new JRadioButton("Girl");
            Girl.setLocation(420, 60);
            Girl.setSize(50, 20);
            Girl.addActionListener(this);
            totalGUI.add(Girl);
     
            ButtonGroup bg = new ButtonGroup();
            bg.add(Boy);
            bg.add(Girl);
     
            a=new JCheckBox("Office");
            a.setLocation(490, 10);
            a.setSize(80, 40);
     
            b=new JCheckBox("Hospital");
            b.setLocation(490, 40);
            b.setSize(80, 40);
     
            c=new JCheckBox("University");
            c.setLocation(490, 70);
            c.setSize(100, 40);
     
            d=new JCheckBox("Pool");
            d.setLocation(490, 100);
            d.setSize(80, 40);
     
            e=new JCheckBox("Farm");
            e.setLocation(490, 130);
            e.setSize(80, 40);
     
            f=new JCheckBox("Castle");
            f.setLocation(490, 160);
            f.setSize(80, 40);
     
            g=new JCheckBox("Sewer");
            g.setLocation(490, 190);
            g.setSize(80, 40);
     
            a.addActionListener(this);
            b.addActionListener(this);
            c.addActionListener(this);
            d.addActionListener(this);
            e.addActionListener(this);
            f.addActionListener(this);
            g.addActionListener(this);
            totalGUI.add(a);
            totalGUI.add(b);
            totalGUI.add(c);
            totalGUI.add(d);
            totalGUI.add(e);
            totalGUI.add(f);
            totalGUI.add(g);
            ButtonGroup cg = new ButtonGroup();
            cg.add(a);
            cg.add(b);
            cg.add(c);
            cg.add(d);
            cg.add(e);
            cg.add(f);
            cg.add(g);
     
     
            totalGUI.setOpaque(true);    
            return totalGUI;
        }
     
        public void actionPerformed(ActionEvent action) {
            if(action.getSource()==Boy){
                j.setText("When I was a little Boy.");                      
            }
     
     
            else if(action.getSource()==Girl){
                j.setText("When I was a little Girl.");
     
            }
            if(action.getSource()==a){
                l.setText("Sometimes I'd go and visit my Office.");
            }
            if(action.getSource()==b){
                l.setText("Sometimes I'd go and visit my Hospital.");
            }
            if(action.getSource()==c){
                l.setText("Sometimes I'd go and visit my University where I study.");
            }
            if(action.getSource()==d){
                l.setText("Sometimes I'd go and visit the Pool of my friend.");
            }
            if(action.getSource()==e){
                l.setText("Sometimes I'd go and visit our family Farm.");
            }
            if(action.getSource()==f){
                l.setText("Sometimes I'd go and visit the Castle of the Queen and King.");
            }
           if(action.getSource()==g){
                l.setText("Sometimes I'd go and visit my Sewer.");
            } 
     
        }
     
        public void itemStateChanged(ItemEvent event){
            if (event.getSource()==h) {
            if(h.getSelectedItem().equals("Car")){
                m.setText("I always dreamed of having a Car.");
                k.setText("I'd travel in it anywhere and go and visit my mum.");
     
            }
            if(h.getSelectedItem().equals("Mountain Bike")){
                m.setText("I always dreamed of having a Car.");
                k.setText("I'd travel in it anywhere and go and visit my mum.");
     
            }
            if(h.getSelectedItem().equals("Motorcycle")){
                m.setText("I always dreamed of having a Car.");
                k.setText("I'd travel in it anywhere and go and visit my mum.");
     
            }
            if(h.getSelectedItem().equals("Select")){
                j.setText(null);
                k.setText(null);
                l.setText(null);
                m.setText(null);           
            }
            }
        }  
     
     
        public static void main(String[] args) {
            JFrame.setDefaultLookAndFeelDecorated(true);
            JFrame frame = new JFrame("Defend for Final");
            Final demo = new Final();
            frame.setContentPane(demo.createContentPane());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(600, 300);
            frame.setVisible(true);
        }
    }

    I slightly changed the program, I gathered many ideas in my research and combined it, after working hard in doing this project, I finally arrived in my final code. ^_^ Maybe this is not exactly what the given program is in my teacher, as long as the output is the same, it's ok. So thank you for your hard work ardisamudra. +1

    Note: I'm using Netbeans 7.0
    Last edited by Kinshen09; September 30th, 2012 at 01:41 AM. Reason: .

  7. #6
    Member
    Join Date
    Sep 2012
    Posts
    30
    My Mood
    Cool
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

    Hi..

    Actually, I just drag and drop and then the code will be generated by netbeans. Cause I already tell in netbeans you just drag and drop

    And in netbeans, you only think about what action to write, because view is already handled by netbeans

    But, you're welcome kenshin09

  8. #7
    Junior Member
    Join Date
    Sep 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help! ComboBox, CheckBox, RadioButton and TextArea/TextField

    Actually, I know that but, our teacher won't allow us to do drag and drop. She want us to do the codes. heheeh

    P.S. Sorry for the late reply. I'm kinda busy in my Study =)

Similar Threads

  1. How to use a TreeView with a RadioButton
    By williamdasflores in forum AWT / Java Swing
    Replies: 3
    Last Post: December 1st, 2011, 10:07 AM
  2. [SOLVED] Populating second combobox from a combobox help!
    By ComputerSaysNo in forum AWT / Java Swing
    Replies: 7
    Last Post: October 18th, 2011, 09:01 AM
  3. Storing radiobutton into file
    By aretium in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 31st, 2011, 10:21 AM
  4. ComboBox and TextField
    By fahad in forum AWT / Java Swing
    Replies: 2
    Last Post: May 31st, 2010, 08:47 AM
  5. how to delete record based on checkbox selected checkbox
    By -_- in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: December 15th, 2009, 09:26 PM