Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > Re: Newbie - ba...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 8 Topic 1341 of 1403
Post > Topic >>

Re: Newbie - basic questions about Javabeans

by zalek <zalekbloom@[EMAIL PROTECTED] > Mar 22, 2008 at 05:41 AM

On Mar 20, 11:02 pm, zalek <zalekbl...@[EMAIL PROTECTED]
> wrote:
> Hello,
> I decided to write a simple application using Javabeans  in NetBeans
> IDE 6.0.
> I created a frame with few buttons and fields.
> I gave a name to all fields and buttons. I switched from Design to
> Source and I see code like this:
>
> jButton1 = new javax.swing.JButton();
> ....
> jButton1.setName("b_exit");
>
> The above code cannot be changed.
>
> My questions:
> How I should I access object I created - I don't want to use name like
> jButton1 - I want to use name I assigned like b_exit.
> Is there any example of building simple application using JavaBeans?
> Which book do you recommend for learning Javabeans?
>
> Thanks,
>
> Zalek

Thanks for all replies - maybe I didn't explained clearly what was my
problem.
I am using IDE NetBeans to create a JFrame and Java program to use
this JFrame. The problem was that IDE Netbeams created names like
JButton1, JButton2 etc, while I wanted to use "human" names like
t_name or t_user. Using properties of the objects name was not
changed, only command .setName was used.
I found that mouse right click on an object changes object name - this
is what I wanted.
Thanks,

Zalek
 




 8 Posts in Topic:
Newbie - basic questions about Javabeans
zalek <zalekbloom@[EMA  2008-03-20 20:02:56 
Re: Newbie - basic questions about Javabeans
Mark Space <markspace@  2008-03-21 03:18:04 
Re: Newbie - basic questions about Javabeans
Roedy Green <see_websi  2008-03-21 17:35:25 
Re: Newbie - basic questions about Javabeans
Lew <lew@[EMAIL PROTEC  2008-03-21 19:07:51 
Re: Newbie - basic questions about Javabeans
zalek <zalekbloom@[EMA  2008-03-21 04:21:07 
Re: Newbie - basic questions about Javabeans
CK <claus@[EMAIL PROTE  2008-03-21 14:55:28 
Re: Newbie - basic questions about Javabeans
Mark Space <markspace@  2008-03-21 16:03:56 
Re: Newbie - basic questions about Javabeans
zalek <zalekbloom@[EMA  2008-03-22 05:41:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 23:51:52 CST 2008.