Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1938

Re: Creating a component

From "Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Subject Re: Creating a component
Message-ID <3rgk83l7nnrgin96rig1riolil8j824grr@4ax.com> (permalink)
Newsgroups comp.lang.java.gui
References <ejmnl4-abc.ln1@Father.family>
Date 2011-04-27 15:36 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Mon, 02 Jul 2007 18:43:57 +0200, Ricardo Palomares Martinez
<rpm.PUBLI@iespana.es> wrote, quoted or indirectly quoted someone who
said :

>
>But I'm not sure how to do that. I've thought of putting both
>components (JTextField and JButton) inside a JPanel, and thus I would
>write my custom component by extending a JPanel with two private
>properties holding the text field and the button. Would that be
>sensible or should I extend JComponent (which I think is more complex)?

JPanel gives you a layout to work with.In your case it sounds like you
need those methods.

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Creating a component by p "Ricardo Palomares Martine" <ricardo.palomares.martine@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
  Re: Creating a component "CK" <ck@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
  Re: Creating a component "Robert" <robert@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
  Re: Creating a component "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000
  Re: Creating a component "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:36 +0000

csiph-web