3,927 Posted Topics
Re: Why is the name of your internal variable for storing the checkbox array important to what the user sees? I guess I'm missing that part. | |
| |
Re: I think Nader's potential to be a spoiler has dwindled to insignificance this time around. | |
Re: Whether you use arrays, Lists, or whatever, the point is still the same. You'll need to read the file content into some structure and then use JDBC to update/insert your table values. | |
Re: Poor Bob. That has to be very deflating to his huge swelling of pride. :( | |
Re: [QUOTE=The Dude;738391]Heh,idiots dont support IE6 .... Fail........[/QUOTE] Using IE6: Fail | |
Re: [QUOTE=shubhang;739709]Please have a look into the code.[/quote]Why? Is there something wrong with it? If so, what specifically? [QUOTE=shubhang;739709]Please also explain the function of [code] e.printstacktrace();[/code][/quote]There is no such function as you have written it. There is, however, a [URL="http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html#printStackTrace()"]printStackTrace()[/URL] method on Throwable. Read that API link to see what it … | |
Re: Use the [URL="http://java.sun.com/javase/6/docs/api/java/io/BufferedWriter.html#newLine()"]newLine()[/URL] method to write the line separator, instead of appending '\n' to your text. | |
Re: You may want to update to 1.6.0_04 and see if that solves the JVM crash. I assume you are running the latest JACOB build. | |
Re: Perhaps you should do a project that will spider the internet and aggregate all the thousands and thousands of "Final Year Project" request threads that already exist on this and countless other forums. Then we could just point all of these identical threads to your project site. :-/ | |
Re: It's all right here: [url]http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html[/url] | |
Re: Sure, [URL="http://java.sun.com/docs/books/tutorial/2d/index.html"]this is all you need[/URL]. | |
| |
Re: We use the Jakarta [URL="http://poi.apache.org/"]POI[/URL] API for that here at work. | |
Re: [QUOTE=jasimp;725775]Tabs? Why wouldn't that work?[/QUOTE] This. Modern browsers allow you to have more than one page open at a time. Try [URL="http://www.mozilla.com/en-US/"]Firefox[/URL]. (They have push-button phones now too. No more turning that little dial! Nifty!) | |
Re: Well, take a look at line 40, since that is where the error is occurring. [code]at BoardCreator.<init>(BoardCreator.java:40)[/code]. | |
Re: That depends what "second section" means. If you can't be more specific than that, you have little chance of getting a program to do something with it. | |
Re: And "I'm confused about..." isn't very specific for a question. I doubt many people want to trace through the entire thing to try and guess what part you are confused about. | |
Re: Assuming this is in a GUI, set the background color of one of your components to that color. You could create a JLabel for that purpose, or just use the background of your existing frame/panel. | |
Re: [QUOTE=The Dude;734868]I know they have done wrong but isnt this a little too intrusive?? (Maps right to thier house)[/QUOTE] If you feel it's intrusive, why are you spreading the link around? | |
Re: You really should change [code]System.out.println("error");[/code] to [code]e.printStackTrace();[/code] | |
Re: Sounds like you better review your course notes pretty quickly, since no one here is going to do your homework for you unless you post your code and specific questions about what you're having trouble with. (I'm guessing you don't have any code written yet). | |
Re: You might want to start with the wiki for [URL="http://en.wikipedia.org/wiki/Hash_table"]Hash table[/URL] and go from there as needed. | |
Re: JFreeChart has some charts such as that, but as already mentioned, you have to understand what you're charting to make much use of them. | |
Re: Post the "loginJP" and "errJP" classes as well. Preferably with just their UI component setup portions. | |
Re: These two are free online: [url]http://hudzilla.org/phpwiki/index.php?title=Main_Page[/url] [url]http://www.techotopia.com/index.php/PHP_Essentials[/url] I don't think they are downloadable though. | |
Re: Using the Calendar class, like so: [url]http://www.exampledepot.com/egs/java.util/CompDates.html[/url] | |
Re: You may want to take a look at this section of the Sun tutorial on using tables: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#validtext[/url] | |
Re: If you added the items as Integer objects: [code=java]int selectedValue = ((Integer)comboBox.getSelectedItem()).intValue();[/code] | |
Re: If you haven't already, you may want to look through the [URL="http://java.sun.com/javase/6/docs/api/java/awt/geom/Ellipse2D.html"]Ellipse2D[/URL] API. It has methods related to containment and intersection that may prove useful. | |
Re: > Can anyone provide a reasonable example of a situation that needs reflection and a short explanation of why? We use it on our current project for dynamic configuration of our UI. All panel components share an interface and with a simple XML file we can reconfigure the frames and … | |
Re: Perhaps, if you demonstrate that you have made some effort on it. Post your code and ask specific questions. | |
Re: Well, go figure:[code]line = br.readLine(); matrix[i][j] = line;[/code] If you put the whole line in there, that's what you're going to get. | |
Re: There are literally thousand of discussions on this to be found: [url]http://www.google.com/search?sourceid=mozclient&ie=utf-8&oe=utf-8&q=c%2B%2B+vs+java[/url] The objectivity of the comparisons vary greatly from side-by-side feature listings to all-out religious flamewars. The truth can be found somewhere in between. The wiki entry on it is probably a decent starting point to wade in: [url]http://en.wikipedia.org/wiki/Comparison_of_Java_and_C%2B%2B[/url] | |
Re: The Starting Java post at the top of the forum has many helpful resources. | |
Re: Ok, basically all you need to is give your ToolbarWindow a reference to the Painter applet so it has a way to call back on it. The toolbar frame has absolutely no need for a reference to the applets graphics context. Here's your code modified just a bit with a … | |
Re: For those who wish to read through a more informed discussion of the matter: [url]http://episteme.arstechnica.com/eve/forums/a/tpc/f/770002407831/m/822003949831[/url] | |
Re: Use a [URL="http://www.exampledepot.com/egs/java.io/AppendToFile.html?l=rel"]BufferedWriter[/URL]. Edit: Better yet, use the [URL="http://java.sun.com/javase/6/docs/api/java/util/logging/Logger.html"]Logger[/URL]. [url]http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html[/url] | |
Re: Nah, it's not really that hard if you're insane, as the results are likely to be insane as well - but you won't mind... because you're insane... | |
Re: Post the interview questions here and perhaps someone will oblige to answer them. | |
Re: What code? You aren't making a bit of sense. If it's some applet that someone else wrote, you need to ask [U]them[/U] what's wrong with it. | |
Re: You forgot one option on the poll: "Hell no, that has to be the lamest thing I've heard in a good while." | |
Re: I couldn't speak to Groovy, but it's fairly straightforward to write a List to a file[code=java]try { List<String> someList = new ArrayList<String>(); // obviously you would want to use a list with stuff in it BufferedWriter out = new BufferedWriter( new FileWriter("outfilename")); for (String item : someList){ out.write(item); out.newLine(); } … | |
Re: Because that is the toString() representation of an ArrayList, which is what you are printing. If you want to show it differently then iterate each list and print it as you see fit. | |
Re: Toy guns don't kill toy people, toy people do. | |
Re: [QUOTE=vmanes;730927]So he's chosen as his Chief of Staff someone who was very much in bed with Freddie and Fannie[/QUOTE] Conservatives are quite upset, as they only approve of bedding Fannie. |
The End.