About defaults in Nimbus: Nimbus Defaults (originates from: Nimbus UIManager UIDefaults) Misc Textarea background issue Update: 10.7.2010 Skinning a Slider with Nimbus
Read moreSome nice code snippets
Code snippets. When doing tricks with Graphics 2D, it’s good to keep around utility to allow determining what different AlphaComposite operations are actually doing (in order to retain your sanity).
Read moreAdvanced MultiThreading in Swing
Usually when multithreading in Swing is discussed, then authors are regarding trivial issue of using ”SwingWorker” and such constructs for running worker threads from EDT (Event Dispatch Thread”. However, Swing design includes one rather different multithreading thing. Namely it’s possible to start multiple AppContext instances, and execute multiple EDT threads in single JVM. So lets…
Read moreJava examples (example source code) Organized by topic
Some sample code snippets, Java examples (example source code) Organized by topic
Read more10 Mistakes in Icon Design
Things to keep in mind when designing icons… 10 Mistakes in Icon Design
Read moreLobo: Java Web Browser
Sounds interesting, finally possibility to embed *real* web browser capabilities into java application… Lobo: Java Web Browser
Read moreSpeed up Java2D (& Swing) in Linux
Using -Dsun.java2d.opengl=true as startup argument for java when starting application using Java2D heavily (well, basically any Swing application), it improves noticeably performance in Linux environment. Currently I’m experimenting following settings in my /etc/profile.local -file. [code] _JAVA_OPTIONS=’-Xverify:none -Dsun.java2d.opengl=true’ export _JAVA_OPTIONS [/code] (_JAVA_OPTIONS is magic environment variable which is used automatically by java). I tested performance by…
Read morePDF rendering in java
Rather interesting news. If java gets built-in PDF rendering support, it opens gateway for various new tricks. Java PDF Renderer
Read moreCalculating JTextComponent -height
Problem: Let’s assume that we know the available width and we should determine what is the required height for JTextComponent within that limitation. This problem arises immediately, at least in three cases in java: Variable row height table cells Tooltip size Message dialog size In all of these cases, it is necessary sometimes to know…
Read moreEmbedding Swing components in a JEditorPane
This sounds rather interesting, I can see various interesting uses for this. Amy Fowler’s Blog: Embedding Swing components in a JEditorPane
Read more