The Poker Copilot Blog

Tracking the development of Poker Copilot, Mac OS X software for poker analysis and statistics.

Thursday, 5 June 2008

Day 5: Battles with Swing Layouts

Are you a Java programmer? Have you used Swing? Then you'll probably feel my pain. I almost always use a GUI builder but for my preferences dialog I needed to do it manually. Working with Swing Layout Managers often feels like a particularly nasty type of voodoo.

It's because I wanted to use the little '+' and '-' buttons normally used in OS X preference panels to add and remove things. Apple calls them "segmented gradient buttons". Unfortunately it is tricky to get them just right. I eventually found the answer here: http://lists.apple.com/archives/java-dev/2008/May/msg00394.html

0 comments:

 

Poker Copilot

Free 30 Day Trial

Only $69

Order risk free with our 30-day money back guarantee.

  • Poker tracking software for Mac OS X
  • Supports PokerStars, Winamax, Merge Network, Ongame Network
  • Analyses your opponents while you play
  • On-table HUD for Mac
  • Easy to use, easy to understand

Watch a demo of the major features of Poker Copilot