Here is how to set notepad icon for JFrame in Swing. Yes, you heard it right. But is it simple. Dead simple. Just see it below. import j...
Read More
Home » Swing Hacks
Showing posts with label Swing Hacks. Show all posts
Showing posts with label Swing Hacks. Show all posts
Create An Advanced Chat Box In Java
The following example illustrates creating an advanced chat box in Java in Swing that detects whether the user is thinking or typing and...
Read More
How To Move An Undecorated Jframe?
The following example illustrates how to move an undecorated JFrame . As they don't move by default, we need to keep a component that a...
Read More
Double Titlebar For Jframe In Swing
Yeah! I am excited to share this, a silly thing, but weird. Here is how to set a double titlebar for JFrame in swing, one comes with a de...
Read More
How To Add Jcheckbox To Jbutton In Swing?
Yeah! Adding JCheckBox to JButton is really gonna be simple, nothing more than 4 lines of code. Yes, it is. I said it right!! You need to ...
Read More
How To Give Jcheckbox A Feel Of Button?
JCheckBox doesn't look like a JButton . Yes, of course, I do agree. But did you remember that JCheckBox is after all a sub-class of t...
Read More
Add Image Preview Pane To Jfilechooser
Let me show you how to add image preview pane to JFileChooser . This is very simple, you might be familiar with the code of showing an ima...
Read More
How To Place Jmenu At Center Of Jmenubar?
Till now, we have seen how to add JMenu to JMenuBar. Now, we'll be applying a simple hack that lets you place JMenu at the center of ...
Read More
Subscribe to:
Posts (Atom)