🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
7 messages
7 total messages Started by Rob Sat, 20 Jan 2007 13:53
GUI interface controls and swing.
#228
Author: Rob
Date: Sat, 20 Jan 2007 13:53
11 lines
1253 bytes
I am very new to this and just wanted to get a few things cleared up.

1/ If I want my applet to work on the Web must I limit my self to Swing 
controls ?

2/ When adding swing controls to a class or applet they don't seem to 
place themselves where they have been dropped eg in the middle of the 
frame.  They do odd things like stick themselves to edge or top of the 
frame.  How can I stop this?

Regards, Rob
Re: GUI interface controls and swing.
#229
Author: Lori M Olson [TeamB]
Date: Sat, 20 Jan 2007 18:06
46 lines
2303 bytes
Rob wrote:
> I am very new to this and just wanted to get a few things cleared up.
> 
> 1/ If I want my applet to work on the Web must I limit my self to Swing 
> controls ?

You can use any controls you like, but mixing AWT (heavyweight) 
controls, and Swing (lightweight) controls is a mistake.  Stick with one 
or the other, preferably Swing.

This is a good place to start, to learn about Swing:

http://java.sun.com/docs/books/tutorial/uiswing/


> 
> 2/ When adding swing controls to a class or applet they don't seem to 
> place themselves where they have been dropped eg in the middle of the 
> frame.  They do odd things like stick themselves to edge or top of the 
> frame.  How can I stop this?
> 
> Regards, Rob

You need to learn about layout managers.  You've probably got a 
BorderLayout happening there.

http://java.sun.com/docs/books/tutorial/uiswing/layout/index.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: GUI interface controls and swing.
#230
Author: Rob
Date: Sat, 20 Jan 2007 23:12
41 lines
2466 bytes
Lori M Olson [TeamB] wrote:
> Rob wrote:
>> I am very new to this and just wanted to get a few things cleared up.
>>
>> 1/ If I want my applet to work on the Web must I limit my self to 
>> Swing controls ?
> 
> You can use any controls you like, but mixing AWT (heavyweight) 
> controls, and Swing (lightweight) controls is a mistake.  Stick with one 
> or the other, preferably Swing.
> 
> This is a good place to start, to learn about Swing:
> 
> http://java.sun.com/docs/books/tutorial/uiswing/
> 
> 
>>
>> 2/ When adding swing controls to a class or applet they don't seem to 
>> place themselves where they have been dropped eg in the middle of the 
>> frame.  They do odd things like stick themselves to edge or top of the 
>> frame.  How can I stop this?
>>
>> Regards, Rob
> 
> You need to learn about layout managers.  You've probably got a 
> BorderLayout happening there.
> 
> http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html
> 
Thanks for your help. The Tutorial looks great.

I should explain that I am using a 30 day trial of JBuilder 2005 and an 
old copy of JBuilder 2 that came with an old copy of Delphi.

The springlayout does not appear to be available in JBuilder 2006

I did try dragging and dropping the controls in the Jpanel and the 
Jtabbed pane.  Nothing behaved the way I expected.

What I would like to understand is that option buttons, text boxes have 
been available since Jbuilder 2 - how did anybody use them ?
Re: GUI interface controls and swing.
#231
Author: Paul Nichols TeamB
Date: Sun, 21 Jan 2007 12:56
19 lines
1855 bytes
Rob wrote:
> Lori M Olson [TeamB] wrote:
>> Rob wrote:

> What I would like to understand is that option buttons, text boxes have 
> been available since Jbuilder 2 - how did anybody use them ?

Like Lori stated, you will have to learn to use Layout managers. Either 
that or use the newer Matisse GUI Layout. It is not available in JB 
2-2006. I am not sure whether 2007 has it or not (I do not have my copy 
yet). Tools that do have it include NetBeans 5.5 and myEclipse.

Matisse allows you to do Drag and Drog GUIs that automate the Layout 
Manager positions for you. This means it works more like the RAD tools 
for Windows, Delphi, BCB, Visual Basic.


Using JB 2006, you will need to learn what layout managers are and how 
to use them. JB is not Delphi and Java is not Delphi! :)
Re: GUI interface controls and swing.
#232
Author: Rob
Date: Mon, 22 Jan 2007 13:07
28 lines
2007 bytes
Paul Nichols [TeamB] wrote:
> Rob wrote:
>> Lori M Olson [TeamB] wrote:
>>> Rob wrote:
> 
>> What I would like to understand is that option buttons, text boxes 
>> have been available since Jbuilder 2 - how did anybody use them ?
> 
> Like Lori stated, you will have to learn to use Layout managers. Either 
> that or use the newer Matisse GUI Layout. It is not available in JB 
> 2-2006. I am not sure whether 2007 has it or not (I do not have my copy 
> yet). Tools that do have it include NetBeans 5.5 and myEclipse.

Or you could use the JPanel and change the layout property to XY Layout.
> 
> Matisse allows you to do Drag and Drog GUIs that automate the Layout 
> Manager positions for you. This means it works more like the RAD tools 
> for Windows, Delphi, BCB, Visual Basic.
> 
> 
> Using JB 2006, you will need to learn what layout managers are and how 
> to use them. JB is not Delphi 

JB and Delphi have one thing in common - They are both dying.

 > and Java is not Delphi! :)

No shit Sherlock
Re: GUI interface controls and swing.
#233
Author: Paul Furbacher [TeamB]
Date: Mon, 22 Jan 2007 15:27
26 lines
1677 bytes
Rob wrote:

> [...] No shit Sherlock

The above language is not acceptable in these newsgroups.
These newsgroups are renowned for their civility we will
appreciate your presence in these newsgroups if you help
us maintain that civility.

Thank you.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://info.borland.com/newsgroups/ngsearch.html

   Is it in Joi Ellis's Faq-O-Matic?
        http://www.visi.com/~gyles19/fom-serve/cache/1.html

   Finally, please send responses to the newsgroup only.
   That means, do not send email directly to me.
   Thank you.
Re: GUI interface controls and swing.
#234
Author: Paul Nichols TeamB
Date: Sat, 27 Jan 2007 21:09
28 lines
2126 bytes
Rob wrote:
> Paul Nichols [TeamB] wrote:
>> Rob wrote:
>>> Lori M Olson [TeamB] wrote:
>>>> Rob wrote:
>>

> Or you could use the JPanel and change the layout property to XY Layout.
>>

No, not if you want your app to be able to be used with Different 
Graphic cards or be XPlatform. XY is a prototype layout period. It does 
not translate well to different Video setups and will almost NEVER work 
when moving from one OS to another.

Maltisse on the other hand, will create the Layout for you. It does not 
use the XYLayout type structure. It builds the layout behind the scenes, 
so that you can concentrate on the RAD benefits of your layout paradigm. 
It works reasonably well with different Video setups and XPlatform. I 
have had to do some tweaking, but not major tweaking, using Maltisse.

>
> 
> No shit Sherlock

Please refrain from using such language. I understand the context, but 
the language is against NG rules. Civility is what we all attempt to 
practice here. :)
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