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

Any body can tel me how to display a Frame Link of a page in Another Frame? For Clearance of my dought..... I designed a BSP page with 3 frames as shown below. -------------------------------- | | | Frame 1 | | | -------------------------------- | Frame 2 | Frame 3 | | | | | Link 1 | | | Link 2 | | | Link 3 | | | | | -------------------------------- Now in Frame 1 i displayed one page.. And in Frame 2 i displayed one page with some links. Now when i clicked on any Link in Frame 2 that corresponding Page has to display in Frame 3. In general HTML i know...But in BSP i don't know that much since i am new to this... plz any solutions...thanks a lot.... Regards, Shankar.

1913


How can be avoid the Error while being Human we do mistakes???

2102


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

2388


Account GOLD-100200 not allowed to be defined as reconciliation account Message no. AC309 Diagnosis Account 100200 is defined as a reconciliation account for fixed assets for chart of accounts GOLD and account determination 11000. This is not correct in the circumstances (Accumulated depreciation account for ordinary depr). Keep in mind that the Customizing definition of the given depreciation area also influences the consistency check of the G/L accounts. This is particularly true for the posting settings in the depreciation area, if the accounts are value adjustment (depreciation) accounts. Procedure Change the account definition, or assign a different account. ERROR MESSAGE “Account INT-160600 not allowed to be defined as reconciliation account” . Message No.: AC309 ANALYSIS The above error message occured when saving the configuration changes in “Acquisition from affiliated company” through config transaction AO90. Here’s the configuration path that prompted the error: Path: IMG → Financial Accounting → Asset Accounting → Integration with the General Ledger → Assign G/L Accounts. Transaction Code: AO90 G/L account 160600 is entered in the highlighted “Acquisition from affiliated company” field. Upon saving the configuration change, the above error messageprompted. Do note that g/l account 160600 has been defined as reconciliation account type for asset. Here’s how it is set- up. SYSTEM DIAGNOSIS Account 160600 is defined as a reconciliation account for fixed assets for chart of accounts BPPH and account determination 1000. This is not correct in the circumstances (Clearing acct: Acquisition from affiliated company). Keep in mind that the Customizing defination of the given depreciation area also influences the consistency check of the G/L accounts. This is particularly true for the posting settings in the depreciation area, if the accounts are value adjustment (depreciation) accounts. SOLUTION & PROCEDURE If the g/l account entered is correct change the settings of g/l account 160600. Do not set it as reconciliation account, just leave the reconciliation account type blank. Otherwise, create a new g/l account that will be used as intercompany transfer clearing account. The new g/l account should not be set as reconciliation account. You must be logged in to post a comment. • F Asset accounting account determination natandycanada asked Sep 3, 2009 | Replies (5) Hello I am building the asset accounting account determination. When i enter the GL account for Account determination i get the message: reconciliation account is not allowed!!! (. SAP message AC309 )has anyone come across this message? I checked the depreciation area definition and all should be good. I am on ECC6. Thank you Join this group Popular White Paper On This Topic • 2011 ERP (Enterprise Resources Planning) Comparison Guide 5 Replies 1 Anuj Purwar replied Sep 4, 2009 Hi, Assign a P&L account for depreciation posting. Thanks. _____ 1 natandycanada replied Sep 4, 2009 I do have a P&L account Andy Maoulaoui 0 Ron Roberts replied Sep 4, 2009 Help us ouot with a little more detail. What G/L account are you trying top assign? Depreciation expense? Asset account? Accumulated depreciation account? Gain/loss on disposal P&L account? Other? 1 natandycanada replied Sep 5, 2009 I am assigning an accumulated depreciation account. this account is naturally a reconciliation account. all other accounts can be entered without any error. When i enter the accum depreciation account in depr area 01 (post to legder 0L) the system give the message that reconciliation account is not allowed. when i enter the accum dep account in dep area 02 ( posting to non leading ledger) i dont get the error. Andy Maoulaoui White Papers and Webcasts Popular • The Evolution of ERP and What it Means for Business Related • Gain IT asset visibility, control and automation • SMB Accounting SaaS Comparison Guide • Shifting the B2B Marketing Paradigm from Contacts to People: ... More White Papers 0 Gearoid Pierse replied Dec 4, 2009 Hi everyone - I am getting the same problem when putting in an accumumated depreciation account in the customizing for depreciation area 01, I get *** (message AC309 "Account 1100250 is defined as a reconciliation account for fixed assets for chart of accounts OPER and account determination AD400. This is not correct in the circumstances (Accumulated depreciation account for ordinary depr).Keep in mind that the Customizing definition of the given depreciation area also influences the consistency check of the G/L accounts. This is particularly true for the posting settings in the depreciation area, if the accounts are value adjustment (depreciation) accounts. *** However, I can assign my accumulated depreciation account 1100250 (which has the recon account "A" (assets) setting no problem for depreciation area 20. If I take away the recon account setting in the G/L account I get a different error message

10010


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

2208






hii..i am doin a project called Forecaster..wat it does is it asks user to enter a zip code..then it establishes urlconnection with a weather website n fetches data n data is converted into graphical representation..but it doesnt show any output..i am not able it figure out the reason..can u plzzzz help me out..i am givin u code import java.io.*; import java.awt.*; import java.net.*; import java.awt.image.*; import java.awt.event.*; public class Forecast extends Frame { OkCancelDialog textDialog; BufferedImage image = null; public static void main(String[] args) { new Forecast(); } public Forecast() { String zip =""; File zipFile = new File("zip.txt"); String hiTemperature[] = new String[4]; String loTemperature[] = new String[4]; try { if(zipFile.exists()){ FileReader filereader = new FileReader("zip.txt"); BufferedReader bufferedreader = new BufferedReader(filereader); zip = bufferedreader.readLine(); } else { textDialog = new OkCancelDialog(this, "Enter your five-digit zip code", true); textDialog.setVisible(true); zip = textDialog.data.trim(); FileOutputStream fileoutputstream = new FileOutputStream("zip.txt"); fileoutputstream.write(zip.getBytes()); } int character; URL url = new URL ("http://www.srh.noaa.gov/zipcity.php?inputstring=" + zip); URLConnection urlconnection = url.openConnection(); InputStream in = urlconnection.getInputStream(); String input = ""; String hiSearch; String loSearch; String inchar; char[] cc = new char[1]; while ((character = in.read()) != -1) { char z = (char)character; cc[0] = z; inchar = new String(cc); input += inchar; } in.close(); if(input.indexOf("Hi ") >= 0){ hiSearch = "Hi "; } else{ hiSearch= "Hi: "; } int currentPosition = 0; for(int loopIndex = 0; loopIndex < 4; loopIndex++){ int location = input.indexOf(hiSearch, currentPosition); int end = input.indexOf("°", location); hiTemperature[loopIndex] = input.substring(location + hiSearch.length(), end); currentPosition = end + 1; } if(input.indexOf("Lo ") >= 0){ loSearch = "Lo "; } else{ loSearch= "Lo: "; } currentPosition = 0; for(int loopIndex = 0; loopIndex < 4; loopIndex++){ int location = input.indexOf(loSearch, currentPosition); int end = input.indexOf("°", location); loTemperature[loopIndex] = input.substring(location + loSearch.length(), end); currentPosition = end + 1; } boolean evening = false; if(input.indexOf(loSearch) < input.indexOf(hiSearch)){ evening = true; hiTemperature[3] = hiTemperature[2]; hiTemperature[2] = hiTemperature[1]; hiTemperature[1] = hiTemperature[0]; } image = new BufferedImage(225, 201, BufferedImage.TYPE_INT_RGB); Graphics2D g = image.createGraphics(); g.setColor(Color.white); g.fillRect(0, 0, 224, 201); g.setColor(Color.gray); for(int loopIndex = 0; loopIndex < 21; loopIndex++){ g.drawLine(25, loopIndex * 10, 224, loopIndex * 10); g.drawLine(loopIndex * 10 + 25, 0, loopIndex * 10 + 25, 199); } g.setColor(Color.blue); Font font = new Font("Courier", Font.PLAIN, 18); g.setFont(font); for(int loopIndex = 20; loopIndex < 200; loopIndex += 20){ g.drawString(String.valueOf(100 - loopIndex / 2), 0, loopIndex + 5); } g.setColor(Color.red); if(!evening){ g.drawOval(65 - 4, 200 - (Integer.parseInt( hiTemperature[0]) * 2) - 4, 8, 8); } g.drawOval(105 - 4, 200 - (Integer.parseInt( hiTemperature[1]) * 2) - 4, 8, 8); g.drawOval(145 - 4, 200 - (Integer.parseInt( hiTemperature[2]) * 2) - 4, 8, 8); g.drawOval(185 - 4, 200 - (Integer.parseInt( hiTemperature[3]) * 2) - 4, 8, 8); if(!evening){ g.drawLine(65, 200 - (Integer.parseInt( hiTemperature[0]) * 2), 105, 200 - (Integer.parseInt(hiTemperature[1]) * 2)); } g.drawLine(105, 200 - (Integer.parseInt(hiTemperature[1]) * 2), 145, 200 - (Integer.parseInt(hiTemperature[2]) * 2)); g.drawLine(145, 200 - (Integer.parseInt(hiTemperature[2]) * 2), 185, 200 - (Integer.parseInt(hiTemperature[3]) * 2)); g.setColor(Color.blue); g.drawOval(65 - 4, 200 - (Integer.parseInt( loTemperature[0]) * 2) - 4, 8, 8); g.drawOval(105 - 4, 200 - (Integer.parseInt( loTemperature[1]) * 2) - 4, 8, 8); g.drawOval(145 - 4, 200 - (Integer.parseInt( loTemperature[2]) * 2) - 4, 8, 8); g.drawOval(185 - 4, 200 - (Integer.parseInt( loTemperature[3]) * 2) - 4, 8, 8); g.drawLine(65, 200 - (Integer.parseInt(loTemperature[0]) * 2), 105, 200 - (Integer.parseInt(loTemperature[1]) * 2)); g.drawLine(105, 200 - (Integer.parseInt(loTemperature[1]) * 2), 145, 200 - (Integer.parseInt(loTemperature[2]) * 2)); g.drawLine(145, 200 - (Integer.parseInt(loTemperature[2]) * 2), 185, 200 - (Integer.parseInt(loTemperature[3]) * 2)); g.setColor(Color.white); g.fillRect(55, 160, 140, 30); g.setColor(Color.blue); g.drawRect(55, 160, 140, 30); font = new Font("Courier", Font.PLAIN, 12); g.setFont(font); g.drawString("Four-Day Forecast", 65, 172); font = new Font("Courier", Font.PLAIN, 9); g.setFont(font); g.drawString("Source: Nat. Weather Srvce.", 58, 185); setTitle("The Forecaster"); setResizable(false); setSize(250, 240); setVisible(true); this.addWindowListener(new WindowAdapter(){ public void windowClosing( WindowEvent e){ System.exit(0); } } ); } catch (Exception e) { System.out.println(e.getMessage()); } } public void paint(Graphics g) { if(image != null){ g.drawImage(image, 10, 30, this); } } } class OkCancelDialog extends Dialog implements ActionListener { Button ok, cancel; TextField text; public String data; OkCancelDialog(Frame hostFrame, String title, boolean dModal) { super(hostFrame, title, dModal); setSize(280, 100); setLayout(new FlowLayout()); text = new TextField(30); add(text); ok = new Button("OK"); add(ok); ok.addActionListener((ActionListener)this); cancel = new Button("Cancel"); add(cancel); cancel.addActionListener(this); data = new String(""); } public void actionPerformed(ActionEvent event) { if(event.getSource() == ok){ data = text.getText(); } else { data = ""; } setVisible(false); } }

1923


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

2110


according to class7 how can we give description on pendrive?

1987


Sir, I apply sbi clerk exams(07/09/09)But I did a mistake to enter my date of birth(correct 04.01.1985 / wrong 04.01.1984).please give me suggestions please. Thanking you, Bhushan.B

1657


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

2022


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

1915


When ever i log onto tce and i join a sever such as Or killzone i can only play for a certain amount of time before i get kicked. it says that i have been disconected from server for unknown reason. i cant seem to figure it out. i tried turning off my fire wall, but didnt work. please if you can give me any info on what to do it would help alot. Thanks.

2091


Jetking is C C

2203


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

2539


I would like to if there is any vb script to populate my values in the application.Example i will input the data in two 2 rows a & b.I need script where the data in a or b have to populate in my application if my a = nothing and b = 1 or a = 1 or b = nothing.I would be glab if someone can help me here.

1885