13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.2 NetBeans: The Open Source IDE24110.2.3 Getting Around in NetBeansLet’s take a look, from top down, at NetBeans’ main window. First, of course,is the menu bar. There are lots of choices to explore there. Much of what you’lldo with NetBeans w<strong>on</strong>’t require much use of the menus—there are so manyshortcuts elsewhere.Next comes a row of ic<strong>on</strong>s, which are just shortcuts for menu times.This row of ic<strong>on</strong>s can be customized, and you can even add your own (seeSecti<strong>on</strong> 10.2.5).The three tabs below the ic<strong>on</strong>s, labeled Editing, GUI Editing, andDebugging, modify the window to provide three distinct workspaces. Each<strong>on</strong>e customizes the window envir<strong>on</strong>ment for a specific task, but it is stillworking <strong>on</strong> the same files.Next, <strong>on</strong> the left, comes the Explorer, which is in many ways similar tothe tools that you may use for traversing filesystems <strong>on</strong> a Windows or <strong>Linux</strong>system.One oddity of NetBeans is that it doesn’t just use the files as it finds themin the directories <strong>on</strong> your hard drive(s). Rather, is requires you to designate apiece of the filesystem as the part that you want to use. You can designate severalsuch pieces. Each piece is “mounted” as if it were a mountable filesystem.(This is an operating system c<strong>on</strong>cept. If you’re not familiar with it, d<strong>on</strong>’t worry.For the purposes of NetBeans, just think of the IDE as too dumb to knowabout any files until you tell it about them.)There are three different types of files that you can mount—local, CVS,or JAR. By specifying the type, NetBeans can treat each <strong>on</strong>e in its special way.• Local files need no special treatment; they are just the local files <strong>on</strong> yourhard drive.• If a filesystem is mounted under a versi<strong>on</strong> c<strong>on</strong>trol system (CVS or genericVCS), then its files can have versi<strong>on</strong> c<strong>on</strong>trol operati<strong>on</strong>s performed <strong>on</strong> them(checkin, checkout, and so <strong>on</strong>), via commands in the IDE. (More <strong>on</strong> thatbelow.) Also, special directories used by the versi<strong>on</strong> c<strong>on</strong>trol system (e.g.,CVS) are hidden from the display, as you almost never want to manipulatethese files directly.• When you mount a JAR file or ZIP archive as a filesystem, NetBeansdisplays the c<strong>on</strong>tents of the archive as if they were just files in adirectory—which can make them easier to manipulate. More importantly,the JAR is automatically added to the classpath for Java compiling.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!