![]() Step 10: You can change the attributes of the elements by double clicking on them, it opens source tab with cursor at the selected elements code.The properties like font, background color can changed properties pane in the left corner or by modifying the source code Note:To add the scroll bar to the text area first drag drop the jscrollpane and then add the jtextArea element to the jscrollpane The following is the screenshot of the sample window application (After adjusting the size of the elements) For the sample application, Jbutton, JTextArea have been selected. Step 9: Now drag and drop the button onto the Jframe. To set layout, right click on the window frame and select " set layout " and select the appropriate layout and for the sample application " absolute layout " is selected Step 8: This application is developed using the absolute layout. The application displays line wise diff output of two versions of the program in natural language format. Step 7: The sample swing application is developed to add elements -> a Jbutton and a JtextArea, these elements can be added to the window by selecting the elements in the palette and dropping the element in right sample window. Step 6: Now the UI panel selection window opens up.You can drag drop the UI item on the sample screen and click on the " Source tab " to edit the UI related code Step 5: A class with some existing code is created and now to use the window builder click on the " Design tab " at the bottom of the editor. Step 4: Now select the package and click on the new visual class option in the tool bar and select Swing -> select JFrame and give a name to the class and click finish button. (Note: Steps for new java package, File menu -> New -> Package) ![]() Step 3: Create a new package in the src folder. Step 2: Give a project name click finish. (Note: Steps for new java project creation, File menu -> New -> Other -> Select java project) Step 1: Create a new Java project by selecting " java project " from the Select a wizard and click on Next button. Step 8: To verify that installation is complete select the new visual class option you can see options Swing and SWT Step 7: Restart eclipse once installation is complete by selecting yes in the following window. Step 6: Select on the " I agree to terms of the license agreement " radio button and click on the finish radio button. Step 5: Click on the next button and the review items to be installed window will be displayed Step 4: From the options under the " General purpose tools " select the item show in the screenshot and click on the next button. Step 3: Select the " General purpose tools " by expanding it. This sample installation is on Eclipse Kepler (4.3 version)). ![]() (Note : Depending on the version of eclipse use the link - when you type in the link it gets autocompleted for the version of eclipse you are using. Step 2: Select the Help Menu -> Select the " Install new Software " and type in the following link in the " Work with " field Step 1: Open Eclipse, Make sure all the open projects are closed ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |