3,927 Posted Topics
Re: The [URL="http://www.daniweb.com/forums/forum14.html"]Computer Science[/URL] forum is for such discussions. | |
Re: You are using a format string that applies to a Calendar instance with int parameters. If you already have the hours and minutes as int, use [icode]String.format("%d:%d", hours, minutes);[/icode] instead. | |
Re: From Sun: [url]http://java.sun.com/docs/books/jni/html/jniTOC.html[/url] | |
Re: Ganymede was just the release bundle name for 3.4 as I understand it. You may not find a lot of information targeted specifically at 3.4, but other RCP tutorials should still be relevant on most of the basics I would think. | |
Re: I would highly recommend [URL="http://www.cc2e.com/"]Code Complete, 2nd Edition[/URL]. It covers a lot of stuff that you just don't find in tutorials or text books. | |
Re: Looks to me like an extra " at the end of lines 12 and 13. | |
Re: Set a breakpoint on the line you want to stop upon. Then use step over (F8), step into(F7), etc. to step though as needed. You'll need to running in debug mode for that of course ("Debug Main Project" or "Debug File") It's all covered in the help file for your … | |
Re: Anything like that is going to be a custom header renderer - which as you noted is "hundreds of lines". It's not a trivial thing that you do in a couple of lines of code. I assume you ran across this implementation: [url]http://www.esus.com/docs/GetQuestionPage.jsp?uid=1272[/url] | |
Re: Well, sure, except for three things: 1) it's C and this is the Java forum 2) If you are going to hard-code the whole pattern, why would you bother to use 1 and 0 to encode it just so you can translate it back with if() statements to the '*' … | |
Re: You're off to a great start here: two posts pleading for help with absolutely no demonstrated effort to solve the problems. You do realize you're going to have to actually think about these problems, yes? Post the code you have. Post intelligent questions about the parts that are confusing you. | |
Re: First, you need to realize that Java != Javascript. There is a separate forum for Javascript. I've requested that one of the mods for this section move it there for you. | |
Re: You probably have the default close operation set to EXIT_ON_CLOSE, which will indeed call System.exit(0). You can instead set that to DISPOSE_ON_CLOSE or another option of your choosing with the [URL="http://java.sun.com/javase/6/docs/api/javax/swing/JFrame.html#setDefaultCloseOperation(int)"]JFrame.setDefaultCloseOperation(int)[/URL] method. The available constants are listed there in the API doc. | |
Re: Why do you need to "get rid of" the mouse click event? Do you mean that you do not want to allow editing or selection of certain parts? If you only need 2 cells, why not just use two text fields? You need to give a little more info about … | |
Re: Just change it to extend JPanel and drop the calls to getContentPane() when you add your components. They are added directly with add(). Your main() code will need to create a JFrame to display the panel of course. | |
Re: There are also other text components depending upon the functionality you need. You can read more about them here: [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/text.html"]Using Text Components[/URL] | |
Re: If you read further down and walk through their example, it becomes a little more clear what they mean and they demonstrate using the PropertyChangeSupport class as a helper. Basically, your methods that alter the bound properties need to also fire change events so that change listeners get notified, ie … | |
Re: [QUOTE]Until recently, we thought that mushrooms were the organism when they are just the sexual organs of a much larger organism. [/QUOTE]Eww, I stepped on a couple in my yard yesterday - I didn't know I was tromping on something's privates :icon_eek: | |
Re: [quote]Give me an A; give me a S; give me another S; a H-O-L-E. Now, say it all together. SCRU![/quote]Lame. Very lame. You could have left out the name-calling. I put this in a real post just for you. | |
Re: There are plenty of tutorials to be found on simple animation. Here's one to get you started: [url]http://www.krhs.net/computerscience/java/sanimat1.htm[/url] | |
Re: String.split() would work just fine. You can use a basic structure like so[code=java]BufferedReader reader = new BufferedReader(new FileReader("someFile.txt")); String line = null; while ( (line=reader.readLine()) != null){ // Splitting the read line on a single space, // if it's tab delmited, use "\t" instead String[] columns = line.split(" "); // … | |
Re: Uploaded attachment: [ATTACH]10183[/ATTACH] Works just fine from here. (Firefox 3.0.10) | |
Re: There is a link at the bottom of the thread to "Mark as Solved". I've marked this one for you :) | |
Re: [QUOTE=JamesCherrill;877103]It seems that there is another pattern operating here: methods that access a private field which will never be set from outside the class are simply named after the field. Has anyone seen this documented? Is there some other explanation?[/QUOTE] Well, the [URL="http://java.sun.com/docs/books/jls/second_edition/html/names.doc.html#73307"]JLS[/URL] makes the following recommendation on method names[quote][B]6.8.3 … | |
Re: Have you read through the documentation on [URL="http://www.sqlite.org/index.html"]the SQLite site[/URL] and the [URL="http://www.sqlite.org/cvstrac/wiki?p=SqliteWikiFaq"]SQLite Wiki FAQ[/URL]? What other questions do you have about it? The DB itself is just a set of files. How you interface with the database will depend on what language you are using for your application. Edit: … | |
Re: That would be an issue for the instructor to deal with, not forum moderators here. | |
Re: [QUOTE=Techie08;829024]Might wanna repost in programming...[/QUOTE] Perhaps not, four years later... | |
Re: Packages have nothing to do with "gadgets". The answer is as meaningless as the original question. | |
Re: You may want to look at some of the [URL="http://www.daniweb.com/forums/post285082-2.html"]resources posted here[/URL] in the FAQ thread. | |
Re: I would just point out that you are checking the entry against the string in [ICODE]array[1][/ICODE] every single time, but showing a value based on your generator [ICODE]array[generator1-1][/ICODE] in the JOptionPane[code]a = array[1].indexOf(guess); JOptionPane.showMessageDialog(null, "" + guess + " " + array[generator1-1] + " "+ a);[/code] | |
Re: You have those backward. I don't think you intend to read() from 'number'. | |
Re: Try adding the entire path to your image file. It may just be a resource location issue. If that works, you may want to use getResource() for locating the file resources as discussed in this tutorial: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html#getresource[/url] | |
Re: Why not set the parameters of your query to only pull records where m=$todaysMonth and d=$todaysDay and y=$todaysYear? | |
Re: Your original version was evaluating[code](not a) equal to (b)[/code]when you wanted [code](a) not equal to (b)[/code] | |
Re: Ok, my apologies, I tried to merge these two threads and it came out a bit of a mess. Hopefully something relevant can still be salvaged. | |
Re: I'd say the extra '=' sign here is causing your problem[code]Where = qryExams.Dept_ID[/code] Edit: Well, and the fact you can't refer to "qryDept.Dept_ID" if you haven't joined to qryDept in that query. In short, your second SQL statement is completely invalid. | |
Re: There is no condition on an "else" clause, so this isn't valid syntax[code]else (jComboBox1.getSelectedIndex == 9) [/code]. The bigger question is why not use a switch or even better yet, an array of text fields so you don't have so much manually repetitive code. | |
Re: Try disabling the "Pointing Stick" (the little mouse nubby thing that's in the middle of the keyboard) in the mouse section of your control panel. | |
Re: I would give serious consideration to doing it in VB.NET or C# instead. VB6 is legacy work at this point. | |
Re: Many ISPs offer a small amount of web space for a personal page with your account. I would check with your service provider first. | |
Re: That is certainly a possibility. The larger problem is keeping up with all of the ambiguous fields like "someTextField999" and it's relation to "randomLabel645". In the long run, designing an object model that manages these things in appropriate collections like Lists of other objects would be a much more manageable … | |
Re: You don't mention the language, but if it's Java then using [icode]arraylist.get(i).move();[/icode] as you have it there will move that instance in the list. It will not create a copy. | |
Re: It means you tried to run something that doesn't have a class definition. You are probably in the wrong directory. | |
Re: No, you're not going to find anyone here that will just "give you the code for it". It's all about showing some effort and asking specific questions if you're stuck. | |
Re: Well, I don't see how you expect anyone to help you when you did not post a question. | |
Re: Using the build in tools for it doesn't look too tricky: [url]http://www.eclipse-blog.org/eclipse-ide/generating-javadoc-in-eclipse-ide.html[/url] If there are specific parts you don't understand, post a more detailed explanation of what you're hung up on. | |
Re: Don't rely on getParent() for getting back to your JFrame. Create a constructor for your panels that takes a reference to that frame as a parameter. All of your panels will then be able to make requests on the main frame. If you create methods such as loadNext() on your … | |
Re: vCal spec can be found here: [url]http://www.imc.org/pdi/pdiproddev.html[/url] I found plenty more info on iCal with a simple Google search. Have you looked at any of that? | |
Re: AncientDragon was referring to which course you are currently taking that involves the projects you mentioned. Our forums here are grouped by subject, such as C++, Java, Database Design, etc. as you will see if you peruse through them. Without knowing what course you are taking and or what languages … | |
Re: Sure, assuming that each sale record had a "Qty" for quantity sold, you'd just have something like [code=sql]SELECT StyleID, SUM(Qty) FROM Sales GROUP BY StyleID ORDER BY SUM(Qty) DESC[/code] |
The End.