3,927 Posted Topics

Member Avatar for ezkonekgal

Posts can be edited within 30 minutes of submission by clicking the Edit button. After 30 minutes, only a moderator or administrator can edit it and will only do so for certain reasons.

Member Avatar for Dani
0
91
Member Avatar for islam-morad

If you trace the function values through a small test node, you will see how the sum is automatically updated as the nested calls return back up the call stack.

Member Avatar for islam-morad
0
132
Member Avatar for toferdagofer

Just assign the elements your new instances[code]movies[0] = new Movie(...);[/code]or you can initialize them all at once[code]int[] movies = { new Movie(...), new Movie(...), ... };[/code]

Member Avatar for Ezzaral
0
3K
Member Avatar for anthwon

Help, perhaps - do your homework, no. Ask specific questions. Post the code you have started with and describe what you are having trouble with.

Member Avatar for anthwon
0
281
Member Avatar for d2thalo

You can use the [URL="http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2691&lngWId=2"]JDBC-ODBC bridge driver to access an Access database[/URL] through the [URL="http://download.oracle.com/javase/tutorial/jdbc/index.html"]JBDC API[/URL]:

Member Avatar for Ezzaral
0
143
Member Avatar for tyson.crouch

I would throw in a vote for [URL="http://www.h2database.com/"]H2[/URL] for embedded use. Derby doesn't have a boolean data type, which is just irritating. Feature comparison: [url]http://www.h2database.com/html/features.html#comparison[/url] It's also slower: [url]http://www.h2database.com/html/performance.html[/url]

Member Avatar for Ezzaral
0
118
Member Avatar for alexdlaird
Member Avatar for bharath_sh

The OP didn't ask for help - they asked for a project to be mailed to them. His response was entirely appropriate.

Member Avatar for Ezzaral
-1
127
Member Avatar for shandow

What is the problem with those inputs? And why repeat the exact same code in the I,J,K,L blocks when you can reduce that to a single if() statement?

Member Avatar for NormR1
0
525
Member Avatar for samuel17

Certainly you can have multiple conditions. In your example above though, you should have an outer set of parenthesis around the entire expression. The parens around each clause are optional.ie[code]while(yearsloop <= years && selection == JOptionPane.YES_OPTION)[/code]

Member Avatar for tong1
0
240
Member Avatar for sharkymo

Career advice: Learn to communicate in a professional manner if you expect to be taken seriously. No company recruits individuals who believe "IM speak" is appropriate outside of a chat room or SMS message.

Member Avatar for xtrmR
0
380
Member Avatar for geniliasen

Ok, I think this is covered well enough. More SEO-spam-not-quite-answers is not going to help. Thread closed.

Member Avatar for Ezzaral
0
152
Member Avatar for AirGear

You mean to honestly say you Googled 'java graphics' and found nothing? Was your monitor turned on?

Member Avatar for AirGear
0
93
Member Avatar for Intrevix

You only have a partial expression after your OR operator[CODE]if (outsideTemperature < -58 || > 41) [/CODE]You aren't comparing anything to 41 in that statement. If you want to check it against 'outsideTemperature' then you must state that explicitly. The compiler just sees that you have nothing on the left …

Member Avatar for adams161
0
181
Member Avatar for Nathaniel10

If those are just entries in your log files and the result was 404 or 403, you don't need to worry about anything. Those are just bots seeking vulnerable spots. If you don't even have such a /_vti_bin/ directory, they can't exploit anything in it. [B]>Despite the fact that they …

Member Avatar for Nathaniel10
0
160
Member Avatar for blanco_curious

That is not a question - it's a dump of your assignment. Ask specific questions and show that you have made some effort with this if you would like others to offer some assistance.

Member Avatar for Ezzaral
0
379
Member Avatar for fortiz147
Member Avatar for tbartley11

[B]> 5.God is not involved in the marriages.[/B] [B]> 7. Live Holy Lives[/B] Are you implying that atheists cannot sustain a healthy marriage? What kind of ignorant drivel is that?

