JButton Formatting and Image Transparency
I have a JScrollPane, containing a JPanel on which buttons are added. its basically A scrollable Panel on which buttons are added.
I have 3 probelms in my Project
1. Basically The alignment of text on the button is too close to the left border of the button. How do I set the alignment of text so that there is a significant gap between the left margin of the button and the text.
2. Also I am adding "check marks" ImageIcons dynamically to the button based on some conditions. These checkmarks are similar to that used in JCheckBoxMenuItems. How do I set the image transparent so that It appears uniform accross all Look and Feel combinations. The image is just a check mark (A small tick)
3.Also When I hover or move my mouse over each of the buttons in the panel, a menuitem like blue background should appear on the button below the mouse pointer. Indicating the current selection
The limitation of my assignment is I cant use a JMenuItem or JCheckBoxMenuItem
Message was edited by:
hemanthjava

