Skip to main content

Blog Archive for gfx during September 2005

I remember a great presentation of NetBeans profiler during NetBeans Day before JavaOne 2005 and I know I wanted to try it ever since. I finally did with the release of NetBeans 5.0 beta and I know I'll use it a lot. If you follow my blogs you know I spend a lot of time writing heavy Swing/Java2D effects. That's why I could really use a good graphical profiler to help me spot performance...
As many programmers I don't like using an IDE. Well, at least I used to. I spent many years using an editor of my own and it served my purpose very well. Hey, after all I wrote it according to my needs. Apart from Jext I always used Metapad on Windows, a slightly improved clone of Notepad, and vim on other platforms. Convinced IDE could boost my productivity, I decided to seriously try to use...
Synth can be tricky (JScrollbar) sometimes (JTree). So tricky that I actually fell into a trap today. When styling a combo box, I ran into a rather curious problem. A combo box is made of a popup menu, a list, a label, an arrow button and, in case of editable combo boxes, a text field. Since these components are styled independantly, it can be difficult to give them a specific style when in the...
I just finished (well almost) a Swing demo using real world physics to animate a drag and drop gesture. You can try the demo or read more about its implementation. If you're very curious you can also read the source code. Finally, here are two screenshots from the demo:
Important update: R. J. Lorimer has the solution!. Be damned you stupid manifest files! :) Disclaimer: It's not in my intent to start another flame war about IDE. Also please note that, as a user, I don't care about native look fidelity. Finally, please, please understand that I' talking about the look only, not the feel. Every now and then, when I read articles about why SWT and/or Eclipse are...
When you bring up a Swing file chooser in Tiger with the Synth look and feel you get a perfectly blank window. Styling JFileChooser requires bindings for scrollbars, tables, buttons, combo box, buttons, text fields and labels. Needless to say it's a rather difficult task. Despite your efforts you won't unfortunately be able to fully style it. It appears that Tiger provides no way to specify icons...
Many Swing components can be oriented according to your needs. Scrollbars are among the most common oriented components. Despite some support in Synth for oriented components, it is far from being exhaustive in Tiger. While some left aside components can be easily forgotten, for instance the window of a floatable toolbar being dragged, Synth lacked support for important oriented components, like...
Every Swing look and feel relies on properties to customize the rendering. One of these properties allows you, With BasicLookAndFeel and therefore Metal and Ocean, to change JTree's lines style from solid to dashed: UIManager.put("Tree.lineTypeDashed", Boolean.TRUE); The following screenshot shows the difference between dashed tree lines on the left and regular solid tree lines on the...
Chase Away Those Fierce Nightmares In Tiger and early Mustang builds, Synth falls short providing a versatile, efficient and easy to use way to load a theme. Only one method is offered to load a Synth theme, the mischievous SynthLookAndFeel.load(). Albeit easy to use, this method suffers from critical limitations. When your program invokes it, two parameters must be specified: an input stream...
Painters Aggregation Synth lets you define a painter for each region of a component. A painter can be used, for instance, to draw a button's border or a tabbed pane's tabs. Here is a short example: <style id="buttonStyle">    <state>        <imagePainter method="buttonBackground"  ...