3,927 Posted Topics

Member Avatar for gowth08

The [URL="http://www.daniweb.com/forums/forum14.html"]Computer Science[/URL] forum is for such discussions.

Member Avatar for Ezzaral
0
42
Member Avatar for KimJack

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.

Member Avatar for Xhamolk_
0
197
Member Avatar for Majestics
Re: JNI

From Sun: [url]http://java.sun.com/docs/books/jni/html/jniTOC.html[/url]

Member Avatar for Majestics
0
120
Member Avatar for BestJewSinceJC

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.

Member Avatar for BestJewSinceJC
0
105
Member Avatar for fwso

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.

Member Avatar for peter_budo
0
323
Member Avatar for cresults
Member Avatar for cresults
0
129
Member Avatar for mahdi68

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 …

Member Avatar for Ezzaral
0
58
Member Avatar for Lensva

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]

Member Avatar for Ezzaral
0
86
Member Avatar for shakeelahmed22

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 '*' …

Member Avatar for freelancelote
0
146
Member Avatar for shakeelahmed22

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.

Member Avatar for javaAddict
0
166
Member Avatar for MJ Pieterse

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.

Member Avatar for MJ Pieterse
0
227
Member Avatar for Logi.

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.

Member Avatar for masijade
0
102
Member Avatar for kashn

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 …

Member Avatar for kvprajapati
0
94
Member Avatar for kingarthur

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.

Member Avatar for cruzer45
0
148
Member Avatar for kashn

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]

Member Avatar for kashn
0
272
Member Avatar for BestJewSinceJC

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 …

Member Avatar for Ezzaral
0
194
Member Avatar for dash1983
Member Avatar for jephthah

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

Member Avatar for jephthah
1
149
Member Avatar for Aia

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

Member Avatar for jephthah
-1
765
Member Avatar for bokz06

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]

Member Avatar for Ezzaral
0
103
Member Avatar for SnagglezMaw

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(" "); // …

Member Avatar for SnagglezMaw
0
82
Member Avatar for tux4life
Member Avatar for tux4life
0
224
Member Avatar for d0nut

There is a link at the bottom of the thread to "Mark as Solved". I've marked this one for you :)

Member Avatar for d0nut
0
126
Member Avatar for JamesCherrill

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

Member Avatar for JamesCherrill
0
159
Member Avatar for baudday

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

Member Avatar for baudday
0
125
Member Avatar for jdbarry

That would be an issue for the instructor to deal with, not forum moderators here.

Member Avatar for ~s.o.s~
0
83
Member Avatar for Hafner99

[QUOTE=Techie08;829024]Might wanna repost in programming...[/QUOTE] Perhaps not, four years later...

Member Avatar for bobchrist
0
113
Member Avatar for Kishorey

Packages have nothing to do with "gadgets". The answer is as meaningless as the original question.

Member Avatar for Kishorey
0
126
Member Avatar for ShadowScripter

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.

Member Avatar for MattEvans
0
132
Member Avatar for christiangirl

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]

Member Avatar for kvprajapati
0
172
Member Avatar for JamesKox
Member Avatar for kvprajapati
0
2K
Member Avatar for flash121

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]

Member Avatar for flash121
0
178
Member Avatar for rickarro

Why not set the parameters of your query to only pull records where m=$todaysMonth and d=$todaysDay and y=$todaysYear?

Member Avatar for rickarro
0
168
Member Avatar for netdoer

Your original version was evaluating[code](not a) equal to (b)[/code]when you wanted [code](a) not equal to (b)[/code]

Member Avatar for netdoer
0
89
Member Avatar for sacarias40

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.

Member Avatar for sacarias40
0
183
Member Avatar for tadisaus2

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.

Member Avatar for tadisaus2
0
128
Member Avatar for KirkPatrick

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.

Member Avatar for JamesCherrill
0
2K
Member Avatar for babigirl

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.

Member Avatar for Ezzaral
0
409
Member Avatar for hemant ghagre

I would give serious consideration to doing it in VB.NET or C# instead. VB6 is legacy work at this point.

Member Avatar for vietnamvisa
0
40
Member Avatar for BenzBoy

Many ISPs offer a small amount of web space for a personal page with your account. I would check with your service provider first.

Member Avatar for BzzBee
0
109
Member Avatar for onlinegear

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 …

Member Avatar for peace_of_mind
0
114
Member Avatar for jaypaul

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.

Member Avatar for Ezzaral
0
89
Member Avatar for rosiecomsoft

It means you tried to run something that doesn't have a class definition. You are probably in the wrong directory.

Member Avatar for Ezzaral
0
82
Member Avatar for joker21

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.

Member Avatar for Ezzaral
0
245
Member Avatar for Vilakazi

Well, I don't see how you expect anyone to help you when you did not post a question.

Member Avatar for Will Gresham
0
65
Member Avatar for redmaverick

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.

Member Avatar for redmaverick
0
118
Member Avatar for K?!

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 …

Member Avatar for BestJewSinceJC
0
134
Member Avatar for freddiecool

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?

Member Avatar for Ezzaral
0
214
Member Avatar for smthdeedog48

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 …

Member Avatar for Ancient Dragon
0
322
Member Avatar for lifeworks

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]

Member Avatar for Ezzaral
0
53

The End.