Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Swing on OS X: any way to get rid of resize widget?

Swing on OS X: any way to get rid of resize widget?
Thread Tools
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status: Offline
Reply With Quote
Jan 3, 2003, 06:13 PM
 
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
Reply With Quote
Jan 3, 2003, 06:22 PM
 
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.
     
itai195  (op)
Addicted to MacNN
Join Date: May 2001
Location: Cupertino, CA
Status: Offline
Reply With Quote
Jan 3, 2003, 06:36 PM
 
Ahh, I should have thought of that. Thanks for the tip!
     
Mac Enthusiast
Join Date: Apr 2001
Location: 127.0.0.1
Status: Offline
Reply With Quote
Jan 3, 2003, 10:49 PM
 
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
Reply With Quote
Jan 5, 2003, 06:39 PM
 
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
Reply With Quote
Jan 8, 2003, 01:24 AM
 
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.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2