New Swing Interview Questions :: ALLInterview.com http://www.allinterview.com New Swing Interview Questions en-us can we create a object in static block class A { static { A a=new http://www.allinterview.com/showanswers/71111.html Yes, we can create a object in static block Difference between ligt weight and heavy weight? http://www.allinterview.com/showanswers/70942.html 1. Heavy weight components are always Rectangle in shape while light weight may or may not. 2. Heavy weight components borrows the native screen to paint their components while light weight render their components by their own screen painting A when i run Frame program, it display output in supparate window.i tr http://www.allinterview.com/showanswers/68595.html By default the close button of the frame is not in working state.The close button of the frame has to be set for the desired operation (i.e. closing the frame). Set the close button functionality to close the frame or window. This is done usin how to give transparency to JComboBox,JList and JTable http://www.allinterview.com/showanswers/61550.html by setOpaque(false) How to merging the particular cells in JTable http://www.allinterview.com/showanswers/61549.html TableCellRenderer renderer = aColumn.getHeaderRenderer(); or u can modify the code TableCellRenderer renderer = header.getDefaultRenderer(); how to give transparency for JComboBox,JListBox and JTable http://www.allinterview.com/showanswers/61548.html setOpaque(false) how can u handle runtime exceptions in java plz explain with example http://www.allinterview.com/showanswers/61244.html You can catch runtime exceptions in try catch block but generally runtime exceptions are unchecked exceptions and are not in control of a candidate to handle what is difference between checked and unchecked exception plz expla http://www.allinterview.com/showanswers/61243.html CHECKED EXCEPTION IS TO BE HANDLED BY USE TRY AND CATCH EXCEPTION....THAT HAS TO BE THROWN AND CATCH USEING THIS EXCEPTION...WERE AS UNCHECKED EXCEPTION IS RUN TIME EXCEPTION. THIS EXCEPTION IS NOT CHECKED AT THE TIME OF COMPILATION HENCE IT CA what do u mean by GUI framework http://www.allinterview.com/showanswers/58690.html GUI provide a "picture-oriented" or "Graphical" way of interacting with the system.They are easy to learn and use.Microsoft Windows which supports GUI.As of today,all operating systems provides a Graphical user Interface.A what do u mean by GUI framework http://www.allinterview.com/showanswers/58689.html It provides you the better look & feel.UI is desgned by awt and swing component however swing component GUI is more powerfull than awt.Through the GUI user can intract with easily. when we right click on the JTable using mouse it works properly but http://www.allinterview.com/showanswers/58282.html public void mouseClicked(MouseEvent e) { if(e.getButton()==e.BUTTON3) JOptionPane.showMessageDialog(null, "Mouse right click"); } With the help of above u can easily get when you right click on jtable what is the diff's between swing and applet? http://www.allinterview.com/showanswers/29204.html Swing is a light weight component whereas Applet is a heavy weight Component..Applet Does not require main method ,instead it needs init method. What is the difference between AWT & Swing? http://www.allinterview.com/showanswers/27904.html AWT are heavy weight components while Swing are light weight components. what are the root classes of all classes? http://www.allinterview.com/showanswers/11536.html API(applicaton programming interface) What is the use of JTree? http://www.allinterview.com/showanswers/2380.html JTree is one of component which is used to display the items in tree view.