| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Creating a new interface in an existing compilation unit |
| </title> |
| </head> |
| <body> |
| <h1> |
| Creating a new interface in an existing compilation unit |
| </h1> |
| <p> |
| An alternative way to create a new interface is to add it to an existing compilation unit. |
| </p> |
| <ol> |
| <li> |
| In the Package Explorer, double-click a compilation unit. |
| </li> |
| <li> |
| Type the code for the interface at the desired position in the compilation unit. |
| </li> |
| </ol> |
| <p> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0"> |
| </p> |
| <p> |
| <a href="../concepts/concepts-3.htm">Java projects</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelt.png" alt="Related tasks"> |
| </p> |
| <p> |
| <a href="tasks-11.htm">Creating Java elements</a><br> |
| <a href="tasks-21.htm">Creating a new Java interface</a><br> |
| <a href="tasks-24.htm">Creating a nested interface</a><br> |
| <a href="tasks-23.htm">Creating a top-level interface</a><br> |
| <a href="tasks-92.htm">Renaming a compilation unit</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelr.png" alt="Related reference"> |
| </p> |
| <p> |
| <a href="../reference/ref-view-package-explorer.htm">Package Explorer</a> |
| </p> |
| |
| </body> |
| </html> |
| |