3,927 Posted Topics
Re: Nope. Show some effort if you expect help with your homework. | |
Re: I would reconsider whether that many timers are needed at all. Generally a single timer is user for animation. It updates all component locations as needed and then repaints. ![]() | |
Re: Ankit, many people already took the time to answer this question of yours several days ago: [url]http://www.daniweb.com/forums/showthread.php?t=365359[/url] If you still have questions, please confine them to that thread rather than simply re-posting this question. Closed. | |
Re: That's a JVM crash message, not an exception. Check the hs_err log file indicated and search the net for the specific crash info reported there. | |
Re: [B]> Something cool and hip like Pandora would definitely make the street credibility of MSFT go up for sure. [/B] Or it would ruin Pandora. | |
Re: If you want to work with DOM, [URL="http://www.jdom.org/"]JDOM[/URL] is very easy to use. As far as replacing values found with xpath, you just alter the elements and then write the document model back out to the file. | |
Re: Why do you need to start the db as a server at all on a single machine? Do you have more than one client sharing the data? In your earlier posts, it sounded as if you were wanting an embedded database for use with a single application instance. | |
Re: > and I can't get what everyone else supposedly is getting ?!?!? Well, ask them then. Be careful how you ask about such things here, as discussion of illegal activity is not tolerated at all. | |
| |
Re: [B]> But I'm still reading, so there must be more to it than that. [/B] Maybe not. Maybe it just starts repeating itself ;) | |
Re: If you look as far as page 2 of the forum, this is answered in two different threads. Please take some time to find answers on your own before you ask others to hand them to you. | |
Re: Try [URL="http://www.h2database.com/"]H2[/URL] if you want a local embedded database for use with Java. | |
Re: Try using [URL="http://www.h2database.com/"]H2[/URL] or [URL="http://www.oracle.com/technetwork/java/javadb/overview/index.html"]JavaDB[/URL] instead. Both are embedded databases that do not need to be separately installed. | |
Re: [URL="http://download.oracle.com/javase/tutorial/uiswing/layout/gridbag.html"]GridBagLayout[/URL] would be best. Use a JLabel to display the picture. | |
Re: You haven't asked a question. Copying and pasting the assignment is not the same. From the forum rules: [B]Do provide evidence of having done some work yourself if posting questions from schoolwork assignments.[/B] | |
Re: Post the import statements for your class. | |
Re: Moving this over to the JSP forum. I think you'll find a more familiar audience there. | |
Re: Welcome back, Narue. Davey, best of luck with everything. Our thoughts are with you. | |
Re: Additionally, the [URL="http://www.daniweb.com/forums/faq.php?faq=aup"]Acceptable Use Policy[/URL] is linked at the bottom of the forums. | |
Re: Don't use table.setValueAt() for adding data to a table. Add the data to your table model and fire a tableChanged event. | |
Re: @\007: If you are you referring to the numerical value of each character, that won't be of any help. The added char values of "aaabb" and "zzyz" are the same. I wouldn't call them equal though. Or am I misunderstanding what you mean by the integer values of each? ![]() | |
Re: See [URL="http://download.oracle.com/javase/tutorial/uiswing/events/keylistener.html"]How to Write a Key Listener[/URL]. Check the key code and increment your positional variables based on that. Repaint as needed. Be mindful about focus issue with key listeners. The listener will only receive events if that component has the focus. | |
Re: Why does god and cod sound so alike? | |
Re: I think you've jumbled your components a bit. ResistorColorCodeGraphics extends JFrame and you're attempting to add that to another JFrame? You can't put frames in frames. ResistorColorCodeGraphics should extend JPanel and should override paintComponment(), not paint(). | |
Re: Sounds like that is exactly what you should be asking your hosting provider. | |
Re: Posts can be edited within 30 minutes of submission. After that, only a moderator of administrator can edit the post. Posts will only be deleted if they are in violation of the site rules. | |
![]() | Re: Have you bothered to search at all on your own? I did and found a ton of examples immediately. |
Re: Ok, enough of this. If the thread can't get back on topic it will be closed. | |
Re: I would go right to the source: [url]http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/portlet-development;jsessionid=B45DF78522A918F9A5EE130AF729898A.node-1[/url] | |
Re: BigDecimal not work for you? | |
Re: Duplicate thread. Closing this one. Please direct all further discussion here: [url]http://www.daniweb.com/forums/showthread.php?t=364938[/url] | |
Re: Great, so what is your question? [U]Specifically[/U], not just a dump of the assignment. From the site rules: [B]Do provide evidence of having done some work yourself if posting questions from schoolwork assignments.[/B] Post your code, post error messages, ask about specific things you are having trouble with. | |
Re: No need to remove or create new JTables at all. Change the data that is within the model instead. It looks like you can call [ICODE]setQuery()[/ICODE] on your [ICODE]ResultSetTableModel[/ICODE] to query a new set of data. If you maintain a single instance of that model, you can just update it's … | |
Re: I would also think really carefully about what you think this line is doing for you [CODE]else if(JAVA[0] == 'j' && JAVA[1] == 'a' && JAVA[2] == 'v')[/CODE] | |
Re: Perhaps you could use a Set of 1-9 and remove each entry as you encounter it. The remove() method returns a boolean to indicate if the element was in the set, so invalid numbers or repeats would be detected easily and you would also be able to verify that you … | |
Re: Marking this solved. I think the OP has found an answer by now. | |
Re: Yes, as Emily notes, we have a forum specifically for that. I'll move this thread over there. | |
Re: From that other answer[QUOTE]You could use the ClientProperty associated with each JComponent to save any info about a component you want, like its position in an array. See the put... and get... methods.[/QUOTE] Adding to that a bit: you can create a single listener instance that uses the getSource() method … | |
Re: Look up the substring() method of the String class. | |
Re: Perhaps JToggleButton will work for you. You can set separate images for icon, selected icon, disabled icon, etc. | |
Re: You're checking for intersection outside both of your loops - which means they are essentially doing nothing except adding garbage collection overhead. | |
Re: You'll have to figure out which variable you're accessing in that method is null and why. The code that you provided is not enough to answer that question. Put in some debug println() statements to check the values of those array elements prior to that method call to isMatch(). Edit: … | |
Re: [B]> any solutions?[/B] Tech support? | |
Re: I quit cold turkey as well. Nicotine replacement therapy (gums, patches, etc) just puts off the inevitable nicotine withdrawal. Until you stop taking in any nicotine at all, you're still addicted. They claim that NRT helps you first break the "cigarette habit" and then you can just slowly ween yourself … | |
Re: I'm not sure what is being done that would require runtime selection between 25 different methods, but perhaps a command pattern inner class implementation for the actions and a hashmap to map them to your strings might work out. | |
Re: It's just constructing a string "ipAddress" from the bytes in the packet using this String constructor: [URL="http://download.oracle.com/javase/6/docs/api/java/lang/String.html#String(byte[],%20int,%20int)"]String(byte[] bytes, int offset, int length) [/URL] | |
Re: Maps are data structures that maintain key to value pair mappings. They are extremely powerful and flexible structures. [url]http://download.oracle.com/javase/tutorial/collections/interfaces/map.html[/url] |
The End.