Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to connect created by VE viasual bean class?
How to connect created by VE viasual bean class? [message #79605] Wed, 09 February 2005 10:05 Go to next message
Andrey Bondarenko is currently offline Andrey BondarenkoFriend
Messages: 84
Registered: July 2009
Member
Hi!

I`m new to OOP, so I think that I have problems with design.

What I have is a VisualBean class in one file created by VE.
Now I wont to use this class in other class - other file, where I'm
launching my User Interface from "public static main... " therefore I've
created a constructor for UI_class with initialisation of main JFrame
which is defined by myself in UI_class as :

public jF JFrame;
public UI_class() {
jF = getJFrame_Main();
}

then in my Main class (other file) in method "main" I'm creating instance
of my UI_class and call a constructor method to crate an instance of that
UI_class:

UI_class UI = new UI_class();

PROBLEM:
I can't make changes to any object in my UI in fact I need to put some
text in my JTextFields. But I can't do that even from UI_class! I can use
methods like
MyTextField.nextFocus();

in action listeners inside UI_class, but :

MyTextField.setText("My text");

doesn't work at all. What should I do?
Re: How to connect created by VE viasual bean class? [message #79737 is a reply to message #79605] Wed, 09 February 2005 15:42 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Could you please attach a more complete example? I'm not clear what you
mean.


--
Thanks,
Rich Kulp
Re: How to connect created by VE viasual bean class? [message #605164 is a reply to message #79605] Wed, 09 February 2005 15:42 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Could you please attach a more complete example? I'm not clear what you
mean.


--
Thanks,
Rich Kulp
Previous Topic:Re-using org.eclipse.ve.propertysheet
Next Topic:Suggestion: Prompt for control name at creation time
Goto Forum:
  


Current Time: Thu Apr 25 17:14:17 GMT 2024

Powered by FUDForum. Page generated in 0.03999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top