3,927 Posted Topics
Re: This is your third post asking for these definitions of basic technical terms. Are you completely inept at searching on your own or are you just too lazy to do the job? It's a freaking keyboard. Why would you even put that in a manual at all? That's like defining … | |
Re: Move the validate() call down after you add the "Game" component[code] c.add(Game, BorderLayout.CENTER); c.validate();[/code] | |
Re: You can go up to nearly 4GB with the 32-bit, so you still have room to nearly double your current ram before you would need 64-bit addressing. | |
Re: [url]http://www.daniweb.com/search/search.php?q=Final+Year+Project[/url] | |
Re: You're adding your components to the frame content pane itself - not the JPanel that you're constructing. So you end up with an empty panel plus your splitpane. You just need alter two lines to fix that[code] frame = iframe; // you want to set the panel layout and pass … | |
Re: Sure, you can return any int you want from System.exit() and the convention is that a non-zero value is abnormal termination. You can return a specific int for any condition you wish to pass back to the script and report the specific problems or take further action based on that … | |
Re: Perhaps the OP means "cute" girl? That 'e' can make a lot of difference :) ![]() | |
Re: If you need to retrieve info about the columns in the result set, you can get that with [URL="http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html#getMetaData()"]ResultSet.getMetaData()[/URL]. The simpler way would be to just loop the result and append your column values with the [iCODE]String.valueOf( rs.getObject(index) )[/iCODE] with whatever delimiter you want to use. | |
Re: What you describe sounds like it should work just fine. Perhaps you have a bug in adding to your x position or you are re-declaring x to be zero each iteration? Hard to say without code. | |
Re: It is most likely a focus issue. Read the tutorial on writing key listeners: [url]http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html[/url] If you need to respond to specific keys being typed, it's usually easier to use a [URL="http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html"]key binding[/URL] instead of a key listener. | |
Re: I'd recommend reading this: [url]http://www.daniweb.com/forums/announcement9-2.html[/url] Begin outlining the logic of the program enough to ask specific questions. | |
Re: Yes, I would imagine that your college would prefer that you at least did a little work on it yourself. They probably have some policies about that. Edit: Hmm, yeah, they do: [url]http://ctech.smccme.edu/Policies.html#Academic_Honesty_and_Plagiarism_[/url] | |
Re: I've used the Netbeans GUI builder for years and I don't know what you're referring to. Perhaps if you could be more specific someone could offer advice? | |
Re: I would guess that you might be declaring a local "exit" button variable and adding that to the container, instead of the one that you have declared at the class level. I can't really say for certain with just the excepts that you posted. | |
Re: [CODE]booster1 = numBoxes.BandBooster(name);[/CODE]is not valid and will not compile. You need to updateSales() for "booster1", which you have a method for. | |
Re: The api doc on getElementsByTagName states that it [QUOTE]Returns a NodeList of all descendant Elements with a given tag name, in document order. [/QUOTE]So yes, you should be able to pair them directly. On the second question, you say the sax parser is dying on an out of memory or … | |
Re: [QUOTE=mobmgg;1065411]convert for loop to a while loop for count= 1 to 50 display count End for[/QUOTE] [CODE]while (notPayingAttentionToTheRules) { ignore(); }[/CODE] Start a new thread if you have a question. Show some effort if you would like assistance. | |
Re: That error message should contain a little more information at the end. They are appending the string description on that line. If you want more info than that, add an "e2.printStackTrace()" in the catch block. The app might need the images in the jar file. Open up the original jar … | |
Re: Happygeek already pointed out our acceptable use policy in your other thread. Deletion of forum content is not merely a matter of request. Once you posted the information in publicly available forum, it became non-private by your own choice. Edit: Cross-post with jbennet. Sorry for any confusion. | |
Re: You need to add the jar files for those libraries to your project properties. In the Project Propteries window, select Libraries and add those jars in the Compile section. | |
Re: Hmm, I thought the genius bar was set a little higher. Read carefully the API doc on [URL="http://java.sun.com/javase/6/docs/api/java/util/Scanner.html#hasNext()"]hasNext()[/URL], especially the part about not advancing. Once you actually get the token, you want to compare that with "input", not the scanner "mob". Also, for future reference, don't create multiple threads for … | |
Re: You mentioned the OpenOffice API above. Have you tried that? I know they have a java-based API for automation, but I haven't used it personally. | |
Re: This is the Introductions forum - not the "Give me teh projectz" forum. Closing. | |
Re: [QUOTE=ramjeev;1062750]Thanks masijade.Still,not clear about this. Say,test is a class which doesn't hav any parents.In such a case,why should i go specifically for runnable implementation instead Thread inherit.Pls,let me explain,the advantage of using runnable.[/QUOTE] If there isn't any behavior of Thread that you need to alter by subclassing, why [I]would[/I] you … | |
Re: Write code to parse [URL="http://www.google.com/search?q=site%3Adaniweb.com+final+project"]this data[/URL] and make a selection. | |
Re: Take a look at [URL="http://java.sun.com/javase/6/docs/api/java/awt/GraphicsEnvironment.html"]GraphicsEnvironment[/URL] and [URL="http://java.sun.com/javase/6/docs/api/java/awt/GraphicsDevice.html"]GraphicsDevice[/URL]. [URL="http://java.sun.com/javase/6/docs/api/java/awt/Toolkit.html"]Toolkit[/URL] has some limited info as well. | |
Re: Start with the Sun tutorial on printing: [url]http://java.sun.com/docs/books/tutorial/2d/printing/index.html[/url] | |
Re: I don't know. Why don't you add a few more println() statements to see how far you're getting in the program and where it's breaking down? At the very least, post what you suspect the problem is. Help people help you instead of just asking "why doesn't this work". | |
Re: You could use something like this for your listener[CODE]ActionListener radioListener = new ActionListener() { public void actionPerformed(ActionEvent e) { JRadioButton clickedButton = (JRadioButton)e.getSource(); clickedButton.setBackground(Color.RED); if (clickedButton.isSelected()) { for (Enumeration<AbstractButton> buttons = bGroup.getElements(); buttons.hasMoreElements();) { AbstractButton b = buttons.nextElement(); if (b != clickedButton) { b.setEnabled(false); } } } } };[/CODE] | |
Re: Here you have declared the type and size of the array[CODE]MovingPlatform[] platforms; platforms = new MovingPlatform[1];[/CODE]but you must still create an instance of each element[CODE]platforms[0] = new MovingPlatform();[/CODE] | |
Re: Closing this thread since you already started a new thread with additional information here: [url]http://www.daniweb.com/forums/thread242344.html[/url] Please do not create multiple threads for a single question. | |
Re: The problem is that all of that code is executing on (and holding up) the event queue, which is also responsible for repainting. You need to split that code off into a separate thread that calls for repaint() on the event queue when needed with [iCODE]EventQueue.invokeLater(Runnable)[/iCODE]. | |
Re: Then it seems you are incapable of performing that job and another should be hired to do it instead. | |
| |
Re: The code fragment that you posted would only result in a single instance of the panel and should behave exactly as you want it to. The part I don't follow is that you say the panel is a class member of the frame, but you are making a [iCODE]frame.add()[/iCODE] call. … | |
Re: Did you change the [iCODE]=="n"[/iCODE] to [iCODE]equals("n")[/iCODE] as Sciwizeh mentioned? | |
Re: It looks like you can download the Java SE tutorial from Sun here: [url]https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=tutorial-2009_09_23-oth-JPR@CDS-CDS_Developer[/url] | |
Re: I would guess you are getting auto-banned for one of the user modes the mibbit client is setting. [icode]+iwx = invisible, see wallusers, hide host[/icode] | |
Re: The code you posted won't compile - improper structure - which will certainly affect the visibility of those buttons. You also haven't set [iCODE]howMany[/iCODE] to any value. | |
Re: Tutorial here: [url]http://java.sun.com/docs/books/tutorial/essential/regex/index.html[/url] Pattern usage info here: [url]http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html[/url] | |
Re: I have a free upgrade coming from PC purchase as well, but I think I may wait a few more months. | |
Re: She's still about. Just a couple of days ago she popped in for this post in classic form: [url]http://www.daniweb.com/forums/post1047754.html#post1047754[/url] | |
Re: Well, if you have a static IP address with a registered domain, he could have obtained it from domain registry look up. Though this really has no relation to Java at all. | |
Re: Have you even bothered to start writing a "Friend" class yet? Started with a basic input loop perhaps? Or are you just sitting there waiting on someone to write all of this for you? Your first post said it was urgent, yet 2 days later you haven't started? You may … | |
Re: It may be the "look and feel" you're using. The "Windows" L&F doesn't show the background color except for a tiny strip along the edge of the border, but "WindowsClassic" does show the background color.[code] try { UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); } catch (Exception ex) { ex.printStackTrace(); }[/code] | |
Re: Yes, you can use internal frames for that: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html[/url] | |
Re: Well, sounds like you need to start learning Swing: [url]http://java.sun.com/docs/books/tutorial/uiswing/index.html[/url] Post [I]specific[/I] questions when you run into difficulties. And use [noparse][CODE] [/CODE][/noparse] tags. By 15 posts, you should know this. | |
Re: First you need help understanding the definitions of the words "complex" and "simple" and their relationship. | |
Re: Just have an int[] array variable like "selectedFares[]" that points to the correct fare array. Your stateChanged method just needs to set it when they choose one, i.e.[CODE]switch (option) { case 0: selectedFares = fare; break; case 1: selectedFares = fareo; break; ... etc }[/CODE]If your fares were in a … | |
Re: Ok congratulations, you've demonstrated that you can paste your homework. Do you have any specific questions? Anything at all to show that you have given this the least bit of thought? |
The End.