blob: 0ea333e129d48d215ae16e723d996c3cbe8087a8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<title>
Creating a new Java class
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Creating a new Java class
</h1>
<p>
Use the New Java Class wizard to create a new Java class. There are a number of ways to open this wizard:
</p>
<ol>
<li>
Select the container where you want the new class to reside.
</li>
<li>
Click the <strong>New Java Class</strong> button in the workbench toolbar.
</li>
</ol>
<p>
or
</p>
<ol>
<li>
Select the container where you want the new class to reside.
</li>
<li>
From the container's pop-up menu, select <strong>New</strong> &gt; <strong>Class</strong>.
</li>
</ol>
<p>
or
</p>
<ol start="1" type="1">
<li>
Select the container where you want the new class to reside.
</li>
<li>
From the drop-down menu on the <strong>New</strong> button in the workbench toolbar, select <strong>Class</strong>.
</li>
</ol>
<p>
or
</p>
<p>
Click the <strong>New</strong> button in the workbench toolbar to open the <strong>New</strong> wizard.
In the left pane, select <strong>Java</strong>, and in the right pane, select
<strong>Class</strong>.
</p>
<p>
or
</p>
<p>
Select the container where you want the new class to reside. Then, select from the menu bar <strong>File</strong> &gt; <strong>New</strong> &gt;
<strong>Class</strong>.
</p>
<p>
<img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159">
</p>
<p>
<a href="../concepts/concepts-3.htm">Java projects</a>
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159">
</p>
<p>
<a href="tasks-11.htm">Creating Java elements</a><br>
<a href="tasks-12.htm">Creating a new Java project</a><br>
<a href="tasks-18.htm">Creating a top-level class</a><br>
<a href="tasks-19.htm">Creating a nested class</a><br>
<a href="tasks-20.htm">Creating a class in an existing compilation unit</a><br>
<a href="tasks-executionArgs.htm">Setting execution arguments</a>
</p>
<p>
<img src="../images/ngrelr.gif" alt="Related reference" border="0" height="27" width="159">
</p>
<p>
<a href="../reference/ref-121.htm">New Java Project wizard</a><br>
<a href="../reference/ref-128.htm">New Source Folder wizard</a><br>
<a href="../reference/ref-125.htm">New Java Package wizard</a><br>
<a href="../reference/ref-126.htm">New Java Class wizard</a><br>
<a href="../reference/ref-3.htm">Java Toolbar actions</a>
</p>
<p>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" height="14" width="324"></a>
</p>
</body>
</html>