Before somebody starts developing the applications, make sure that JAVA SDK along with NetBeans IDE is installed on our computer.
After downloading you can install the software. Once the software is installed, now let us go through all 5 components after installation. After installation of the software, we can start working on it by following these steps as follows
2. All Programs
4. NetBeans IDE
Initially, wait for a while till the program(NetBeans IDE) window opens in the fully functional mode. It consists of many features & by using it we are able to prepare all type of programs (Desktop Application & Web Application) and games also. Let us discuss the components one by one which are as follows:
- Title bar
- Menu bar and pull-down menus
- GUI building
Component 1: Title Bar
It displays the title of the application. Netbeans will give names as JavaApplication1, JavaApplication2,………..etc., to your project, random arbitrary is pictorially shown below
Component 2: Menu Bar and Pulldown Menus
The environment if working is the same as that of familiar with menu bars as you have worked with MS – Windows operating system. A menu bar is displayed directly below that title bar and includes a lot of options. Each option on the menu bar has a drop–down list of items (known as Pull-down menus) that help you perform various tasks.
Component 3: Tool Bar
A toolbar is a bar that displays icons for commonly used tasks. The standard Toolbar of Netbeans IDE displays icons for the most frequently used commands in NetBeans.
Component 4: GUI Building
Also called Design Area or Design Space. The Design Area is where you will visually construct your GUI. It is the primary workspace within which GUI design takes place in the IDE. The GUI Builder enables you to layout forms by placing components where you want them and by providing visual feedback in the form of guidelines. It has 2 views : source View and Design View. Design View is the default, as shown above. The Source View opens the code editor for you where you can add/edit the code for your application. You can toggle between views at any time by clicking their respective tabs.
Component 5: The Palette
The palette contains all the components needed to create GUI applications. Before discussing Palette, let us talk about windows/frame and controls.
A–Frame is a window that typically has decorations such as a border, a title, and buttons for closing and iconifying itself. A GUI application typically uses at least one frame. Frames are used to display things like labels, Text Fields, Buttons, and other Controls
Controls are component objects such as text Fields, labels list boxes, etc., that are drawn on the frame to get data input or to display output. After introducing frames and controls, let us now talk about Palette As you can see in the figure below that a Palette displays a set of component tools that may be used to place controls on a frame.
5(c) Inspector window
This window displays a tree hierarchy of all components contained in the currently opened from. Displayed items include visual components and containers, such as buttons, labels, menus, and panels, as well as non-visual components such as timers and data sources.
5(d) Property window
This window displays the editable settings for the currently selected component. The figure on your right shows the property Editor for a JFrame object.
5(e) Code Editor window
The code editor window is where you write Java code for your application. By code, we mean language statements, constants, and declarations. The Code Editor window servers as an editor for entering application code. A separate code editor window is created for each top-level frame that you create in your application. Using the code Editor Window, you can quickly view and edit any of the codes in your application. To open the Code window you can Double-click the control for which you choose to write code. Or from the GUI Builder window, click on the source tab. You may also press ‘Ctrl + Alt + Page UP/Page Down’.
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.