troubleshooting Question

add jcombbox to jtable of array list

Avatar of fattoo
fattooFlag for United States of America asked on
8 Comments1 Solution355 ViewsLast Modified:

I have JTable class that takes the array list of object as content
like this
String data [][] = new String [reportList.size()][5];

            //assign the elements in te array list to be displayed in the Jtable
            for (int pos = 0; pos < reportList.size(); pos++){
                  ReportsExample2 obj = reportList.get(pos);
                  data[pos][0] = obj.getTech();//at position 0
                  data[pos][1] = obj.getClient();//at position 1
                  data[pos][2] = obj.getPro();//at position 2
                  data[pos][3] = obj.getPr();//at position 3
                  data[pos][4] = obj.getSt();//at position 4

and then shows table of 5 columns
how could I add jcombobox to specific column and allow the client to choose one of the values in the jcombobox  and store the new value in the array list

I found many examples on the internet but no one use sth like this

Many thanks
Sr. Software engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros