 |
 |
Swing on OS X: any way to get rid of resize widget?
|
 |
|
 |
|
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status:
Offline
|
|
I'm currently developing a java application that I'd like to run on OS X, but I've encountered an annoyance with aqua and I'm wondering if anyone here knows how to solve it. I'm writing the GUI entirely in Swing. I've got a JFrame that contains a JScrollPane, with a text component nested in the scroll pane. The annoying thing is that OS X places its resize widget right over the bottom scroll arrow on my scroll pane. Here's an image of what it looks like:
Anyone know of a way to move or complete remove that resizing widget in the corner? Unfortunately I have to make this window resizable, so I can't just work around the problem by making the size fixed.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
I can't help you with the Swing, but as a UI "trick" you might consider simply putting a status pane down there and printing information. That way your hack will look like a feature and not a bug.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status:
Offline
|
|
Ahh, I should have thought of that. Thanks for the tip!
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Apr 2001
Location: 127.0.0.1
Status:
Offline
|
|
If you are running your app from the command line, try this:
java -Dcom.apple.mrj.application.growbox.intrudes=false MyApplication
I believe you can also set this property inside your Java code like this:
System.setProperty("com.apple.mrj.application.grow box.intrudes","false");
Hope this helps!
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Nov 2002
Location: Sydney Australia
Status:
Offline
|
|
This is a problem with java 1.3.1 implementation in the Carbon GUI API's. In Java 1.4.1 the GUI API's are now Cocoa, thus this annoyance is no longer present.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
You could always use the Aqua look and feel instead of Metal.
|
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |