Pierre Sugar

Ranch Hand
+ Follow
since Dec 08, 2002
Pierre likes ...
Ruby Java Ubuntu
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pierre Sugar

Good point. Just wanted to see if anybody recognises the flaw This probably would help:
12 years ago
You could use a JList as suggest before and use your own list cell renderer for your images. Your renderer could look like this, assuming that your values are ImageIcons.
12 years ago
Happy I could help
12 years ago
A bound property fires a PropertyChangeEvent when the property's value changes and hence informs listeners about changes. A constraint property fires a VetoableChangeEvent and next to informing also allows the listener to veto the change.
12 years ago
There is a good source for some special Swing functions at http://www.javarichclient.com Background image for JList can be found here http://www.javarichclient.com/display-a-jlist-with-a-background-image/
12 years ago
There is a quite good video tutorial http://vimeo.com/27961743 about installing Android plug-ins to Eclipse from Scott Stanchfield, but you can retrieve general information about plug-in installation.
DockerEngine is not marked as transient
12 years ago
TableModelListener is definitely the better solution.
12 years ago
Implement the setValueAt() method in your table model. In setValueAt() fire a property change to inform listeners on changes. In the listener class update your database with new values.

setValueAt() in your table model



Listen on changes in your listener class and update the database


12 years ago
I assume you retrieve data from a database and want to display the data in a JTable. If so forward the data to your table model and invoke fireTableDataChanged(). The old data will be cleared and replaced by the new data.
HTH
Pierre
12 years ago
Use Java2D to do graphics. You have to create your chart model and than draw the bars in a panel with Graphics2D. There is quite good tutorial at the Java Tutorial site. You could also look at SwingX, they have extensions for Swing also charts.
13 years ago
Here is my persistence.xml


So in the above persistence.xml version databaseserver:9002 is the database server accessible within the LAN. If I am traveling (with my notebook PC) and I want to access the database I have to change databaseserver:9002 to something like www.mydomain.com:9002. This I would like to do with starting up a preferences dialog where I can change the database server address without re-compiling and re-JARing.

Any idea?