537 Posted Topics

Member Avatar for Dani
Member Avatar for majestic0110

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 …

Member Avatar for majestic0110
0
165
Member Avatar for majestic0110

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 …

Member Avatar for PhilliePhan
0
132
Member Avatar for kabirieram

Hello kabirieram, and welcome to DaniWeb :) the C#, VB.NET and ASP.NET forums are bound to be of use to you!

Member Avatar for majestic0110
0
33
Member Avatar for southsino
Member Avatar for majestic0110
0
35
Member Avatar for majestic0110
Member Avatar for majestic0110
0
133
Member Avatar for feoperro

why not use a JSpinner? EDIT> misread the question, just use a JFormattedTextField as said by the other two.

Member Avatar for feoperro
0
515
Member Avatar for chico2009

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!

Member Avatar for ov3rcl0ck
0
279
Member Avatar for shashikant.v

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 …

Member Avatar for majestic0110
0
113
Member Avatar for majestic0110

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!

Member Avatar for johnvitc
0
181
Member Avatar for Shigekazu

Have you added the panel to the JFrame? Is the JFrame set to "setVisible(true)"? Can you post the rest of the code please?

Member Avatar for quuba
0
162
Member Avatar for nope3d

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.

Member Avatar for majestic0110
0
90
Member Avatar for tuffyg

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]

Member Avatar for majestic0110
0
111
Member Avatar for jakx12

Take a look here: [URL="http://www.daniweb.com/forums/thread21301.html"]http://www.daniweb.com/forums/thread21301.html[/URL]

Member Avatar for jakx12
0
95
Member Avatar for serkan sendur

When did JWenting leave? I have been away for a while, I must have missed that. :-/

Member Avatar for jasimp
-2
372
Member Avatar for Nishanthi
Re: java

You can download NetBeans : [URL="http://download.netbeans.org/netbeans/6.0/final/"]here[/URL] :)

Member Avatar for majestic0110
0
63
Member Avatar for penguin22

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.

Member Avatar for majestic0110
0
113
Member Avatar for theo19

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 …

Member Avatar for majestic0110
0
201
Member Avatar for sakhi kul

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.

Member Avatar for majestic0110
0
101
Member Avatar for Gatayo

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

Member Avatar for majestic0110
0
101
Member Avatar for george21

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 …

Member Avatar for majestic0110
0
159
Member Avatar for justM

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 …

Member Avatar for red_gal_2005
0
56
Member Avatar for msalahu

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 …

Member Avatar for quuba
0
379
Member Avatar for serkan sendur

Good question - I was wondering that myself ! I liked the "big brother" power it gave me lol

Member Avatar for Nick Evan
-1
176
Member Avatar for serkan sendur

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!

Member Avatar for serkan sendur
0
686
Member Avatar for redrocket0274

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

Member Avatar for VernonDozier
0
107
Member Avatar for kahaj

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 …

Member Avatar for majestic0110
0
237
Member Avatar for jrosh

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

Member Avatar for majestic0110
0
278
Member Avatar for majestic0110

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]

Member Avatar for quicktpgo
1
268
Member Avatar for kkcaddy

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 …

Member Avatar for kkcaddy
0
101
Member Avatar for Nithya.G

Hi there Nithya.G, please show us where you have got to so far, and we can help from there.

Member Avatar for Nithya.G
0
85
Member Avatar for TheWhite

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]

Member Avatar for majestic0110
0
119
Member Avatar for Moirae
Member Avatar for sknake
0
1K
Member Avatar for Minald

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 …

Member Avatar for ddanbe
0
95
Member Avatar for jrosh

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 …

Member Avatar for majestic0110
0
122
Member Avatar for ankitjain1110

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 …

Member Avatar for kvprajapati
0
133
Member Avatar for ZER09

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]

Member Avatar for majestic0110
0
44
Member Avatar for b89smith

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 …

Member Avatar for majestic0110
0
227
Member Avatar for h3llpunk

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 ?

Member Avatar for ithelp
-1
89
Member Avatar for kkcaddy

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]

Member Avatar for BestJewSinceJC
0
114
Member Avatar for runee1000

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 …

Member Avatar for fox07
0
223
Member Avatar for Dani
Member Avatar for Techwriter10

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]

Member Avatar for Techwriter10
0
367
Member Avatar for Jx_Man
Member Avatar for Ancient Dragon
Member Avatar for jasimp

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 …

Member Avatar for majestic0110
0
157
Member Avatar for Narue
Member Avatar for Narue

I have built a quicksort application but it is nowhere near as efficient & tidy as this ! nice work!

Member Avatar for Matt Labbé
1
1K
Member Avatar for chuppy

Sounds like a homework question to me! Try google, I just did and got the answer in all of the first page of links

Member Avatar for JamesCherrill
0
112
Member Avatar for Radhika.Gupta

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!

Member Avatar for majestic0110
0
46

The End.