Search

Tuesday, December 17, 2013
0 comments

How to Use Properties Window to Change Control’s attribute: Java Programming

8:34 AMTuesday, December 17, 2013
The controls/objects that a programmer draw on frame/window have some properties associated with them. Each control have its own properties with some common to other controls, which NetBeans enables to change.

The Properties Window provides an easy way to set properties for all objects in a frame/window. To open the Properties Window (if it is not open), choose the Properties command from the Window menu. You may also press the shortcut key for it which is: Control + Shift + 7.

 How to Use Properties Window to Change Control’s attribute: Java Programming

A property can be of any type such as integer, string etc. These can be set by either a simple textbox or a dropdown list. The whole thing is properties window consist of the following elements:

  • Title box Displays the name of the object for which you can set properties.
  • Properties list The left column under Properties Tab, displays all of the properties for the selected object. You can edit and view settings in the right column.

As in previous article we have name a control using inspector window, now the same thing can be done through this properties window in following simple steps.

  • In the Properties window, from the Properties list, select the name of a property.
  • Type in the right column, or click more to type or select the new property setting.

The below image shows the operation of name a control by properties window. The next article will cover up about some components, events and listeners mostly used in java programming.

 How to Use Properties Window to Change Control’s attribute: Java Programming


Protected by Copyscape Online Copyright Protection Software

0 comments :

Post a Comment

 
Toggle Footer
Top