• Java and Swing

    A great enhancement to the CellStyle feature in JIDE Grids

    by  • January 17, 2012 • Java and Swing, JIDE • 1 Comment

    A plain JTable is boring. People usually want to add some styles such as different colors, different fonts, nice little decorations to the JTable cells to make the table more interesting. Before using JIDE Grids, the only way to add styles is to use customized TableCellRenderers. For each unique style, create a TableCellRenderer and associate [...]

    Read more →

    Alphanum Sorting

    by  • December 7, 2011 • Java and Swing, JIDE

    While working on an issue related to the file encoding, I am trying to adjust the file encoding settings in IntelliJ IDEA. I noticed something not quite right about the sort order of the encodings. Naturally the ISO-8859-2 to ISO-8859-10 should appear before ISO-8859-13 and -15. UTF-8 should also appear before UTF-16 and UTF-32. Clearly IntelliJ [...]

    Read more →

    Having Fun with StyledLabel

    by  • September 10, 2011 • Java and Swing, JIDE

    I’ll start with a question. Using Java Swing, how do you implement something like these?   All three examples are very common in a real application. The first one is to show a ™ trademark sign next to Java. It is the same thing for a ® (registered trademark) sign. The second one is a [...]

    Read more →

    What’s wrong with Apple

    by  • June 16, 2009 • Java and Swing, JIDE, Mac

    Apple just released a new JDK6 on Mac. It is suppose to be a good news but it turned out to be a nightmare. They changed the package structure of Aqua L&F. Many classes that were under apple.laf package are now under com.apple.laf. This breaks pretty much everything we tried to make JIDE looking decent [...]

    Read more →

    Arrow key support in ButtonPanel

    by  • June 22, 2008 • Java and Swing, JIDE

    There is one missing feature in ButtonPanel. That’s the arrow key support. On Windows (probably on Mac as well), people get used to use left or right keys to navigate among buttons on a horizontal button panel or up/down keys for vertical button panel. However Swing doesn’t have that. For example, in the JOptionPane, arrow keys don’t change [...]

    Read more →