Its working. Now i am trying to setLayout as "null" for dialog box which is a parent frame and place few components on it. What i see is dialog box is empty and no components are seen. When i comment line (1) and line (2) as shown in code, it works fine but without layout. Please let me know how can i set layout.
If you set a JPanel's layout to "null" and then add a component to the JPanel, you are fully responsible for setting the component's position and size (often done with a call to the component's setBounds() method).
I advise against your using null layouts unless you have a very good reason to do so.
Hi, The code mentioned in previous mail is not accepting any changes if i comment line (1) and (2) as mentioned in code. 1. I tried using Border layout but no changes are reflected. 2. I am trying to change the title bar color by using the following line of code but no changes are reflected:
hi, I have include the code for changing title bar color, i.e., lines (a) and (b), after my dialog box instance is created. Here my dialog box is a parent frame. Yet changes are not reflected in my code.