blob: ab6e57e73c7c427a213fb6c47dc1c13d8dc4eec3 [file]
<!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 class in an existing compilation unit
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Creating a new class in an existing compilation unit
</h1>
<p>
An alternative way to create a new class is to add it to an existing compilation unit.
</p>
<ol>
<li>
In the Package Explorer, double-click a compilation unit to open it in an editor.
</li>
<li>
Type the code for the class at the desired position in the compilation unit.
</li>
</ol>
<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-17.htm">Creating a new Java class</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-94.htm">Renaming a class, field, or interface</a><br>
<a href="tasks-92.htm">Renaming a compilation unit</a><br>
<a href="tasks-129.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-view-package-explorer.htm">Package Explorer</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>