3,927 Posted Topics

Member Avatar for ifiok.idiang
Member Avatar for autorunman22

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.

Member Avatar for hfx642
0
206
Member Avatar for AnkitKumar

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.

Member Avatar for Ezzaral
0
73
Member Avatar for bibiki

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.

Member Avatar for bibiki
0
163
Member Avatar for pseudorandom21
Member Avatar for Sariscos

[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.

Member Avatar for Ezzaral
1
414
Member Avatar for Dean_Grobler

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.

Member Avatar for Ezzaral
0
155
Member Avatar for warlord902

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.

Member Avatar for warlord902
0
1K
Member Avatar for Siberian

> 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.

Member Avatar for predator78
0
225
Member Avatar for waterfox12
Member Avatar for jonhylever

[B]> But I'm still reading, so there must be more to it than that. [/B] Maybe not. Maybe it just starts repeating itself ;)

Member Avatar for Ene Uran
-2
359
Member Avatar for sasidharnet

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.

Member Avatar for masijade
0
490
Member Avatar for warlord902

Try [URL="http://www.h2database.com/"]H2[/URL] if you want a local embedded database for use with Java.

Member Avatar for warlord902
0
285
Member Avatar for warlord902

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.

Member Avatar for warlord902
0
252
Member Avatar for sciprog1

[URL="http://download.oracle.com/javase/tutorial/uiswing/layout/gridbag.html"]GridBagLayout[/URL] would be best. Use a JLabel to display the picture.

Member Avatar for sciprog1
0
81
Member Avatar for kasraluckblack
Member Avatar for quuba
0
101
Member Avatar for hemaaaa

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]

Member Avatar for NormR1
0
185
Member Avatar for winecoding
Member Avatar for Dean_Grobler

Moving this over to the JSP forum. I think you'll find a more familiar audience there.

Member Avatar for peter_budo
0
115
Member Avatar for Dani
Member Avatar for happygeek
0
409
Member Avatar for saqib_604

Additionally, the [URL="http://www.daniweb.com/forums/faq.php?faq=aup"]Acceptable Use Policy[/URL] is linked at the bottom of the forums.

Member Avatar for Ezzaral
0
190
Member Avatar for sariberri

Don't use table.setValueAt() for adding data to a table. Add the data to your table model and fire a tableChanged event.

Member Avatar for quuba
0
159
Member Avatar for Gata_Salvaje

@\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?

Member Avatar for ztini
0
5K
Member Avatar for 24x24

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.

Member Avatar for 24x24
0
388
Member Avatar for WASDted
Member Avatar for sirlink99

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().

Member Avatar for mKorbel
0
203
Member Avatar for left19

Sounds like that is exactly what you should be asking your hosting provider.

Member Avatar for mslade
0
132
Member Avatar for deeejay1054

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.

Member Avatar for breath2k
0
94
Member Avatar for alex-i

Have you bothered to search at all on your own? I did and found a ton of examples immediately.

Member Avatar for Ezzaral
0
98
Member Avatar for vivekchandra
Member Avatar for Narue
0
181
Member Avatar for Dean_Grobler

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]

Member Avatar for Ezzaral
0
120
Member Avatar for tboz203
Member Avatar for maxlipman

Duplicate thread. Closing this one. Please direct all further discussion here: [url]http://www.daniweb.com/forums/showthread.php?t=364938[/url]

Member Avatar for Ezzaral
0
338
Member Avatar for breezi3

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.

Member Avatar for Ezzaral
-1
367
Member Avatar for sheennave

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 …

Member Avatar for sheennave
0
2K
Member Avatar for Feriscool

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]

Member Avatar for NormR1
0
499
Member Avatar for SMITA6076

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 …

Member Avatar for Ezzaral
0
115
Member Avatar for Acegikmo
Member Avatar for umeshMCA

Yes, as Emily notes, we have a forum specifically for that. I'll move this thread over there.

Member Avatar for indiarajasthan
0
251
Member Avatar for mklein

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 …

Member Avatar for JamesCherrill
0
307
Member Avatar for Dani
Member Avatar for n3red
Member Avatar for matadori

Perhaps JToggleButton will work for you. You can set separate images for icon, selected icon, disabled icon, etc.

Member Avatar for JamesCherrill
0
135
Member Avatar for 24x24

You're checking for intersection outside both of your loops - which means they are essentially doing nothing except adding garbage collection overhead.

Member Avatar for 24x24
0
326
Member Avatar for saurabh2007

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: …

Member Avatar for NormR1
0
107
Member Avatar for thecoolman5
Member Avatar for Demetrius123

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 …

Member Avatar for sneekula
-4
192
Member Avatar for Dean_Grobler

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.

Member Avatar for JamesCherrill
0
290
Member Avatar for NPDA

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]

Member Avatar for NPDA
0
91
Member Avatar for jackmaverick1

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]

Member Avatar for jackmaverick1
0
223

The End.