Hello, all! I've got a pretty specific goal and I was hoping to get some advice on the best way to achieve it.
The long and the short of the question is this: How do I detect whether a given...
Type: Posts; User: Sedu
Hello, all! I've got a pretty specific goal and I was hoping to get some advice on the best way to achieve it.
The long and the short of the question is this: How do I detect whether a given...
Thanks for the link, that led me to exactly the stuff I needed!
I've got a pretty specific question here, and I'm hoping that I'm just missing something obvious. I've got a panel which an arbitrary number of text fields may be added to at run time (there's no way...
UGH, I'm dumb. This was right in front of me the entire time, and I made a post anyhow. X|
You called it in one, Cornix, thanks!
Below is a picture of a menu where users can browse through a hierarchical structure of folders and objects in a node/leaf pattern. Is there any built in way to do this with AWT/Swing? The picture is...
I found a solution to this. It's a little bit hackey, but it works. Essentially, I just pull the value from the cell editor rather than the model, which is... not ideal, but works. The fix is below,...
So I have tried all of the below to get the data model to refresh, but the only thing I can find that will make the model's data (or the data that the table itself returns) match what is on the...
Actually, that was likely me as well. I had a similar problem with updating the scroll bar. The solution to that was to use invokeLater (the reason I mentioned it initially). I'm looking around a bit...
The problem with
system.out.println(projSales + "\t\t" + accel); is that Java is case sensitive, and you must capitalize "System."
The Int/Double problem that you have is not something that...
I am having trouble with a jTable that I am using. I have set the listeners of the cells to save the information of the entire table every time they are modified, but run into the problem that the...
Cornix, thank you for the suggestion! Invokelater was exactly what I needed here. Below is my corrected code, now working correctly. This is a really good trick to remember...
private void...
Good thought, but I've already attempted that. There's even a getBlockIncrement() function on the scrollbar (example of that non-working code below), which represents the int value of one entry's...
Heyo, guys! I've got a problem that really has me scratching my head here. I have a JTable inside a JScrollPane. My code (below) adds an entry to the table, then tells the scroll pane to scroll to...