3,927 Posted Topics
Re: [B]> Where a new Contact gets created called con001. Wouldn't this then just create a new con001 contact over and over again? Isn't there some way to make the next contact object be called con002, then con003 etc?[/B] Add them to an ArrayList as you create them. You don't need … | |
Re: He seems to be using [URL="http://my.opera.com/duddev/blog/show.dml/287074"]this example code[/URL], which defines a "pickRand" class with a single method to get a random string from the array[CODE]class pickRand { public static String get (String[] array) { int rnd = generator.nextInt(array.length); return array[rnd]; } } [/CODE] and he may have missed the part … | |
Re: Are you writing a JDBC driver? If not, they you don't need to implement that interface. You use it to work with the results returned from a query. | |
Re: Perhaps using [ICODE]while(parser.hasNextInt())[/ICODE] and [ICODE]parser.nextInt()[/ICODE]. | |
Re: What have you tried? Have you read the API doc for JTextArea? | |
Re: Take a look at [URL="http://download.oracle.com/javase/tutorial/networking/sockets/readingWriting.html"]Reading From And Writing To A Socket[/URL] with particular attention to the loop they use to read. | |
Re: No, you would need to use a [URL="http://download.oracle.com/javase/tutorial/uiswing/components/editorpane.html"]JTextPane or JEditorPane[/URL] for rich text like that. JTextArea only has a single style for the text. | |
Re: No, you would need to implement your own custom dialog for that. | |
Re: This site has a few good tutorials: [url]http://www.cokeandcode.com/[/url] | |
Re: [B]> I find some of the coding and syntax little intimidating, up until now I've just been clicking at Access buttons[/B] You can certainly still use Access for the database. The table creation code translates pretty easily to your table creation wizard or design view. The SQL queries may require … | |
Re: Can you post your getValueAt() code? | |
Re: [B]> which is 0 + 2*1 -1[/B] No. It is 1 + 2*1 - 1 => 2 seq2(0) returns 1, not 0. | |
Re: Perhaps something like[code]update yourTable set time_lost=theValue where ID=(select max(ID) from yourTable) and time_lost is null[/code]I don't work with MySQL specifically so there may be a slight syntax variation. | |
Re: [QUOTE=puneetkay;694042]No, Im trying to help him with the simplest way as you can see he is newbie. Even, im a newbie. im just sharing my knowledge here :) If im wrong, you seniors are here to help us. Regards, PuneetK[/QUOTE] No, you fixed some of his code and then provided … | |
Re: Change your println statement to [iCODE]e.printStackTrace();[/iCODE] and it will tell you which line the error is occurring on. | |
Re: You are getting a null value from getColumnClass, so I would look closer at what this method is returning from your model[CODE]public Class getColumnClass(int col) { return getValueAt(0, col).getClass(); }[/CODE] | |
Re: It also indicates which line that is occurring on. Look at that line and note which variables you are making method calls on. One of them is null and you need to figure out why it doesn't have a value. | |
Re: Post your code in code tags. Post specific questions or error messages. | |
Re: Not entirely sure about the background because you are using some third-party Console class that isn't part of the JDK. Check your API docs on Console. As far as the balls though, set the color before you draw each one. Set color, draw shape, set color, draw shape... Your code … | |
Re: The above code will not work. It should also be noted that we don't simply write a solution to someone's homework here and all code should be nested in [noparse][CODE][/CODE][/noparse] tags. | |
Re: That depends entirely on what you need done and where you look. Requests such as this can be made in the appropriate Business Exchange > [URL="http://www.daniweb.com/forums/forum72.html"]Looking To Hire[/URL] sub-forum. | |
Re: Start with the [URL="http://download.oracle.com/javase/tutorial/index.html"]Sun/Oracle tutorial[/URL] for it. | |
Re: Well, that is still progress to have it on the Advanced Editor, thanks! :) | |
Re: You still have problems with your method blocks and braces. The only problem with your first version was that you tried to declare the methods inside the main() method rather than outside of it. You can't declare methods within methods. The second version has no code at all in main() … | |
Re: Ok, so how do you figure resurrecting this dead thread is going to help with that? Do you actually have a question? Did you try contacting Oracle any other way? | |
Re: You have create an instance of Font first and use that in your setFont() call. Take a look at the tutorial on [URL="http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html"]using JTextArea[/URL]. | |
Re: [QUOTE=jehad;1049171]please i want the full code project solving 8 buzzle using depth and breadth first search ind if you can analyses and comparison between both algorithms i hope as fast as you can[/QUOTE] Any other homework you need us to provide ASAP on your demand? Perhaps just post your instructor's … | |
Re: Try inverting your Y coordinate by subtracting it from your height. Your original code showed transformations being applied to position the ovals, so it would seem your IR device is using a different coordinate system than your graphics context. Use plenty of System.out.println() statements to verify your coordinates and your … | |
Re: Just increment a "currentImageIndex" value in your click handler and call a routine to load and paint that image. I assume you got the basic image display working from your other thread. Note that you could just leave them in your 'names' list without converting that to an array. You … | |
Re: The empty line is fine. It still ends with a line terminator, so it's not null. Your loop will be fine and you can just ignore the empty string values. | |
Re: Take a look at the tutorial [URL="http://download.oracle.com/javase/tutorial/uiswing/components/icon.html"]How To Use Icons[/URL]. | |
Re: They don't do anything because of lines 1 and 2. You can read what translate() does here: [url]http://download.oracle.com/javase/6/docs/api/java/awt/Graphics2D.html#translate(int,%20int[/url]) Line 13 is a (somewhat inefficient and perhaps ill-fated) way of resetting back to the default starting point of your coordinate system. | |
Re: [URL="http://download.oracle.com/javase/tutorial/uiswing/index.html"]The Swing Tutorial[/URL] is quite extensive. | |
| |
Re: You could start here: [url]http://www.daniweb.com/forums/thread99132.html[/url] | |
Re: You can run [URL="http://www.h2database.com/"]H2[/URL] from a CD, but the data will be read-only. You can't update it from your application. | |
Re: I have removed the url that you posted, chinmc, but you should know that your Apache server is allowing directory traversal. I would recommend you turn that off. | |
Re: You should be overriding paintComponent(), not paint(), in your "NewClass" class. (And find a new name for that class because NewClass is an awful name for a component) | |
Re: That depends on which version of VB you are using: VB 6 or VB.NET | |
Re: Agreed. Moving this post... | |
Re: Seems you should do your dissertation on an area that you understand well and I doubt that we are the best judges of that... | |
Re: You can report such PMs as a violation of the forum rules: [QUOTE][B]Keep It Organized[/B] Do not ask anyone (member or moderator) for help by email or PM[/QUOTE] | |
Re: If your school requires that you work with a version prior to 9i, they should be willing to provide it. Otherwise, why not just work with 10g? [url]http://www.oracle.com/technetwork/database/express-edition/overview/index.html[/url] | |
Re: You may want to review some of the material in the [URL="http://www.daniweb.com/forums/thread99132.html"]"Starting Java" thread[/URL] that is stickied at the top of the forum for basics. What part of the assignment do you not understand? What do you have so far? | |
Re: Don't use == to compare strings. Use .equals() or .equalsIgnoreCase(). | |
Re: It didn't indent because you did not post it within [noparse][CODE] [/CODE][/noparse] tags. | |
Re: What errors specifically? "Numerous errors" doesn't really mean much to someone who can't see them, and since you didn't post the "die" class no one else can compile and run this. | |
Re: Please specify which language you are working with so this thread can be moved to the correct forum. | |
Re: Hi, welcome to the forums. I'm sure that someone could probably help you out with the VB code if you post the code and your questions over in our [URL="http://www.daniweb.com/forums/forum58.html"]VB.NET forum[/URL]. |
The End.