This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 38045
    
  22
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: 38045
    
  22
. . . 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: displaying a swing Transformeredit
 
Similar Threads
Progress Bar refreshing!
Progress Bar refreshing!
My java swing application can not visible on linux
Good "SWING" Book (s) ???
JFormattedTextField using NumberFormatter ?