0

Intro

Posted by devon on April 14, 2011 in Java |

It doesn’t matter how careful you are. It doesn’t matter if you bag each piece as you remove it. You can take all the pictures you want. You’ll still wind up with one or two screws left over.

Read more…

0

Log4J + Glass Fish

Posted by Devon C. Miller on December 1, 2012 in Java |

Some things are just there to aggravate you. I deployed my new webapp, hit the page, and I got an error. No problem, I popped open the Glass Fish admin console and brought up the log. What do you mean no records found?

Read more…

0

Misbehaving CardLayout

Posted by devon on May 25, 2012 in Java |

CardLayout works great as long as the “cards” are all about the same size. However, when a panel using CardLayout contains a very large component and a very small component, there can be some unpleasant behaviors.

When added to a JScrollPane, the the scroll bars work very well when displaying the large JTable. But, a small component (ex: a single button) is also displayed with scroll bars. Even worse, if there is enough difference in size, it is possible to entirely scroll the smaller content off screen.

This class provides a specific variation on a JPanel with a CardLayout that solves this behavior issue.

Read more…

0

Handling wide content in a Combo Box

Posted by devon on April 22, 2012 in Java |

JComboBox works great when you need to offer a choice of “Thing one” or “Thing two”.

But what do you do when you need to offer a choice of:
“My super, fantastic, amazingly awesome, awesomely cool gadget” or
“My super, fantastic, amazingly awesome, awesomely cool widget“?

Read more…

0

80 FPS in Java? Yes!

Posted by devon on July 5, 2011 in Java |

This comes from a recent question on StackOverflow where the poster asked whether it is possible to paint a 1024×768 window at 30fps. The answer is an enthusiastic Yes!.

Read more…

Tags:

Copyright © 2011-2014 Experimental.Jar All rights reserved.
This site is using the Desk-Mess-Mine Child-Theme, v1.0.0, on top of
the Parent-Theme Desk Mess Mirrored, v2.2.4.1, from BuyNowShop.com.