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 |
sir,please send Indian Bank clerk post examination question / answers(last 5 years)
1 Answers Indian Bank, Raj Construction,
I am Recording the QTP Script..the Script is below VbWindow("mdiPP").VbWindow("frmPOSOLocking").ActiveX ("SSTab").VbListView("lstPO").SetItemState "272 [10-11]", micChecked. After when when Run then give error property not found.
Please anybody help , i am trying to change the fiscal year in transaction code OKEV. But the note appear "client 100 has status not modified" pls help me how to make it modified. thanks
can a merchant exporter adjust or claim refund of input service tax ??
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
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])
How can be avoid the Error while being Human we do mistakes???
What is the use of WINS? How to work it?
I have got one job selection order from DECON ENGG(HRD), he told me to send 2000 rs of demand draff i have send the demand draff after some time a got a job selection order in banglore but he have written that u have to give 550 rs of Guidency fees in bangalore i dont understant what to do
What is the difference between return code and completion code. When i was searching in the direct for the problem, the following errors displayed. Please can any1 explain these. Completion Code => 4 Message Id => XXDR012I Short Text => XDR field overflow. Key=SER. Len=8. Completion Code => 8 Message Id => XSQF009I Short Text => Sys call open() failed.Filename=/opt/apps/cdt3/USA/outbound/CD810O.errno=17. Completion Code => 8 Message Id => XCPR010I Short Text => Open failed for copy in OPEN_DEST_DATA. Errno=17. can you explain those 3 completion codes and also with difference between return code and completion code
I have a problem with my notebook (Vista), when I turn on the pc this error comes up: Error loading C:\Windows\system32\byXnNDvt.dll Help me to solve this problem please!!