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 Posted / 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 |
Post New Answer View All Answers
when will we use lsmw , bdc and bapi? which will be easy to use and which is used for which type of data
Answers for Complete This Song B_C_A_A _IL K_A KA_E, S__AN J__E B__D_ J__E
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 to run the application using winrunner for data driven test?
//jobname positional parms,keyword parms,.... Restart=step3 //.. //.. //.. //step3 exec=xxxx //... //step4 exec=yyyy,cond=(0,Le,step3) //.. //step5 exec=zzzz Restart =step 3 executes step3.Step 3 gives some return code.In step 4,the test is passed as 0 is less than step 3.So step 4 is bypassed and is not executed. and the program is responsible for issuing the return code that was not even loaded in the main storage. The result: no return code can exist In the steps that follow any test of COND parameter tat attempts to interrogate this non-existent return code will be ignored . Step 5 will be e executed. IN THIS EXAMPLE WHAT DOES XXXX YYYY ZZZZ MEAN?? PLEASE CAN ANYONE SAY...
When I look for mannual enry of any of the command in Unix, such as #man ls, I get a message "Reformatting entry. Wait..." and control comes to a next command prompt. what is the problem?
For pH-4 calculation it is subtracted from the previous pH7 buffer value is the same procedure to be followed for calculation of remaining buffers??
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.
during the rebate processing i got error that THE SALES VOLUME FOR AGREEMENT <101> IS NOT CURRENT.SO HOW TO RESOLVE THIS ISSUES?
hai i got one error i,e http status 404 error what is ds why ds is comming
If Fi account is assigned to cost element categorie poatings are not possible it is giving error that cost element has to be assigned to a co object whts the solution for this error?
how do i copy first 10 records from one sequntial file to another sequential file by using JCL program?
wut is pre law
after going to service throw to administrator tools service promp are not opening
well i dont have toefl and gre scor all that stuff, and i have 7 backlogs, tell me the chances of getting the visa.