View unanswered posts | View active topics It is currently Thu Sep 09, 2010 1:59 am



Reply to topic  [ 3 posts ] 
 miglayout as layoutmanager by proxy 
Author Message

Joined: Sat Jul 24, 2010 2:52 am
Posts: 2
Post miglayout as layoutmanager by proxy
some background:
I work with a language called BBj. It has its own api for positioning elements on the screen - generally speaking you must specify where things go and how big they are. There is no layoutmanager facility. But it is possible to call into java code.

I would like to use MigLayout anyway. I am thinking that I could add components ( something lightweight ) to a 'virtual' panel using miglayout constraints and then query the positions / sizes of the components. Each component would correspond to an actual visible BBj component. If a window is resized I could ask the virtual JPanel to resize and then require the positions and set the sizes / positions via the BBj api.

Can MigLayout be used to arrange / layout components in panels that are never visible?

thanks
Steve


Sat Jul 24, 2010 4:27 am
Profile
Site Admin

Joined: Mon Dec 06, 2004 3:24 pm
Posts: 2211
Location: Sweden
Post Re: miglayout as layoutmanager by proxy
Hello,

Yes, sure. MigLayout is made to be ported to any GUI language.

Look at this doc for some more info: http://miglayout.com/Porting.pdf

Cheers,
Mikael


Sat Jul 24, 2010 10:07 am
Profile WWW

Joined: Sat Jul 24, 2010 2:52 am
Posts: 2
Post Re: miglayout as layoutmanager by proxy
thanks for pointing in the right direction

Steve


Sat Jul 24, 2010 4:21 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.