sasasateesh Profile

Join Date:

Blogs Owned

1 - sasa java

learn java only

Visit Follow

Other Tags: sasa, java, blog, computers, java, sasa, computers, tutorials

Latest Blog Posts

  • Border Layout
    on Jul 8, 2010 in border swings
    BorderLayout divides the container into five Geographical regions namelyNorth,South,East,West and Center.This is very commonly used LyoutManager.You can add at most one component to each region of a BorderLayout.To put more than one component in a se...
  • Card Layout Manager
    on Jul 8, 2010 in swings
    One of the most complex Layout Manager is Card Layout manager.Using this manager you can create a stack of cards and flip from one layout to another.This type of organization is similar to tabbed dialogs.Card Layout provides following Costructor...
  • Grid Bag Layout
    on Jul 8, 2010 in swings grid
    The GridBag Layout manager is the most flexible and complex layout manager that the AWT provides. It places components in rows and columns allowing specific components by assigning weights to individual components in the gridbag layout.When you speci...
  • JButton
    on Jul 8, 2010 in swings jbutton
    JButtonJbutton is the standrad command button used in Java.It is mainly used for event driven programming.A JButton when clicked fires an event which is handled by an event handler which in response do some work as indicated in hadler.On click the JB...
  • JLabel
    on Jul 8, 2010 in swings jlable
    JLabels in Swing can contain text, images or both. JLabel do not generate an action event though it works on Mouse Events.Like MouseMotion,MouseListener etc. We can also add non-functional labels in our interface(GUI). You can als...
  • JTextField
    on Jul 8, 2010 in jtext swings
    JTextFieldA text field is a basic text control that enables the user to type a small amount of text.The text field is editable. It is handy in cases where a single line of input is required or a little information is neede.It is mostly used in f...
  • Setting ToolTip and Icon
    on Jul 8, 2010 in swings
    Adding Icons and ToolTipsTooltips are shot information messages which are displayed when your mouse pointer rests at some components.That is if suppose your mose pointer is at a button whose tooltiop is set as "click here" the if your pointer comes o...
  • Setting Mnemonics and Shortcut Keys
    on Jul 8, 2010 in swings
    Setting a Shrotcut Key(Mnemonic)A shortcut key is an underlined character you may in labels,buttons,menus etc.These are called as mnemonics.You can select a control by pressing the combination of Alt key and the character.For example if underlined ch...
  • DropDown Menu or Choice menu
    on Jul 8, 2010 in swings
    DropDown Menu or The Choice classA choice menu is a dropdown menu which upon clicking presents a list of menus(choices) from which user may choose one.That is when a user clicks on the choice control a list of option drops down from which a user can...
  • How to create and use Check Boxes
    on Jul 8, 2010 in swings
    CheckBox is a unique java control which lets user select one or more options.This control becomes handy where some sort of selection is to be made.I will explain here the CheckBoxes In Java Swings.Which are created using JCheckBox class.Constructors:...
  • How to Use CheckBoxGroup
    on Jul 8, 2010 in swings
    CheckboxGroup class is used to group togather the Checkboxes,from which only one can be selected at a time.That is exactly one Checkbox in that goup will be "on" else remain "false".By clicking on Checkbox we may "on" or "off" the desired Checkbox.Th...
  • Using JTextField and JTextArea
    on Jul 8, 2010 in swings
    TextFields are used to take input from user also it can be used to display results.The various constructors and methods are defined in the previous JTextField tutorials.Values from a TextField is extracted using String getText() and set usi...
  • Loading Image on JFrame using JFileChooser
    on Jul 8, 2010 in util swings
    JFileChooser is a very handy utility in java Swings to choose any particular file of an extension.Sometimes in our applications we need to load images onto our main container .In java we can use either JFrame or JPanel to load images.Statically...
  • Menus In Java Swings
    on Jul 8, 2010 in swings
    Every window can have a menu associated with it.Menu Bars basic function is to provide a list of choices.Each choice has its own drop-down menu(is provided otherwise none).This is implemented in Java by using following classes:-MenuBarMenuMenuItemChe...
  • How to create MenuBar Steps
    on Jul 8, 2010 in swings
    How to create Menu and MenuBars Step wise procedure1.Create an object of MenuBar class:MenuBar can be attached a Frame and it will be displayed just below the title bar.MenuBar mb=new MenuBar();2.Call the method&nbs...
  • How to create pop-up menus in Java
    on Jul 8, 2010 in util swings
    Pop-up menus are the menus that are displayed when a user clicks the right mouse button.They are sometimes also known as short-cut menus.Short cut menus are very handy in cases where some functionality you want to provide like adding a help menu to a...
  • Adding Border in Swing Application componenets
    on Jul 8, 2010 in swings
    The Border class is in javax.swing.border package.Make sure you have imported the package before using borders in your application.You can add borders to components by using setBorder() method.This me...
  • Using Tabbed Panes in Java Swings
    on Jul 8, 2010 in swings
    Tabbed panes are just like property sheets in windows environment.Using tabbed pane you can create multiple panels that are visible in a single area.A Tabbed pane consist of series of Tabs.These tabs are present on the basis of categories of informat...
  • How to Set Icons on Swing Buttons
    on Jul 8, 2010 in swings
    Swing Buttons provides many exclusive features that are not found in the Button class defined in the AWT package.Swing Buttons are the subclass of AbstractButton class,which extends JComponent.You can always associate an icon of your choice with a Sw...
  • How to use Swing Scroll Panes
    on Jul 8, 2010 in swings
    A Scroll Pane is a component like JFrame or JPanel which is used to add other components but Scroll Pane has a Scroll Bar Associated with it which is a unique characteristic of this component Container.Scroll Panes are implemented in swing by JScroll...