Member Avatar for vaibhav1983
-1
121
Member Avatar for abdull110

This is not a homework completion service. Show that you have put in some effort on this assignment. Ask specific questions regarding the areas that you do not understand.

Member Avatar for Ezzaral
0
156
Member Avatar for jorgeflorencio
Member Avatar for star_lavender

I have no idea about JXTable, never used it, but updating data is no problem in the JTable component. You simply update the underlying model and fire a dataChanged event. Some methods of the default table model fire that event for you automatically. Edit: I don't see where you actually …

Member Avatar for Ezzaral
0
249
Member Avatar for lilsmurf

From the API doc for [URL="http://download.oracle.com/javase/6/docs/api/java/util/Scanner.html#nextInt()"]Scanner.nextInt()[/URL][QUOTE]Throws: InputMismatchException - if the next token does not match the Integer regular expression, or is out of range [/QUOTE] "11/11/2010" does not look much like an int.

Member Avatar for NormR1
0
749
Member Avatar for dragonshadow001

Define a JLabel at the class level and add that your panel. Create a [URL="http://download.oracle.com/javase/tutorial/uiswing/misc/timer.html"]Swing Timer[/URL] that calls your function and sets the label text with that value.

Member Avatar for Ezzaral
0
364
Member Avatar for kezkez

If you are trying to use the "quarter" enum value, you need to fully qualify it: [iCODE]SlotMachine.CoinSlot.quarter[/iCODE] "quarter" is not part of the TestSlotMachine class, so it cannot be used directly.

Member Avatar for kezkez
0
163
Member Avatar for DeadSoul

That depends on how you wish to present the report. You can print it yourself with the AWT printing mechanisms or you can look into a reporting tool such as Jasper Reports of JFreeReport.

Member Avatar for Ezzaral
0
103
Member Avatar for BzzBee

BzzBee, this thread is not a PHP discussion and is therefore off-topic here. If you wish to post community feedback, [URL="http://www.daniweb.com/forums/forum26.html"]there is a forum to do so[/URL]. Also, as already mentioned above, everyone answering questions here is doing so voluntarily. Complaining that they are not solving your issues in a …

Member Avatar for Ezzaral
-4
117
Member Avatar for plasticfood

Try [URL="http://download.oracle.com/javase/6/docs/api/java/lang/String.html"]String.split()[/URL].

Member Avatar for CrazyDieter
0
132
Member Avatar for codeFaceMcGee

Sure, with an embedded database it's no trouble. We do this with H2 for every new project when it's first created. You just run a script with your data definition code in it. Edit: H2 can also create an [URL="http://www.h2database.com/html/features.html#in_memory_databases"]in-memory database[/URL] that does not persist when closed.

Member Avatar for codeFaceMcGee
0
623
Member Avatar for manishanibhwani

Java SE 6 API docs: [url]http://download.oracle.com/javase/6/docs/api/[/url]

Member Avatar for Ezzaral
0
70
Member Avatar for vinay1424

Well, line 12 is generating a random int from 0-5. So what effect do you think that has in line 13?

Member Avatar for stultuske
0
116
Member Avatar for Ancient Dragon

Neither "Go to first new post" nor "Go to last post" links work for news stories.

Member Avatar for Nick Evan
0
154
Member Avatar for Nidhi S.

Add [iCODE]e.printStackTrace();[/iCODE] in your catch blocks to show the detailed stack trace for your exceptions.

Member Avatar for Nidhi S.
0
104
Member Avatar for sciprog1

You haven't initialized any of your array variables in your Matrix_Mult class.

Member Avatar for sciprog1
0
100
Member Avatar for redZERO

Where are you putting the jar? It should treat the jar file location as the root and paths relative to that location should resolve just fine.

Member Avatar for NormR1
0
2K
Member Avatar for blknmld69
Member Avatar for boiishuvo

