Archive for February, 2012

Customize single cells in JTable

JTables are very useful for develop desktop applications but when it comes to customize properties at cell level it can be a little tricky. The key concept here is that we have to deal with Cell Renderers for each column. TableCellRenderer is an interface that forces to implement the following method: Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, […]

Posted on February 11, 2012 at 12:14 by Samuel · Permalink · Leave a comment
In: Java, Languages · Tagged with: ,

Unsupported major.minor version 51.0

The other day I was trying to compile and run some swing example code using the command line and when I tried to execute I got the following error: Exception in thread "main" java.lang.UnsupportedClassVersionError: Main : Unsupported major.minor version 51.0 I found on the Internet that version 51.0 corresponds to java 1.7 and then I […]

Posted on February 9, 2012 at 09:27 by Samuel · Permalink · Leave a comment
In: Java, Languages · Tagged with: