3,927 Posted Topics

Member Avatar for anand01

Did you bother to read any of the [URL="http://www.daniweb.com/web-development/jsp/threads/249070"]sticky thread at the top of the forum[/URL]?

Member Avatar for Ezzaral
0
85
Member Avatar for susheelsundar
Member Avatar for e060185

Have you tried using [iCODE]Replace([yourStringHere], vbCrLf, " ")[/iCODE] against the entire string?

Member Avatar for Ezzaral
0
151
Member Avatar for Mamun13

Have you actually installed any implementations of the API? See [URL="http://www.daniweb.com/software-development/java/threads/353599"]this thread[/URL].

Member Avatar for Mamun13
0
214
Member Avatar for cozmo87

There is not a row renderer per se, so you have to install a cell renderer on all columns that will check the particular column values and apply the formatting as necessary. Here is a skeletal highlight renderer to give you an idea to work from[CODE]class HighlightRenderer extends DefaultTableCellRenderer { …

Member Avatar for mKorbel
0
2K
Member Avatar for conanzz

paintComponent() should just be used to render graphics based on current state. You should avoid changing variables in that method. Update your variables externally in some other method and then call repaint() to render the update. In your case, that would entail moving the code that changes previousX into your …

Member Avatar for conanzz
0
206
Member Avatar for Sabatino

It states Unclosed String Literal. Check your String array initialization.

Member Avatar for Sabatino
0
89
Member Avatar for chamnab
Member Avatar for peter_budo
0
147
Member Avatar for StuartMillner

I think the Graphics And Multimedia forum may be your best bet for this. I'll move it over for you.

Member Avatar for Ezzaral
0
136
Member Avatar for Jairop

Should [iCODE]ProductoID + 1[/iCODE] instead be [iCODE]ProductID + 1[/iCODE]? (Note extra 'o')

Member Avatar for Ezzaral
0
49
Member Avatar for WaltP

[QUOTE]> If it is only a handful of times, what does it hurt having it and not using it? Because any extra feature/button adds an element of confusion (& frustration) for everyone who doesn't know what it is or how to use it.[/QUOTE] Tooltips can go a long way towards …

Member Avatar for Ezzaral
1
188
Member Avatar for thesimplestnick

Passing the empty string array to the constructor of your JList is causing the weird font sizing issue. If you want to add and remove items from your list, [URL="http://download.oracle.com/javase/tutorial/uiswing/components/list.html#mutable"]use a DefaulListModel[/URL] instead of an array.

Member Avatar for JamesCherrill
0
164
Member Avatar for ericwalter

Nah. I have other more pressing things to work on. Perhaps you should give it a try yourself. When you have some code or specific questions about the parts you are stuck on, come back and post them and perhaps someone can offer some assistance.

Member Avatar for peter_budo
0
6K
Member Avatar for sirlink99

Start with the MySQL [URL="http://dev.mysql.com/doc/refman/5.1/en/connector-j.html"]documentation on using their JDBC driver[/URL]. They have several examples to get you started. Edit: Cross-posted with Slimmy. Be sure to check the link he posted as well for a more general tutorial on JDBC.

Member Avatar for Ezzaral
0
682
Member Avatar for t3chpr0digy

Perhaps answering more recent threads would be more helpful? Pulling old threads like this back up to the top just causes confusion for everyone. Closing.

Member Avatar for Ezzaral
0
84
Member Avatar for sirlink99

Have you tried installing [URL="http://www.google.com/url?sa=t&source=web&cd=1&ved=0CCUQqwMoADAA&url=http%3A%2F%2Fwww.apachefriends.org%2Fen%2Fxampp-windows.html&ei=ITAvTt-AMJKBsgK9o_xS&usg=AFQjCNE2PY3z15daldu3Pe9XsVy5AkPRmg"]XAMPP[/URL]? It installs the whole stack for you.

Member Avatar for Ezzaral
0
117
Member Avatar for smoothe19

Yes, I would second nmaillet's suggestion to try POI. You can probably find a simple example in the [URL="http://poi.apache.org/spreadsheet/quick-guide.html"]quick guide[/URL] to get you started.

Member Avatar for hfx642
0
133
Member Avatar for joshuasanders

You could use [URL="http://dev.mysql.com/doc/refman/5.1/en/group-by-functions.html#function_group-concat"]group_concat()[/URL] and group by student id.

Member Avatar for joshuasanders
0
209
Member Avatar for vectro
Member Avatar for Salem

[B]> 99% of "SEO spammers" are people who would really make excellent contributing members of our community[/B] I would say closer to 5% at best. The other 95% are blathering idiots that only sign up to parrot useless "advice" they copied from a poster above or some article farm content …

Member Avatar for Dani
0
235
Member Avatar for Chamath

Sorry, this isn't Code On Demand. Perhaps you should try Google if you don't have any specific questions to ask.

Member Avatar for Sadun89
0
95
Member Avatar for domifa621

A couple of things to consider. First, [ICODE][1-9]\d{2}[/ICODE] is the same as [ICODE]\d{3}[/ICODE]. So you can simply that expression a bit. Second, parenthesis are special characters in regex. You need to escape them if you want to use them as character literals in a pattern.

Member Avatar for Ezzaral
0
502
Member Avatar for nsyncpilu

Yes, the trouble is in your constructor. You declare a variable 'tableModel', initialize it, and add a listener to it - and then you don't do anything with it. It goes out of scope. Your JTable is still using whatever default model it had in initComponents(). If you want to …

Member Avatar for nsyncpilu
0
464
Member Avatar for Some-Jackass

Why not just a simple join?[CODE]SELECT DISTINCT N.id, N.Alias, N.Weight FROM Ninja N, Matchup M WHERE M.BlueCornerNinjaID = N.id OR M.RedCornerNinjaID = N.id ORDER BY N.Alias[/CODE]

Member Avatar for urtrivedi
0
1K
Member Avatar for sam1

[quote=hiwind;459537]Hi. I saw your thread about a messenger. May I know how much? Can I use it to send messenge to Yahoo Messenger, If I know yahoo instant messenger usernames? Thanks[/quote] If you want to send him a private message I guess that's up to you, but I don't think …

Member Avatar for stultuske
0
462
Member Avatar for desert564
Member Avatar for NormR1
0
257
Member Avatar for jpleas

Switches operate on integers and enums. How do you see that relating to your requirement?

Member Avatar for javaAddict
0
498
Member Avatar for sirlink99

The get() method will return an element by index from a Vector. I'd recommend using ArrayList instead of Vector unless you need a synchronized collection (and I doubt that you do). The get() method is still the same. You might also consider using Point objects instead of keeping separate lists …

Member Avatar for mKorbel
0
133
Member Avatar for vomhaus

What's your question? Seems like you still need to work on this part[CODE]//Code goes here...[/CODE]

Member Avatar for stultuske
0
4K
Member Avatar for churva_churva
Member Avatar for Ezzaral
0
250
Member Avatar for real thinkers
Member Avatar for nsyncpilu

"Does not work" is pretty vague. Using the TableModelListener as mKorbel linked to should work just fine. Post the code that you used for your listener.

Member Avatar for nsyncpilu
0
1K
Member Avatar for mimeea2005

You should be able to export a SQL dump of the old database from phpMyAdmin and then import that into your new database.

Member Avatar for Ezzaral
0
72
Member Avatar for koolpinguy
Member Avatar for Ezzaral
-1
147
Member Avatar for mattyg1192003

[B]> There are no rules regards to spoon feeding in rule section.[/B] Correct, but re-writing someone's code and just handing it to them is generally discouraged here. You didn't even tell them what you fixed, just "Here ya go, I fixed it". It's usually preferable to try to guide them …

Member Avatar for mKorbel
0
138
Member Avatar for nsyncpilu

Did start at [nrrows] or [nrrows-1]? Put in a println debug statement just before the line the error occurs on and figure out why it's sending too high an index value.

Member Avatar for nsyncpilu
0
2K
Member Avatar for Majestics

I just posted an example of this over in a similar thread about JTable [URL="http://www.daniweb.com/software-development/java/threads/373078/1605358#post1605358"]here[/URL]. Perhaps it will help.

Member Avatar for mKorbel
0
109
Member Avatar for baby_c

Not technically correct. In Java, everything is passed by value. You can read about it [URL="http://javadude.com/articles/passbyvalue.htm"]here[/URL].

Member Avatar for JamesCherrill
0
253
Member Avatar for Majestics

I agree with web-guy's earlier suggestion that you probably need to outer join your customer table to your invoice table for the sums. I assume that the customers who have no orders have no records in the invoice table. If they aren't in the table, they aren't going to appear …

Member Avatar for drmrkrch
0
167
Member Avatar for localp

Try starting with this: [url]http://download.oracle.com/javase/tutorial/2d/geometry/index.html[/url] Edit: Actually, that one is thin on simple example code. Try this one first: [url]http://download.oracle.com/javase/tutorial/uiswing/painting/index.html[/url]

Member Avatar for Ezzaral
0
67
Member Avatar for Zetlin

My preference is H2, but JavaDB/Derby is a fine embedded database as well.

Member Avatar for Zetlin
0
133
Member Avatar for b89smith

Either of these work (I named the temp table qtest for no good reason)[CODE]SELECT *, q2.holding-q1.holding AS change FROM (SELECT * FROM qtest WHERE date=DATE'2010-12-31') q1, (SELECT * FROM qtest WHERE date=DATE'2011-03-31') q2 WHERE q1.account=q2.account and q1.product=q2.product[/CODE] [CODE]SELECT *, q2.holding-q1.holding AS change FROM qtest q1 INNER JOIN qtest q2 ON …

Member Avatar for Ezzaral
0
175
Member Avatar for raghujosh
Member Avatar for sear899

Javac.exe is used to compile a .java source file. Java.exe is used to run a compiled class file or jar file. You can learn how to use those tools [URL="http://download.oracle.com/javase/tutorial/getStarted/cupojava/index.html"]here[/URL].

Member Avatar for sear899
0
79
Member Avatar for Jake.20

The problem is that the GridLayout sizes each grid cell the same, so when you increased the height of your textfield by changing the font size, you increased the height of all rows in the grid. To get around that you could use a BorderLayout of two panels, one with …

Member Avatar for Ezzaral
0
209
Member Avatar for sunjcarkey

Print out 'str' just before you execute it. The error message says you have a syntax error in the SQL statement. It's not a java issue.

Member Avatar for Ezzaral
0
380
Member Avatar for freesoft_2000
Re: GoTo

This old thread from 2005 was revived by someone advertising their software library. That spam post has been deleted and I'm going to close this thread we don't get more people treating this as an open question. @sirlink99: I'd encourage you to try Norm's suggestion above. It may turn out …

Member Avatar for Ezzaral
0
151
Member Avatar for sirlink99

Why are you using widths/heights of 4 and 8, instead of simply 1 and 2? [B]> Also no matter what I change the button sizes to they stay the same size.[/B] You can call setPreferredWidth() on your buttons to specify their preferred size to the layout manager.

Member Avatar for Ezzaral
0
169
Member Avatar for Jessurider
Member Avatar for stultuske
0
155
Member Avatar for fatjoy25

The End.