🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
8 messages
8 total messages Started by Paul Iddon Mon, 22 Nov 2004 16:56
buttonGroup
#908
Author: Paul Iddon
Date: Mon, 22 Nov 2004 16:56
8 lines
1036 bytes
Hello,

Im new to Jbuilder and i was wondering why when I select the buttonGroup
component it does not show in my design, or in the final product.

Thanks

Paul
Re: buttonGroup
#909
Author: Lori M Olson [TeamB]
Date: Mon, 22 Nov 2004 17:28
39 lines
2081 bytes
Paul Iddon wrote:

> Hello,
> 
> Im new to Jbuilder and i was wondering why when I select the buttonGroup
> component it does not show in my design, or in the final product.
> 
> Thanks
> 
> Paul
> 
> 

A button group is just a conceptual object.  It is not a visual 
component, per se.  It is used to add *behavior* to a set of (usually) 
radio buttons, such that only one button can be "selected" at a time.

If you want to visually group your buttons, you need to create a panel 
and add those buttons to the panel.  And maybe add a nice beveled, 
titled border to the panel.

-- 

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: buttonGroup
#910
Author: Paul Furbacher [TeamB]
Date: Mon, 22 Nov 2004 21:14
46 lines
2606 bytes
Lori M Olson [TeamB] wrote:

> Paul Iddon wrote:
>>
>> Im new to Jbuilder and i was wondering why when I select the buttonGroup
>> component it does not show in my design, or in the final product.
> 
> A button group is just a conceptual object.  It is not a visual 
> component, per se.  It is used to add *behavior* to a set of (usually) 
> radio buttons, such that only one button can be "selected" at a time.
> 
> If you want to visually group your buttons, you need to create a panel 
> and add those buttons to the panel.  And maybe add a nice beveled, 
> titled border to the panel.

Just had an idea after all these years of
manually adding buttons to a button group:

Create a descendent of JPanel, override the
"addImpl(...)" method, calling super.addImpl(...),
and then adding the component, if an instanceof
JButton, to a ButtonGroup member.  Add a getButtonGroup()
method to the special panel.

There are other implementation details, but
that might be a good start.

This way, after adding this component to the
Palette, you could do what you want to do
in the Designer.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://www.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: buttonGroup
#911
Author: Lori M Olson [TeamB]
Date: Mon, 22 Nov 2004 21:49
43 lines
2408 bytes
Paul Furbacher [TeamB] wrote:

> 
> Just had an idea after all these years of
> manually adding buttons to a button group:
> 
> Create a descendent of JPanel, override the
> "addImpl(...)" method, calling super.addImpl(...),
> and then adding the component, if an instanceof
> JButton, to a ButtonGroup member.  Add a getButtonGroup()
> method to the special panel.
> 
> There are other implementation details, but
> that might be a good start.
> 
> This way, after adding this component to the
> Palette, you could do what you want to do
> in the Designer.
> 
> 

LOL.  I was just explaining this problem to someone who isn't a 
programmer, and the first question was something like, ... "So why 
doesn't someone write a panel that acts like a button group...?"

-- 

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: buttonGroup
#912
Author: Paul Furbacher [TeamB]
Date: Mon, 22 Nov 2004 22:20
32 lines
2292 bytes
Lori M Olson [TeamB] wrote:

> LOL.  I was just explaining this problem to someone who isn't a 
> programmer, and the first question was something like, ... "So why 
> doesn't someone write a panel that acts like a button group...?"

That's funny, but I don't know what to think since
it was a non-programmer.  Was our idea just wacky,
or was his outsider's perspective valuable in seeing
a solution which we insiders just don't immediately
see because we're too close to it?  (I had the sensation
of having a set of blinders fall from my thinking when
the idea struck me.  Sort of, "how come I hadn't
thought of it earlier?")

Oh well.


-- 


Paul Furbacher (TeamB)

   Save time, search the archives:
        http://www.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: buttonGroup
#913
Author: John McGrath [TeamB]
Date: Tue, 23 Nov 2004 02:36
14 lines
1334 bytes
On 11/22/2004 at 4:49:02 PM, Lori M Olson [TeamB] wrote:

> "So why doesn't someone write a panel that acts like a button group...?"

I did that a few years back.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Re: buttonGroup
#916
Author: dar7yl
Date: Sat, 27 Nov 2004 06:51
29 lines
2514 bytes
Paul Furbacher [TeamB] wrote:
> Lori M Olson [TeamB] wrote:
>> LOL.  I was just explaining this problem to someone who isn't a 
>> programmer, and the first question was something like, ... "So why 
>> doesn't someone write a panel that acts like a button group...?"
>
> That's funny, but I don't know what to think since
> it was a non-programmer.  Was our idea just wacky,
> or was his outsider's perspective valuable in seeing
> a solution which we insiders just don't immediately
> see because we're too close to it?  (I had the sensation
> of having a set of blinders fall from my thinking when
> the idea struck me.  Sort of, "how come I hadn't
> thought of it earlier?")

Beware of the dark side, me young apprentice.  You've just grasped the basic 
concepts of the magic that is OO.  Pretty soon you will have trancended mere 
mortal programming and will have to be elevated to that lofty realm they 
call management.

Watch out for the pitfalls of over-enthusiastic decomposition.  Pretty soon 
you are adrift in a morass of intertwined little classlets and 
overreferenced, underutilized interdependant non-deterministic objectless 
subclasses which serve merely to deference unsubstatiated widgets that some 
idiot left in the sandbox.

regards,
    Dar7yl
Re: buttonGroup
#919
Author: Lori M Olson [TeamB]
Date: Sun, 28 Nov 2004 00:27
39 lines
2505 bytes
Paul Furbacher [TeamB] wrote:
> 
> That's funny, but I don't know what to think since it was a
> non-programmer.  Was our idea just wacky, or was his outsider's
> perspective valuable in seeing a solution which we insiders just
> don't immediately see because we're too close to it?  (I had the
> sensation of having a set of blinders fall from my thinking when the
> idea struck me.  Sort of, "how come I hadn't thought of it earlier?")
> 
> 
> Oh well.
> 

I know why it never occurred to me.  I learned about button groups from 
the first edition Core Java book in 1996.  It was not presented from a 
"WYSIWYG" designer point of view.  I think that if my first introduction 
to button groups was in the designer, I would have come up with that 
idea a whole lot sooner.

Interesting how context changes things.

-- 

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
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