[B]> How do I move the image to the top (just below the title)?[/B] Change the drawImage() coordinates. Of course, then you will have to make some space for it at the top. So you would have to change your component layout.

Member Avatar for Ezzaral
0
299
Member Avatar for geeks
Member Avatar for tanuj863

I guess you could start here: [url]http://download.oracle.com/javase/tutorial/networking/index.html[/url] Anything more specific would require a more specific question.

Member Avatar for tanuj863
0
83
Member Avatar for rasputinj

[QUOTE=Phaelax;519960]StringTokenizer has been deprecated for years now, you should use String.split()[/QUOTE] That post was from Feb 2004 :) Also, the one that nate tacked on to this little piece of history should probably use StringBuilder instead of += for constructing the string.

Member Avatar for abcd1220
0
2K
Member Avatar for bangor_boy

Add "\n" for a line break. You can inline that with the text if you like. ie [iCODE]+"\nBall position: "[/iCODE] Edit: You can also look into the [URL="http://download.oracle.com/javase/7/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)"]String.format()[/URL] method if you like.

Member Avatar for jon.kiparsky
0
86
Member Avatar for MichaelWClark
Member Avatar for hidash_in

Then listen when he tells you that you CANNOT DO what you have been trying to do. You have been told this in many posts before in the many threads you have created on this same topic. Get it through your head - [B]You can't do this, so quit asking[/B]

Member Avatar for Ezzaral
0
300
Member Avatar for packetpirate

Calculate the center point (appW/2, appH/2) and then use those to figure where to place your upper left corner of the rect.

Member Avatar for packetpirate
0
5K
Member Avatar for Katana24

Just a couple of minor things. The main trouble is that you don't reset y to zero, so it quickly goes right off the screen after the first call to paint. Here's your painting method revised. You should normally override paintComponent() instead of paint() unless you need to change other …

Member Avatar for Ezzaral
0
2K
Member Avatar for bangor_boy

Those will only return the min or max value of a collection, whereas you need to sort your collection based upon their points. You could create a [URL="http://download.oracle.com/javase/7/docs/api/java/util/Comparator.html"]Comparator[/URL] and use [URL="http://download.oracle.com/javase/tutorial/collections/algorithms/index.html#sorting"]Collections.sort()[/URL] if your assignment allows the use of those methods.

Member Avatar for Ezzaral
0
157
Member Avatar for LianaN

You need to [URL="http://download.oracle.com/javase/tutorial/uiswing/components/menu.html#event"]add an ActionListener[/URL], just like you would for a JButton, or you can use [URL="http://download.oracle.com/javase/tutorial/uiswing/misc/action.html"]Actions[/URL]. Here is the Sun tutorial on menus: [url]http://download.oracle.com/javase/tutorial/uiswing/components/menu.html[/url]

Member Avatar for NormR1
0
180
Member Avatar for javadumbass

[B]>> OK, well done, that looks like a decent start.[/B] It's a decent start copying this program: [url]http://www.engineeringserver.com/forum/java+paint+application-t2342.0.html[/url] Not much of a start showing any effort though. Perhaps the OP will post some more specific questions indicating that he understands the code he posted and what difficulties he is having …

Member Avatar for javadumbass
0
1K
Member Avatar for Toddras

With a text editor, I imagine. Do you have a more specific question perhaps? Have any code as a starting point?

Member Avatar for Ezzaral
0
43
Member Avatar for Shotty

Take the variable types out of your super() calls[CODE]super(int accountNumber, String accountOwner);[/CODE]You just pass the variables themselves.[CODE]super(accountNumber, accountOwner);[/CODE]

Member Avatar for Shotty
0
259
Member Avatar for LianaN

You will need to decide upon a target minimum resolution and develop towards that. GridBagLayout and appropriate use of scroll panes, tabbed panes, etc. will get you the rest of the way towards supporting various resolutions. GridBagLayout offers a lot of flexibility through anchoring, filling, and setting component weights to …

Member Avatar for Ezzaral
0
152

The End.