473,467 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Import statement in NetBeans 3.5.1

I'm trying to get a java program to use a GUI included with my textbook,
Fundamentals of Java by Lambert and Osborne, called BreezySwing. The book
indicates that to import the GUI you need to declare:

import BreezySwing.*;

Whie is all well and good except that I can't quite figure out where I need
to put the BreezySwing.class (I think it's .class anyway) file included with
the textbook so that NetBeans 3.5.1 will understand that statement. Does
anyone know the directory I'd have to put BreezySwing.class in order for the
above import statement to work?

Any information is much appreciated!

--
AckbarJedi
---
"That theory is worthless. It isn't even wrong!" ~Wolfgang Pauli
---
To e-mail remove DeathtoSpam from my e-mail address.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #1
3 8496
"AckbarJedi" <Ac***************@hotSPAMmail.com> wrote in message
news:40**********@corp.newsgroups.com...
I'm trying to get a java program to use a GUI included with my textbook,
Fundamentals of Java by Lambert and Osborne, called BreezySwing. The book
indicates that to import the GUI you need to declare:

import BreezySwing.*;

Whie is all well and good except that I can't quite figure out where I need to put the BreezySwing.class (I think it's .class anyway) file included with the textbook so that NetBeans 3.5.1 will understand that statement. Does
anyone know the directory I'd have to put BreezySwing.class in order for the above import statement to work?

Any information is much appreciated!


In a BreezySwing directory that's a direct subdirectory of whatever
directory you have mounted in NetBeans. Import statements basically navigate
directories using dots as separators, so if you're working in C:\Java
(assuming a MS OS), then the statment:
import my.long.package.name.*;

would import all the class files in C:\Java\my\long\package\name
Jul 17 '05 #2
"Ryan Stewart" <za****@no.texas.spam.net> wrote in message
news:Z7********************@texas.net...
"AckbarJedi" <Ac***************@hotSPAMmail.com> wrote in message
news:40**********@corp.newsgroups.com...
I'm trying to get a java program to use a GUI included with my textbook,
Fundamentals of Java by Lambert and Osborne, called BreezySwing. The book indicates that to import the GUI you need to declare:

import BreezySwing.*;

Whie is all well and good except that I can't quite figure out where I need
to put the BreezySwing.class (I think it's .class anyway) file included

with
the textbook so that NetBeans 3.5.1 will understand that statement. Does anyone know the directory I'd have to put BreezySwing.class in order for

the
above import statement to work?

Any information is much appreciated!


In a BreezySwing directory that's a direct subdirectory of whatever
directory you have mounted in NetBeans. Import statements basically

navigate directories using dots as separators, so if you're working in C:\Java
(assuming a MS OS), then the statment:
import my.long.package.name.*;

would import all the class files in C:\Java\my\long\package\name


Ah okay...

To extend this idea... If I had an applet complied to Blah.class that used
BreezySwing and wanted to post it on a website, I should keep Blah.class and
the directory BreezySwing in the same folder as eachother?
--
AckbarJedi
---
"That theory is worthless. It isn't even wrong!" ~Wolfgang Pauli
---
To e-mail remove DeathtoSpam from my e-mail address.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #3
"AckbarJedi" <Ac***************@hotSPAMmail.com> wrote in message
news:40**********@corp.newsgroups.com...
"Ryan Stewart" <za****@no.texas.spam.net> wrote in message
news:Z7********************@texas.net...
"AckbarJedi" <Ac***************@hotSPAMmail.com> wrote in message
news:40**********@corp.newsgroups.com...
I'm trying to get a java program to use a GUI included with my textbook, Fundamentals of Java by Lambert and Osborne, called BreezySwing. The book indicates that to import the GUI you need to declare:

import BreezySwing.*;

Whie is all well and good except that I can't quite figure out where I need
to put the BreezySwing.class (I think it's .class anyway) file
included
with
the textbook so that NetBeans 3.5.1 will understand that statement. Does anyone know the directory I'd have to put BreezySwing.class in order

for the
above import statement to work?

Any information is much appreciated!


In a BreezySwing directory that's a direct subdirectory of whatever
directory you have mounted in NetBeans. Import statements basically

navigate
directories using dots as separators, so if you're working in C:\Java
(assuming a MS OS), then the statment:
import my.long.package.name.*;

would import all the class files in C:\Java\my\long\package\name


Ah okay...

To extend this idea... If I had an applet complied to Blah.class that used
BreezySwing and wanted to post it on a website, I should keep Blah.class

and the directory BreezySwing in the same folder as eachother?


Hmm, not sure about applets. I imagine it would be the same, yes. But it'd
be better to put them in a JAR file. That's the Java compression format. It
will compress your applet and make it a quicker download. If you're using
images and other files, though, it can be tricky reading them from a JAR.
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: King W.Wang | last post by:
Hi all, I've installed NetBeans IDE 3.5 on Windows XP. But if I try to start it, a message box shows "cannot load jvm.dll". This library does exist in a subdirectory. My questions are: 1) Is...
3
by: Joseph Jolic | last post by:
Hi i just installed Netbeans on my windows pc and it installed fine. but when i try to run it i get: JDK 1.3 or later cannot be found on your machine. Please read the README file. i read...
1
by: tmb | last post by:
I'm a newbie to Java. At http://java.sun.com/j2se/1.4.2/download.html I see I can download... NetBeans IDE + J2SE SDK as a 'bundle' I beleive is both NetBeans and the Java SDK... My...
0
by: Federico | last post by:
Hi all, I don't know if this topic is perhaps a little bit off-topic, anyway I have a strange problem in transforming an XML file in an HTML file using XSLT form a Java program written with...
20
by: Bill DeWitt | last post by:
I downloaded the Sun product, and find it feature rich but slow. Can someone recommend a more basic (freeware) IDE which will help a newbie without hiding every bit of code? I can program my way...
1
by: tatamata | last post by:
Hello. I installed NetBeans, Jython and Coyote. I hoped that I could use Swing GUI builder intergrated in NetBeans (Matisse?) with Jython in "Delphi" way. But, it seems that I can drag and drop...
0
by: buk110 | last post by:
Hi everyone, I'm new to using JAVA and I'm trying to interact with a web service I wrote in C# I downloaded Netbeans & followed the instructions to point to the wsdl file I navigated to my...
0
by: sokeefe | last post by:
I use NetBeans IDE to develop a Java application. In the past, I could use the Design Editor to edit my form for the GUI. Spontaneously, NetBeans is unable to open the form file, producing this...
1
by: sokeefe | last post by:
I am trying to edit the GUI of a project in Netbeans. In particular, I am trying to add new JButtons. I get a NullPointerException when I try to add an Event to any given JButton (even ones that...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.