- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
21 Posted Topics
Re: I have little experience with Swing, but I'm guessing that you want to implement a Listener that would check after each keystroke to see what the user was typing. If they were typing the pattern you wanted to match, it could then insert the appropriate text. [URL="http://download.oracle.com/javase/tutorial/uiswing/events/keylistener.html"]Here[/URL]'s a tutorial from … | |
Re: If you got the help you needed, please mark the thread as solved so that other people can reference it later and the other forum members know that their help isn't needed here anymore. | |
Re: Here are the problems that are immediately visible to me: [LIST] [*]In is not defined anywhere in your program. Presumably it's intended to be something that can access the console input. [*]letter has no value inside letterChecking. You probably want to make it a parameter instead of a local variable. … | |
Re: You're using == to compare Strings. Bad idea. When used with non-primitive types (like Strings), == checks to see whether the two values are references to the exact same object, not whether the objects they refer to are considered equal. "r" and "r" may be equal, but they could be … | |
Re: Your first problem is simple enough; you wrote (x < 0) where I think you meant (n < 0). Thanks for using CODE-tags, by the way; it makes it easier to help you. For the second problem, you need to give it a try before people on Daniweb will help … | |
![]() | Re: My advice: First decide what you want the program to do. |
Re: Is your problem that you need an SMS library for Java? If so, [URL="http://smppapi.sourceforge.net/"]SMPP[/URL] looks promising. | |
Re: If you're looking for an implementation of a linked list, try the LinkedList class in the java.util package. If you have questions about using a linked list or implementing your own, please clarify. | |
Re: This seems to contain syntax errors. Specifically, you're using two operators that aren't valid operators: =< (the operator for "less than or equal to" is <=), and %== (I have no idea what this is supposed to be). In future, kindly wrap code in CODE-tags and indent it before posting. | |
Re: Arrays.sort (in the java.util package) is the way to go in Java. In fact, no matter what language you're working in, if it has a built-in sort function, you should use it rather than writing one yourself. It's easier and also probably faster, since the built-in one is probably highly … | |
Good evening. I'm having issues related to subprocesses. What I'm trying to do is launch another program that has a command-line mode (Gnucap, in case it matters) as a child process from my Java program, then communicate with it by reading from its standard output and writing to its command … | |
Re: I'm a bit confused. Are you trying to decide which language to use for a project? If so, then 1) you're in the wrong forum (this one is for Java development), and 2) you're unlikely to get meaningful advice unless you tell us more about the project. | |
Re: Getters and setters are quite simple. A getter is a method that takes no arguments and returns the value of a particular field. (If you haven't heard the term "field" before, it's the same as "instance variable".) Its return type is the same as that field's type. A setter is … | |
Re: You may find Kai Toedter's [URL="http://www.toedter.com/en/jcalendar/index.html"]JCalendar[/URL] library useful; it's available under the [URL="http://www.toedter.com/en/jcalendar/license.html"]GNU LGPL[/URL]. The specific functionality you're talking about is provided by the JDateChooser class. | |
Re: You never assigned a value to contentPane. | |
Hello. It's been a while since I was on here. I'm writing a Java class with a generic type parameter. Among other things, it maintains an internal ArrayList of the same generic type as itself. In a perfect world, the code would go like this: [CODE=Java]import java.util.ArrayList; public class MyGenericClass<T> … | |
Re: It compiles on my system. Is there any chance that line 17 contains a typo in the version on your computer, but not the one you posted here? | |
Re: Actually, this program doesn't entirely work. If its first guess is over 50 and the real answer is higher than that, it will raise a ValueError. What you want to do is have a variable to keep track of the lowest number that could possibly be the answer, and another … | |
Hi. I'd like some help with a program that runs over a network. My program uses queue-based distributed computing. Because the computers are all on a LAN and differ greatly in processing power, they receive objects to process only when they request them. (Some can process more than one object … | |
Hi everyone. I need some help with a subprocess. My Python script uses the os.popen2 function to spawn a non-Python subprocess. Now it needs a way to send a Ctrl-C interrupt or something equivalent to the subprocess. Does anyone know how to do this? Thanks in advance! | |
Hi everyone. I just found this site today and I decided to join. I'm an amateur programmer, Python mostly, and I'm hoping I'll have a good time and be able to get some support here. See you all around! |
The End.