3,927 Posted Topics
Re: 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]? | |
Re: [url]http://en.wikipedia.org/wiki/Decimal_degrees[/url] | |
Re: Have you tried using [iCODE]Replace([yourStringHere], vbCrLf, " ")[/iCODE] against the entire string? | |
Re: Have you actually installed any implementations of the API? See [URL="http://www.daniweb.com/software-development/java/threads/353599"]this thread[/URL]. | |
Re: 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 { … | |
Re: 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 … | |
Re: It states Unclosed String Literal. Check your String array initialization. | |
Re: Moving to the Java forum. I think you'll get better response there. | |
Re: I think the Graphics And Multimedia forum may be your best bet for this. I'll move it over for you. | |
Re: Should [iCODE]ProductoID + 1[/iCODE] instead be [iCODE]ProductID + 1[/iCODE]? (Note extra 'o') | |
Re: [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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. ![]() | |
Re: 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. | |
Re: Moving to PHP. | |
Re: [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 … | |
Re: Sorry, this isn't Code On Demand. Perhaps you should try Google if you don't have any specific questions to ask. | |
Re: 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. | |
Re: 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 … | |
Re: 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] | |
Re: [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 … | |
Re: And [URL="http://en.wikipedia.org/wiki/Indent_style"]learn to indent[/URL]. | |
Re: Switches operate on integers and enums. How do you see that relating to your requirement? | |
Re: 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 … | |
Re: What's your question? Seems like you still need to work on this part[CODE]//Code goes here...[/CODE] | |
Re: And requesting pirated software is not tolerated on DaniWeb. Thread closed. | |
Re: Or just step through and add every letter to a Set. | |
Re: "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. | |
Re: You should be able to export a SQL dump of the old database from phpMyAdmin and then import that into your new database. | |
Re: You're going to need to show a little more effort on your homework than this. | |
Re: [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 … | |
Re: 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. | |
Re: 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. | |
Re: Not technically correct. In Java, everything is passed by value. You can read about it [URL="http://javadude.com/articles/passbyvalue.htm"]here[/URL]. | |
Re: 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 … | |
Re: 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] | |
Re: My preference is H2, but JavaDB/Derby is a fine embedded database as well. | |
Re: 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 … | |
Re: You can try [iCODE]replaceAll("<.+?\\>", "")[/iCODE] | |
Re: 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]. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: Did you bother to read any of the tutorials that mKorbel linked for you? | |
Re: That isn't an applet. It's a JFrame. You cannot run a JFrame as an applet. |
The End.