Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
1 vote
1 answer
93 views

I have a class Person, with an attribute boolean isDead. I want to display a list or Persons in a JTable. Each row in the JTable represents one Person. I want to display the Person's name in a ...
JayC667's user avatar
  • 2,660
2 votes
0 answers
46 views

Have a custom JTable class that implements dynamic tooltips that only appear when the ellipsis is shown for any value. Using that TooltipsTable class for several different TableModels. Question: Is ...
Todd Hill's user avatar
0 votes
0 answers
30 views

I've created a class 'ProductTable' which is extends to JTable. The purpose of the class is to load data from a database and add all the data to the table when it is instantiating. Below is what I ...
Achiya's user avatar
  • 11
0 votes
1 answer
54 views

Here is sample code I found. It works because the entire data structure is initialized in one statement. Object[][] data = { {"Buy", "IBM", new Integer(...
DrSlamm's user avatar
0 votes
0 answers
452 views

A NullPointerException is thrown when trying to serialize a TableModel object while the associated JTable object is visible in a JFrame. I created a minimal, reproducible Example and will also include ...
Nur1's user avatar
  • 480
0 votes
1 answer
45 views

I am trying to validate that when the column step is equal to 2 the row is copied to another JTable. But the jtable_step2 I have not initialized correctly, that's why it returns the error: ...
Jeniffer Lorena Guillen Castro's user avatar
1 vote
0 answers
85 views

I have an Order object which among other things stores a LinkedHashList (Product : amount). I use a LinkedHashList because I specifically want to keep the insertion order. public class Order { ...
PrOF's user avatar
  • 123
1 vote
1 answer
163 views

I have a GUI, which consist of a Qtableview and dataframe scatter plot widget. Plot draws the X, Y value from the table and has colormap with Z value. Here's the point. When I modify Y value in ...
Brian Kim's user avatar
0 votes
1 answer
49 views

I decided it would be easiest to store my data in a custom Row object based on this post Java data structure to store tabular data But Im wondering how I actually go onto then create a JTable with ...
jquigs62's user avatar
0 votes
1 answer
416 views

I want use a class to construct a TableModel. I know how to use method return a TableModel. But I wonder how to use class to construct a TableModel. So far I failed. The dataset did not get all the ...
jian's user avatar
  • 5,023
1 vote
0 answers
223 views

It's not working. Using the select syntax put table to JTable. Then I want update the changes in JTable to the Database. It's a reasonable idea, if there is an better idea to Update GUI changes to ...
jian's user avatar
  • 5,023
0 votes
0 answers
70 views

Ok so I currently have a array list constructed as static List<List<String>> lines = new ArrayList<>(); with values like this {["ID", "Last Name", "...
sev.'s user avatar
  • 11
0 votes
1 answer
212 views

So I'm trying to after searching a name click on the table and then edit it in other table, the problem is that I'm not getting the right ID but instead only getting the ID that is the first. JTable ...
RafaelMacaco's user avatar
0 votes
1 answer
137 views

I am under the impression that after column 4 [index 3] the rest of my jtable does react to formatting or data validation. As you can see in this image the colour just stops after column 4: ...
Michael Shi's user avatar
0 votes
1 answer
355 views

What responsibilities fall with Java Swing's TableModel... Who should present the formatted display to the user? Is there any official guidance? JavaDocs The help for getValueAt states: Returns the ...
Andez's user avatar
  • 5,908

15 30 50 per page
1
2 3 4 5
27