Thread View: borland.public.jbuilder.java.swing
8 messages
8 total messages
Started by Oliver
Tue, 05 Jul 2005 15:29
layout question
Author: Oliver
Date: Tue, 05 Jul 2005 15:29
Date: Tue, 05 Jul 2005 15:29
25 lines
2054 bytes
2054 bytes
Hello, one may forgive my stupid question, but ive always wondered why the Java GUI editors are so different from other GUI editors such as for example in Delphi. Why isnt it possible to place a visual component on a x,y-coordinate on a form, adjust its dimensions, and thats it? Whats the reason to force the developer to use some kind of a grid (XYLayout, GridBagLayout) (ok, there are others, such as FlowLayout, ...) ? I agree that one can do a lot of things using the GBL, im just curious why the Layout Managers have been designed the way they are (is it the platform independency issue or something different?). I understand that the needs are different when one has to develop for different OS, but in our case the issue is restricted to Windows only. Often we have to develop some little tools which dont need more than 20 - 30 hours of developing time. These tools are often restricted to a very little group of customers. With Java i need more time for the simple reason of GUI issues which i dont have when using other tools. Of course, i agree with the fact that with increasing experience, this gap will close. friendly greetings, Oliver
Re: layout question
Author: Vander
Date: Wed, 06 Jul 2005 06:44
Date: Wed, 06 Jul 2005 06:44
17 lines
1973 bytes
1973 bytes
> one may forgive my stupid question, but ive always wondered why > the Java GUI editors are so different from other GUI editors > such as for example in Delphi. Why isnt it possible to place a visual component on a x,y-coordinate on a form, adjust its > dimensions, and thats it? I assume you are speaking of layout managers. In fact there exists a standard class XYLayoutManager supplied by Borland which might just give you what you are asking for (I guess I never used it, but I wonder why Sun never supplied an equivalent!). http://info.borland.com/techpubs/jbuilder/jbuilder2005/designui/i2_xylayout.html I would not recommend its usage though if your application has the slightest chance to run on an different type of VM than the one you work with. Mind that the conception of Java is running on different implmenentaions of VM and different styles of painting of components. In such a setting the size of layout elements in pixels cannot be predicted.
Re: layout question
Author: Oliver
Date: Wed, 06 Jul 2005 07:13
Date: Wed, 06 Jul 2005 07:13
6 lines
977 bytes
977 bytes
Hi, thanks for your response, i will have a look at it. Oliver
Re: layout question
Author: Vander
Date: Wed, 06 Jul 2005 08:16
Date: Wed, 06 Jul 2005 08:16
10 lines
1567 bytes
1567 bytes
> With Java i need more time for the > simple reason of GUI issues which i dont have when using other > tools. Of course, i agree with the fact that with increasing > experience, this gap will close. If you have recurring types of layout tasks you can, by the time your experiences grows, create your own helper routines or blueprint classes which aid you in quick development. I also found Borlands VerticalFlowLayout extremely helpful in many cases. Obviousely again Sun is missing an equivalent.
Re: layout question
Author: Lori M Olson [TeamB]
Date: Wed, 06 Jul 2005 22:04
Date: Wed, 06 Jul 2005 22:04
35 lines
2161 bytes
2161 bytes
Vander wrote:
>> With Java i need more time for the
>> simple reason of GUI issues which i dont have when using other
>> tools. Of course, i agree with the fact that with increasing
>> experience, this gap will close.
>
>
> If you have recurring types of layout tasks you can, by the time your
> experiences grows, create your own helper routines or blueprint classes
> which aid you in quick development. I also found Borlands
> VerticalFlowLayout extremely helpful in many cases. Obviousely again Sun
> is missing an equivalent.
Not really. BoxLayout is a near equivalent.
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BoxLayout.html
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: layout question
Author: Magnus
Date: Thu, 07 Jul 2005 11:51
Date: Thu, 07 Jul 2005 11:51
20 lines
1890 bytes
1890 bytes
>> >> If you have recurring types of layout tasks you can, by the time your >> experiences grows, create your own helper routines or blueprint >> classes which aid you in quick development. I also found Borlands >> VerticalFlowLayout extremely helpful in many cases. Obviousely again >> Sun is missing an equivalent. > > > Not really. BoxLayout is a near equivalent. > > http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BoxLayout.html > Thanks Lori, I looked at that and it seems to be very useful sometimes. Now, I use JBuilder2005 Dev and there was only a "BoxLayout2". Is that Borland's own that you can't deploy like XYLayout? Magnus
Re: layout question
Author: Vander
Date: Mon, 11 Jul 2005 04:11
Date: Mon, 11 Jul 2005 04:11
8 lines
1316 bytes
1316 bytes
> > > Not really. BoxLayout is a near equivalent. > > http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BoxLayout.html > If you are a great friend of scrambles eggs, then yes. :)
Re: layout question
Author: Graham Perks
Date: Tue, 19 Jul 2005 01:52
Date: Tue, 19 Jul 2005 01:52
28 lines
1989 bytes
1989 bytes
The typical Java layout engine does not make life very easy :-) Have a look into Foam at http://www.computersinmotion.com There are some good videos which show its power and ease. Foam is the first Java designer to basically do away with the layout manager! Drop your controls where they need to go, set some spacing or tell Foam controls are centered or should stay the same size, whatever. Foam might be just what you are looking for. Check it out! Cheers, Graham Perks. Computers In Motion. In article <42d1f144$1@newsgroups.borland.com>, Vander <874505@gmx.de> wrote: > > > > > > Not really. BoxLayout is a near equivalent. > > > > http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BoxLayout.html > > > > If you are a great friend of scrambles eggs, then yes. :)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads