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.



hai this is shanthi, is this code right? please check and correct the lines. import javax.swing...

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

Post New Answer

More Scripts Errors Interview Questions

Nowadays there is a discussion that tajmahal was not built by shah-jahan..... Is it true...........?

7 Answers  


Dear HCM Gurus: I am facing a problem in PCR as per decisive about deduction wage type restricted as per Government rules that if an employee payment period is < then 15 days then deduction are not required to made from employee, Nomenclature of PCR is: RTE=TKDIVI RTE/2 RTE?TKSOLL < PPPAR U Unpaid absences duing Payroll Period *ADDWT U THEN RTE=TASOLL RTE-GAAU04 RTE*2 RTE?TKDIVI < ADDWT& Variable Table = ADDWT* OT TABLE > ADDWT* OT TABLE SO aforesaid mentioned PCR is applied so when employee Leaving action has been performed on 01.10.2010 and rentry into company is performed on dated 11.10.2010 So sytem is not displaying deduction wage type in LPC but if we perform leaving action on 16.10.2010 then all deduction displayed proportionately because from 01.10.2010 to 16th payment days fullfills but client is insisted that employee leaved company on 01.10.2010 and rejoin company on 11.10.2010 and by this way he worked 21 days in this month thus payment period is not less rather more than 15 days and system should have made deductions. Kindly guide me that how included PCR with Rejoining into comapny so pleases explain nomencalture of PCR if an employee rejoin the company and his payment period fullfill requirement. Kindly help Regards Barket Ali Zafar SAP HR Consultant Siemens Engineering Co Ltd PIFRA Project ,Islamabad +92-300-5521524

0 Answers  


what is infopakage error

0 Answers  


what is employee MAPPING in recruitment...?

1 Answers   HCL,


how to overload main method in java?

0 Answers  






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.

0 Answers  


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?

0 Answers  


sap sd;error 'pricing procedure could not be determined"

2 Answers   TCS,


what are the test cases for ticket vending machine?

0 Answers  


If i need use vcredit or checque payment in form what should i do? Plz reply

1 Answers  


pleasesend which type of the books to indian banks clerks& what is topics pleases mailme

0 Answers  


write a program whose output will be- 1 12 123 1234 12345 in assembly language

2 Answers  


Categories