7,116 Posted Topics
Re: Show us the source code where the error is located | |
Re: What value is assigned to cmd when you call this? | |
Re: This will work the way you want if you put your loop in a different thread from the Swing event thread. Replace your call [ICODE]mp.RandomAnimation ();[/ICODE] in actionPerformed with [CODE=Java]new Thread( new Runnable() { public void run() { mp.RandomAnimation (); } } ).start();[/CODE] | |
Re: In the constructor of Away you need to copy the bankaccount that's passed in to the local private variable bankaccount: [CODE=Java]this.bankaccount = bankaccount;[/CODE] ps Java naming convention says it should be called bankAccount | |
Re: This [url]http://djproject.sourceforge.net/ni/index.html[/url] may be just what you're looking for. | |
Re: They are stored as RGB or YUV as specified, but when you try to display them on an RGB screen it converts (if necessary) to RGB on the fly. | |
Re: Think about separating the logic and the UI fully. Java's an OO language, so use objects. Define a Tax object, with the taxable amount, tax bands etc as its instance variables, and the tax calculation as a public method. Include public "set" methods for the taxable amount and filing status … | |
Re: You need to post the exact error message and the line it refers to. Also format your code listing with line numbers so we can see exactly where the error is. | |
Re: [CODE]class HeightStats{ ... public String toString() { return "Age= " + age + " heights= " + h1 + " " h2 ..... ; }[/CODE] | |
Re: First error is that you have defined output(double amount, double interest, double payment, int term) but you call it with output(amount, interest, term, payment); ie params in wrong order. Second error is because you have a message and a type but no title - that combination doesn't exist in the … | |
Re: system.out.println(x); should be system.out.println(s[x]); | |
Re: Solutions like SAX are designed to cope with the worst-case complexity of an XML file. You probably don't need anything so complex. Look at the file; maybe you'll see that the names you need are prefixed by something like (for example) "<file><String>" and the file name continues up to the … | |
| |
Re: [QUOTE=BrianK123;806272]Thanks but I am not dealing with HTML. [/QUOTE] You may have missed the point here - JLabels automatically support most basic HTML items, so you use <BR> instead of \n in a JLabel | |
Re: Rajibcuet10 Do not hijack someone else's old thread. Start your own new thread and provide enough info for someone to help. | |
Re: bram.kamies This thread is 7 years old. Nobody is still waiting for an answer. Thread closed. |
The End.