Jeff Sexton

Wednesday, November 28, 2007


"Second-tier PC maker Everex teamed up with a startup called gOS to build the gPC TC2502, a $199 VIA-powered Ubuntu 7.10 Linux system with an Enlightenment E17 interface. Although they assure us that the "g" doesn't stand for Google, the PC's productivity will be almost solely derived from Google apps accessed through Firefox: Mail, Calendar, News, Maps and Documents & Spreadsheets. It will also come with 2.2 and some other freeware Linux faves."

No Microsoft tax, no RIAA music goof-ware, no video card with more RAM than the PC just to run Word... It shows what's possible. I expect we'll see a lot more PCs like this.

Friday, November 16, 2007

Giant Tabs in a JTabbedPane

Here's how to create a Java Swing JTabbedPane with over-sized tabs. The most basic method is to extend JTabbedPane with a new class that replaces the tabbed pane UI. The replacement UI in turn can override the methods that control the tabs size. The font used in the tabs can also be replaced in the new tabbed pane constructor.

Here's a tabbed pane class with over-sized tabs (50 tall and 140 wide).

public class GiantTabbedPane extends JTabbedPane {
public GiantTabbedPane() {
setFont(new java.awt.Font("Arial Unicode MS", 1, 18));

static class GiantTabbedPaneUI extends BasicTabbedPaneUI {
public static ComponentUI createUI(JComponent c) {
return new GiantTabbedPaneUI();

protected int calculateTabWidth(int tabPlacement,
int tabIndex,
FontMetrics metrics) {
return 140;

protected int calculateTabHeight(int tabPlacement,
int tabIndex,
int fontHeight) {
return 50;

3D modeling Advertising Air Canada Airline Alfa Romeo Spider Touring Gran Sport Analog signal Android Anomalies and Alternative Science Apache Apollo Astoria Asus Augmented reality Aurora Famous Fighters auto-awesome Automobile Autos Backups Barack Obama Batman Battery Beards Beer Bell System Berkshire Hathaway Bigfoot Bird Food Bird Toys Birds Birthdays Blogger Books Build Management Business and Economy Business Process Execution Language Byte-order mark Canadian Carrot Cats Christmas Civil Defense CNN Cockatiels Collections Crows Dear Jane Debian Diabetes Digital Living Network Alliance Digital television Disney Doll House Dow Jones Industrial Average Duesenburg SJ Roadster Durham University E-mail address ebauche Economics EJB Energy development Enterprise JavaBean ESP Facebook Fedora Filesharing Finance Ford Fossil fuel Garfield James Abram Garfield Minus Garfield Glassfish Global warming Golden Arches Goofy Google Google Buzz Google Docs Google Lively Google Photos Google Reader Google Wave Google+ Greenhouse gas Half-Life 2 Helbros High-definition television History Hybrid electric vehicle IBM Inner city Instagram Insulin Investing Irony J.C. Penny Jane Austen Java Java Architecture for XML Binding JDBC Jeff's! Jim Davis joe the plumber John McCain Karma Kay Thompson Kermit the Frog Kids and Teens LA Auto Show Larry King Laser Logging Lowry Sexton Mark Cuban Market trends McDonald Meier and Frank Microsoft Microsoft Windows Models Monkey monsters Moon MOUNT HOOD Music Music industry Muxtape MySQL NetBeans Netflix Nintendo Nissan Cube Norm Coleman Nuclear fallout Nuclear warfare Office Depot Open ESB Oracle Corporation Pacific Ocean Packard Boattail Pearl District Pearl District Portland Oregon Philip K Dick photography PlayStation 3 Pocher Pokémon HeartGold and SoulSilver Politics Portal Portland Portland Development Commission Presidents Pride and Prejudice Programming Projects Radio Recipes Recording Industry Association of America Renewable energy RIAA Robot Chicken Rock-paper-scissors Sarcasm SATA Science fiction film Serbia Service-oriented architecture Shopping Slide Rule Social Security Social Studies Society6 Spirit of St. Louis SQL Stanford Hospital Star Wars Starbucks Stock market Strip search Sun Microsystems T-Mobile Tablet TechCrunch Technical ThinkGeek Toaster Total Recall Transportation Security Administration Unicode United States United States Department of Homeland Security Universal Plug and Play Unknown Primates USB Vegetable garden Video game Vintage Images Vintage Vintage! Virtual world Volvo C70 Wall Street Warren Buffett watches We Can Remember It for You Wholesale Web service Web Services Description Language Wii Windows 7 Windows Phone 7 Windows Vista Windows XP X-Files X-ray vision XML XML Schema YouTube Yugo Zima