7,116 Posted Topics

Member Avatar for jnora
Member Avatar for PhiberOptik
Member Avatar for VernonDozier

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]

Member Avatar for VernonDozier
0
547
Member Avatar for spec80

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

Member Avatar for spec80
0
124
Member Avatar for jhonny_86

This [url]http://djproject.sourceforge.net/ni/index.html[/url] may be just what you're looking for.

Member Avatar for JamesCherrill
0
565
Member Avatar for Thamizh Bharat

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.

Member Avatar for JamesCherrill
0
436
Member Avatar for olgratefuldead

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 …

Member Avatar for olgratefuldead
0
156
Member Avatar for notuserfriendly

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.

Member Avatar for notuserfriendly
0
198
Member Avatar for erdomester

[CODE]class HeightStats{ ... public String toString() { return "Age= " + age + " heights= " + h1 + " " h2 ..... ; }[/CODE]

Member Avatar for erdomester
1
154
Member Avatar for tlmiller9278

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 …

Member Avatar for JamesCherrill
0
146
Member Avatar for l_03
Member Avatar for JamesCherrill
0
134
Member Avatar for ppp83

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 …

Member Avatar for danielernesto
0
138
Member Avatar for shahab.burki
Member Avatar for BrianK123

[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

Member Avatar for BrianK123
0
191
Member Avatar for jhonnyboy

Rajibcuet10 Do not hijack someone else's old thread. Start your own new thread and provide enough info for someone to help.

Member Avatar for verruckt24
1
478
Member Avatar for razibcse
Member Avatar for jwenting
0
96

The End.