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 |
if we define fiscal year varient with alphabet z it shows an error while creating asset master why?
how to run the application using winrunner for data driven test?
who have build this website?
Answers for Complete This Song B_C_A_A _IL K_A KA_E, S__AN J__E B__D_ J__E
how to overload main method in java?
hi, i am trying to do modular test tree in winrunner but i am getting error like "Error in the Expression list",can you please tell e what kind of error is this? thanks.
How much time will be display the inscription www.example.pl int i =0; for (i=0;i<=0x32;i++) i+=0; i--; for (int i2 = i; i2 < 100;i2++){ System.out.println("www.example.pl"); } What is the answer ?
Wen ever i use IE=createObject (Ineternetexplorer.application) QTP just navigates to the URL mentioned but doesn't recognise the USErname and Password field so the test fails.. But wen i just record and use system.util "iexplore" the code recognises and the tst passes, but here it works fine sometimes and sometimes the test just fails and aftersometime i run it works.. so its not consistent,,, any suggestion
hi my name is sridhar,i hv completed my sap in fico.m getting confused how to get a job though m a fresher.please anybody do me help,m staying in bangalore
U have 8 balls, all have the same in size, 7 have same weight & 8th have weight slightly more.How can u find the ball which have slightly more weight by using a balance & only 2 weightings ?
How can be avoid the Error while being Human we do mistakes???
well i dont have toefl and gre scor all that stuff, and i have 7 backlogs, tell me the chances of getting the visa.