Michael Martin

Greenhorn
+ Follow
since Jul 10, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Martin

(Busted. Sorry, I'll be sure to say when I'm posting to more than one forum in the future.) I think the below example makes the issue a little clearer. If you add the JMenuBar to a JPanel, instead of using setJMenuBar on the JFrame, you can see the gradient clearer. Notice the top of the JMenuBar is lighter than the bottom. Is there a way to disable that? Thanks.

11 years ago
JMenuBar on Mac OS adds a gradient, which I don't want. See the simple example below. (Note, the gradient is very subtle. Using Mac OS's DigitalColorMeter utility, you can detect it.) Does anyone know how I can get rid of it. No matter what I set the background color to, it adds this subtle gradient on top of it. UIManager.get("MenuBar.gradient") returns null. Any ideas?

11 years ago
Strangely, my JPopupMenu is now showing window decorations. When it was part of a JFrame, it did not show decorations. Same code now in a JApplet, shows window decorations. I will try to post some code.
11 years ago
Hi. I have a JPopupMenu instance which is showing window decorations. Does anyone have any idea how I can remove them or how I can access the parent component to turn decorations off? getParent() returns null. Thanks.
11 years ago