Results 1 to 3 of 3
Thread: how to connect two classes
- 12-01-2012, 03:18 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 18
- Rep Power
- 0
-
Re: how to connect two classes
I don't think that this current post is giving us near enough information to allow us to be able to help you.
One suggestion though: since you are obviously new to Swing, don't use NetBean's code-generation tool for creating GUI's until you're much more familiar with Swing. It is easy to use for creating simple basic GUI's, but it is a bear if you want to make anything even moderately complex if you don't understand Swing first. Check out the Swing tutorials as they will explain all you need to know. You can find them here: Lesson: Using Swing Components
- 12-01-2012, 03:30 PM #3
Senior Member
- Join Date
- Jun 2007
- Location
- Bali, Indonesia
- Posts
- 696
- Rep Power
- 6
Re: how to connect two classes
You don't import .java file, import the class name instead. Your cannot not importing classes in the middle of a method, it should be defined before the class declaration. And also there is no such class called j panal in Java Swing.
Website: Learn Java by Examples
Similar Threads
-
Association Classes for these classes
By kevinkhan in forum New To JavaReplies: 9Last Post: 03-21-2012, 05:22 PM -
Classes Help!!! two classes with object question.
By stuckonjava in forum New To JavaReplies: 16Last Post: 02-10-2012, 01:39 AM -
Use classes inside of other classes
By BlankFile in forum New To JavaReplies: 2Last Post: 02-06-2012, 01:51 PM -
connect through usb
By taufiqbzz in forum NetworkingReplies: 0Last Post: 11-01-2010, 11:04 PM -
classes and packages needed to connect any mailserver
By nyk976 in forum NetworkingReplies: 1Last Post: 02-10-2010, 12:55 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks