aspose file tools*
The moose likes Beginning Java and the fly likes displaying a swing Transformeredit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "displaying a swing Transformeredit" Watch "displaying a swing Transformeredit" New topic
Author

displaying a swing Transformeredit

terry oliver
Greenhorn

Joined: Jan 04, 2008
Posts: 22
Hi

i have a swing class named EngineeringData, and havemade another swing class TransformerEdit I would like to dispay the TransformerEdit when the edit button is pressed in engineering data I am having some problems can anyone help thanks

Olly
terry oliver
Greenhorn

Joined: Jan 04, 2008
Posts: 22
here is a part of my code whats wrong

private Vector secOhmsTemp;
private Vector secCmTemp;
TransformerEdit et;
//-----
// End of variables declaration


public engineeringDataSheet()
{
super();
initializeComponent();

TransformerEdit te = new TransformerEdit();
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
What are you doing about the edit button? Have you added a Listener to it? Do you know about Listeners?

Go through the Swing forum and look for threads like this, and this, where the conepts of Listeners have been discussed recently.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
. . . and why are you declaring a field inside the constructor? That is a sure-fire recipe for NullPointerExceptions later on.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
What exactly is the problem you are experiencing???


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: displaying a swing Transformeredit