|
Advertisement
|
Forum posts by Kondwani Mkandawire:Posted in Java Answers Forum, Jul 20, 2005, 6:28 PM
> Can anybody answer for the following questions,> I appriciate if you answer questionwise.,,Thanks> My attempt to respond to some of the questions> 1. Advavantages/Disadvantages/Performance in using Java> Applets vs JSP'sJust simply keep in mind that in *this response*what's an advantage to Applets is a disadvantageto JSPs and vice versa...
Posted in Java Answers Forum, Jul 19, 2005, 9:22 PM
Your code is really messy and difficult to read.Please place your code in pre tags, see thenote that comes up on your left next time youpost.My immediate guess is that execution never entersthe if statement.Stich a println statement just before it,if this comes out, its a simple matter oflogic (your if statement is never satisfied,hence...
Posted in Java Answers Forum, Jul 19, 2005, 6:00 PM
That's really odd.I use Java 5 with Hashtables all the time andit compiles perfectly.
Posted in Java Answers Forum, Jul 18, 2005, 10:36 PM
Google Swing Tutorial or Java MouseEvent Tutorial
Posted in Java Answers Forum, Jul 18, 2005, 10:34 PM
Could you *Please* indent your code!!Use the pre tags. Most of us get discouragedfrom reading messy code.
Posted in Java Answers Forum, Jul 18, 2005, 10:31 PM
Are you giving us your assignment or what??Anyways an Algorithmic suggestion: create A class that extends Thread. The job of this Thread when started will be to add up the two Arrays and return a Vector, and another Thread that will sort them. Fool around with it to implement your own kill methods when each Thread has finished its job...
Posted in Java Answers Forum, Jul 17, 2005, 6:51 PM
I might be wrong here, but would that notsimply involve using a Japanese Keyboard??
Posted in Java Answers Forum, Jul 17, 2005, 6:48 PM
Please enclose you your code in the pre tagand indent. Lack of indentition and neat format for mostof us, discourages us to even begin to lookat your code.Maybe you should repost with your codeembraced by the appropriate tags.
Posted in Java Answers Forum, Jul 17, 2005, 6:42 PM
That all sounds about right.
Posted in Java Answers Forum, Jul 13, 2005, 3:31 AM
How much of a machines memory is the JVMallocated by default? Reason I'm askingis coz before today, I din't think it waspossible to write a Java Program that couldcrash an entire Linux OS. I was curious and tried to re-run the program afterre-booting (it froze the entire system,couldn't even go to my F2 screen), afterrebooting, the program...
Posted in Java Answers Forum, Jul 13, 2005, 12:24 AM
Are you sure that would even get compilationStage?Have you tried it?Would it not complain about applyingf(java.lang.String, java.lang.String) to f(java.lang.Object,java.lang.String)?Haven't tried it but I've come across similarscenarios.
Posted in Java Answers Forum, Jul 12, 2005, 3:57 AM
My baad...Easier way, just used it myself: myComponent.setForeground(Color.TEXT_COLOR_I_WANT); // in your case everytime you want to change // Color you'll be doing the following textField.setForeground(Color.SOME_COLOR);
Posted in Java Answers Forum, Jul 12, 2005, 1:35 AM
Though I have no clue what flower brackets are, here's a suggestion:Try to define your own font with new Attributes.take a TextAttribute for which you define a foreground.classes that you'll probably need and should look up on the java apiwould be Font, Color, TextAttributes (and its Parent class).I must say that I'm not sure if this would work...
Posted in Java Answers Forum, Jul 11, 2005, 10:55 PM
Hi again:Am I right in assuming that if I null a Thread,it is cleaned up by garbage collection thusin effect killed? I understand, they actuallypersist, but an article by Bill Verners on JavaWorldclaims that when objects have no reference theyare cleaned up by the garbage colletor.Please help me understand this because I'mwriting an app, for...
Posted in Java Answers Forum, Jul 11, 2005, 9:44 PM
My baad, the Swing vs. Applet aspect is resolved,once the connection is made the first time, itzooms right through. Not sure if its a Cachething or Applet loading/connection issue.I still would like to include a SplashScreenand resolve the multi-threading issue. Pleasefire out some thoughts and suggestions.One,Spike
|