537 Posted Topics
Hi all, I hope you are well. I am back from a long break (about a year), and thought I'd re-introduce myself, as I plan on staying around this time! After a year or so's dose of bad health, hospital visits and work getting in the way, I am pleased … | |
Hi all, I hope you are well. I was just performing a routine quick scan of my laptop this morning and was horrified to see that MBAM picked up 19 malicious items! I am a safe web surfer, do not use torrents or visit suspect sites, so imagine my horror … | |
Re: Hello kabirieram, and welcome to DaniWeb :) the C#, VB.NET and ASP.NET forums are bound to be of use to you! | |
Is there anyway I can bring to a moderators attention a spurious PM? | |
![]() | Re: why not use a JSpinner? EDIT> misread the question, just use a JFormattedTextField as said by the other two. ![]() |
Re: Hi there, I have found a really good link on how to read a file in Python in various ways: [URL="http://www.java2s.com/Tutorial/Python/0240__File/Demonstratesreadingfromatextfile.htm"]here[/URL] I hope this helps! | |
Re: Take a look here: [URL="http://stackoverflow.com/questions/527719/how-to-add-hyperlink-in-jlabel"] hyperlink Jbutton[/URL] An answer on that thread states that it might be better to add the Hyperlink to a JButton rather than a JLabel, so that you can just use ActionListener for event handling. I am inclined to agree with this, the poster also provides … | |
Hi all, I hope you are well. Here is something I thought you might find interesting. It's a list of the top 100 news stories of the 20th century: [URL="http://ctl.stanford.edu/Tomprof/postings/115.html"]here[/URL] Very interesting! | |
Re: Have you added the panel to the JFrame? Is the JFrame set to "setVisible(true)"? Can you post the rest of the code please? | |
Re: I would suggest you read this tutorial on event handling: [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/intro.html"] sun tutorial [/URL] This has the information you need. | |
Re: On line 15, you are parsing the user input to an integer, and integers do not function with decimals. Parse the input string to a double: [CODE=java]double mileage = Double.parseDouble(mileageInput);[/CODE] | |
Re: Take a look here: [URL="http://www.daniweb.com/forums/thread21301.html"]http://www.daniweb.com/forums/thread21301.html[/URL] | |
Re: When did JWenting leave? I have been away for a while, I must have missed that. :-/ | |
Re: You can download NetBeans : [URL="http://download.netbeans.org/netbeans/6.0/final/"]here[/URL] :) | |
Re: As far as I can tell, the Intel(R) 82865G Graphics Controller does not support pixel shader 1.1 I am afraid. [URL="http://www.intel.com/support/graphics/sb/cs-014257.htm"]More[/URL] information. | |
Re: theo19, for a start you have confused the names on lines 22 to 24, you have written: [CODE=java] JPanel row2pane1 = new JPanel(); JPanel row3pane1 = new JPanel(); JPanel row4pane1 = new JPanel();[/CODE] instead of [CODE=java] JPanel row2panel = new JPanel(); JPanel row3panel = new JPanel(); JPanel row4panel = new … | |
Re: Can you set the fields to [I]invisible[/I]? For example: [CODE=ASP.NET]DetailsView1.Fields[index_to_hide].Visible = false;[/CODE] in your Page_Load event? where index_to_hide corresponds to the index in your collection you wish to hide. I hope this helps. | |
Re: I wrote a paint application quite recently in Java actually, if you are willing to show effort and make a start - then you could come back with specific questions. I, and my peers will no doubt be more inclined to offer you help. But we DO NOT do peoples' … | |
Re: As quuba said, you have declared panelCenter2 but you are still adding the JButtons jn4, jn5 and jn6 to panelCentre1 - which is positioned using BorderLayout.CENTER. Hence why your last three buttons are not positioned in the SOUTH. One of the pitfalls of "copy and paste" ! P.S. also, please … | |
Re: Hi justM, and welcome to DaniWeb! I agree with you, this community is a great learning resource, especially for those learning programming. The expertise of the posters on these forums is tremendous! And yes, peter_budo is truly an example to us all! Pat on the back Peter! Anyway, have a … | |
Re: Hi msalahu, you could try compiling the source code from the command line and add the "deprecation" switch, which will show you a description of members/classes that have been used and have been deprecated. Then you ought to refer to the appropriate class documentation for what part of the API … | |
Re: Good question - I was wondering that myself ! I liked the "big brother" power it gave me lol | |
Re: Hi Serkan Sendur, I hope you are well. Reading data from a .msi file is not something I have done myself before but I did some research for you and came up with this : [URL="http://rongchaua.net/blog/c-how-to-read-data-from-msi-file/"]http://rongchaua.net/blog/c-how-to-read-data-from-msi-file/[/URL] I hope this helps! | |
Re: Please use code tags people, the code is very ugly without them, and difficult to read. redrocket0274 - what is your program meant to do ? At the moment it doesn't look like its doing much of anything. to use code tags just wrap the code in tags: [CODE =java] … | |
Re: Peter_budo you beat me to it! :) Kahaj, what you could do is : declare and initialize MenuBar as a class field, instead of a local variable in method buildMenus() : [CODE=java]JMenuBar MenuBar;[/CODE] you can then initialize this variable in the class constructor: [CODE=java]MenuBar = new JMenuBar()[/CODE] then add MenuBar … | |
Re: You need to add ItemListener to your combo-box. The sun tutorial is brilliant, look here : [URL="http://http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html"]http://http://java.sun.com/docs/books/tutorial/uiswing/components/combobox.html[/URL] I hope that helps! EDIT: lol James Cherrill, you just beat me to it! Same tutorial as well, great minds... | |
Hi all hope you are well, take a look at this it is funny (and possibly a [I]little [/I]bit true). [QUOTE][url]http://flickabooger.com/archive/2008/04/29/why-women-live-longer-than-men---a-pictorial.aspx[/url][/QUOTE] | |
Re: Hi kkcaddy, you need to add the .java extension to the javac command in order to compile a java file. I.e: [QUOTE]javac helloworld.java[/QUOTE] then you can run the file by using the java command like so: [QUOTE]java helloworld[/QUOTE] You can find more information on the javac command here: [URL="http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html"]http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html[/URL] I … | |
Re: Hi there Nithya.G, please show us where you have got to so far, and we can help from there. | |
Re: Are you saying that when you put the application in a jar file , the image is not found ? I am not sure but I think this article might help you : [URL="http://www.cs.princeton.edu/introcs/85application/jar/jar.html"]http://www.cs.princeton.edu/introcs/85application/jar/jar.html[/URL] | |
![]() | Re: Can you post the code where you instantiate an object of Field class? |
Re: This question should probably be moved by a moderator to the web development section of the forums, but as far as your query goes: using images is a good way of achieving cross-browser compatibility. But if you do not want to use images, you can use CSS to achieve a … | |
Re: You need the JVM to execute Jar files. The JVM is part of the JRE (Java Runtime Environment) or JDK (Java Development Kit). Only Java developers will need the JDK though, so if you just want to run a Java program you need the JRE. As far as I am … | |
Re: Hi Ankitjain1110 and welcome to the forums. This question is very frequently asked on Daniweb so I might point you to search the archives for information regarding this. That aside, here is a link that I think you will find most useful : [URL="http://www.asp.net/learn/videos/video-47.aspx"]http://www.asp.net/learn/videos/video-47.aspx[/URL] I hope this helps, if you … | |
Re: I presume you are referring to inner classes, or nested classes? If you are referring to inner classes - Sun has a good tutorial on thier website regarding inner classes: [URL="http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html"]http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html[/URL] | |
Re: Hi B89Smith, you can add the -deprecation option to the java command, as per the message, and recompile: [QUOTE]javac [I]DnldURL.java[/I] -deprecation[/QUOTE] You are using a part of the API that is now obsolete. The messages from the compile with the "-deprecation" switch will give you the details, then you ought … | |
Re: I just googled AI programming, and found this : [URL="http://www.aihorizon.com/index.htm"]http://www.aihorizon.com/index.htm[/URL] Maybe that is useful to you ? | |
Re: Practice, practice, practice! That's all one can do to become proficient in any programming language! Read the tutorials on Sun's website [URL="http://java.sun.com/docs/books/tutorial/"]http://java.sun.com/docs/books/tutorial/[/URL] Also, I would recommend that you search for java exercises to do, here is a good site : [URL="http://www.ibiblio.org/java/books/jdr/exercises/"]http://www.ibiblio.org/java/books/jdr/exercises/[/URL] | |
Re: Hi runee1000, welcome to the forums. Please could you use code tags [CODE][/CODE] for code, it just makes it much easier to read. [CODE] import java.util.*; /** * AWT Sample application * * @author * @version 1.00 09/09/07 */ public class Oddeven { public static void main(String[] args) { s … | |
Re: I am with you there Techwriter10, global warming is contributed to by mankind. Cows, however emit more carbon monoxide than us humans it seems.... [url]http://news.nationalgeographic.com/news/2005/08/0816_050816_cowpollution.html[/url] | |
| |
Re: Very nice, I don't know much about Python (at all in fact) and am trying to figure out why it won't work in this year and where it needs modifying but haven't figured it out yet. Will let you know when I do lol. I made a similar application myself … | |
Re: Very nice. Much better (and cleaner) than my version! | |
Re: I have built a quicksort application but it is nowhere near as efficient & tidy as this ! nice work! | |
Re: Sounds like a homework question to me! Try google, I just did and got the answer in all of the first page of links | |
Re: Even just googling for "Java final year projects" will give you masses of results. I did mine on a small applet application that was a simple game...Was fun to do ! So kept me motivated to do it! |
The End.