hai this is shanthi,
is this code right? please check and correct the lines.
import javax.swing.*;
import java.awt.*;
class Flow extends JFrame
{
JButton b1,b2,b3,b4;
JPanel p;
FlowLayout FL;
Flow()
{
FL=new FlowLayout(FlowLayout.RIGHT,20,20);
b1=new JButton("button1");
b2=new JButton("button2");
b3=new JButton("button3");
b4=new JButton("button4");
p=new Jpanel();
p.add(b1);
p.add(b2);
p.add(b3);
p.add(b4);
p.set Layout(FL);
getContentPane().add(p);
setSize(400,400);
show();
}
public static void main(String args[])
{
new=Flow();
}
}
but i have an error in p.set Layout(FL); in this line.
i tryed all the ways but it showing the in this line only.
please check and correct it.
Answer / vicky
"new=Flow(); "
this statement might be a wrong. u can wr8 like,
"flow f1=new flow();"
and if u got error in p.setlayout(FL) then, u wr8 following code
p.set Layout(FL=new FlowLayout(FlowLayout.RIGHT,20,20));
| Is This Answer Correct ? | 0 Yes | 0 No |
I want singal maintainer(iii& ii) solved question paper in every year in every board in rrb. If you collect these and sent these my mail-id i shall very grateful to you.
pleasesend which type of the books to indian banks clerks& what is topics pleases mailme
sap sd;error 'pricing procedure could not be determined"
i have SAP B1 in my work area When i am try to hold the particular item the following ERRORS display in my System (This entry already exists in the following tables '' (AIT1) (ODBC -2035) [Message 131-183])
sentence- the teacher told that the students should have gone to the library instead of having wasted their time.
hi all, I am in the process of learning qtp. i havve windows vista in my system whenever i try to run flight reservation application , i am getting the following error "Operation must use an updateable query Fractional truncation (null) . And am unable to open Mercury tours web application due to some other error Can anyone help me please
The employee runs big client-server applications and must quickly transfer large files. The company wants the best cost/benefit on this connection. What would be the most practical solution?
who was first "woman" cheaf-minister in india and which state ?
4 Answers Hindustan Unilever Limited,
What is Virus? plz give me full description
Answers for Complete This Song B_C_A_A _IL K_A KA_E, S__AN J__E B__D_ J__E
Red Hat Linux4.0 configuring in telnet server. Another one Linux system called via telnet . But not connecting in first system.
What is the major use of Servelet