Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

when will we use lsmw , bdc and bapi? which will be easy to use and which is used for which type of data

2561


Answers for Complete This Song B_C_A_A _IL K_A KA_E, S__AN J__E B__D_ J__E

3262


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.

2394


how to run the application using winrunner for data driven test?

2452


//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...

2907


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?

2522


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??

1677


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.

2476


during the rebate processing i got error that THE SALES VOLUME FOR AGREEMENT <101> IS NOT CURRENT.SO HOW TO RESOLVE THIS ISSUES?

3534


hai i got one error i,e http status 404 error what is ds why ds is comming

2651


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?

2839


how do i copy first 10 records from one sequntial file to another sequential file by using JCL program?

2781


wut is pre law

2770


after going to service throw to administrator tools service promp are not opening

2337


well i dont have toefl and gre scor all that stuff, and i have 7 backlogs, tell me the chances of getting the visa.

2559