5,031 Posted Topics
Re: You should always check the size of the display for given mobile device and resize the components base on that. There was an interesting book on mobile games, if I found what was title I will post it here | |
Re: You can use any IDE to do your coding and compiling, but then you need Sun Java Wireless Toolkti 2.5.2 for CLDC([URL="http://java.sun.com/products/sjwtoolkit/"]Sun site[/URL], [URL="https://sdlc6d.sun.com/ECom/EComActionServlet;jsessionid=41C8820E33D2EC6B01ECED6135423AA3"]download[/URL]). Other option is to use NetBeans and download Mobility pack for it ( 2 files, [URL="http://www.netbeans.info/downloads/index.php?p=4"]CLDC[/URL] and [URL="http://www.netbeans.info/downloads/index.php?p=10"]CDC[/URL]), Eclipse and choose one of 7 plugings (I … | |
Re: If this was your code you would know that is actauly 2 java files in one you try to compile as just one file! ! ! [COLOR="Red"][B]//Employee.java[/B][/COLOR] | |
Re: Simple functonality provided by HTML example from [URL="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail"]w3scools.com[/URL] | |
Re: Pick some of these [url]http://www.daniweb.com/forums/thread62347.html[/url] | |
Re: Reading from file [URL="http://www.exampledepot.com/egs/java.io/ReadLinesFromFile.html"]tutorial[/URL] Writing to file [URL="http://www.exampledepot.com/egs/java.io/WriteToFile.html?l=rel"]tutorial[/URL] | |
Re: Not the most vonderful tutorial but should do it [url]http://www.roseindia.net/java/example/java/swing/ChangeScrollBarValue.shtml[/url]. If you want to learn on Swing this is good book [URL="http://www.amazon.co.uk/Swing-Beginners-Guide-Osborne-Mcgraw/dp/0072263148/ref=sr_1_1/202-1620678-4332616?ie=UTF8&s=books&qid=1194141556&sr=1-1"]Swing: A Beginner's Guide by Herbert Schildt[/URL] | |
Is there any other IDE for Windows CE development besides Visual Studio? | |
Re: It is little silly to start war over something like this... On one hand I do argee with jwenting that university does not fully prepare you for real-life job as programmer. It is very short time spam to get and learn something in depth as they try to give as … | |
Re: I just want to make a small side note that you can transfer, or better say save, your excel spreadsheets as XML document and use it with PHP or any other language that is able to process it... This way you can also keep it easily uptodate too. | |
Re: To be more precise, post your code which you should have by now at least started. Point where you running into troubles and we will see what can be done about it | |
Re: if you want to match string agains string you need to use String method [URL="http://java.sun.com/javase/6/docs/api/java/lang/String.html#equals(java.lang.Object)"]equals()[/URL] or [URL="http://java.sun.com/javase/6/docs/api/java/lang/String.html#equalsIgnoreCase(java.lang.String)"]equalsIgnoreCase(String anotherString)[/URL]. Secondly to store score you need only one variable and not four plus you DO NOT need else if part of statement! String is either what is correct answer and score get … | |
Re: Nothing like that in html. Html is just markup language in the way how you wish to display your data in browser, and has no procesing ability. These is a reason why plain html pages are called "static pages". So either find something in java or work out something on … | |
Re: [QUOTE=nschessnerd;449947]can you make those photos larger?[/QUOTE] No need for it, if you will try that program you would understand what he is about.... GridLayout is not best solution for the layout you try to do. You should consider [URL="http://java.sun.com/docs/books/tutorial/uiswing/layout/box.html"]BoxLayout[/URL], [URL="http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html"]GridBagLayout[/URL] or combination of more then one. So if we look … | |
Re: The whole for statement is wrong! Can you explain what you trying to achive? | |
Re: Windows XP look&feel? Everybody know have that looks like. Try something new ! ! ! Come on try [URL="https://substance.dev.java.net/"]Substance[/URL] | |
Re: [QUOTE=thekashyap;407580] How is it like the moderators find this thread not up to the mark, unnecessary or simply haven't seen it ![/QUOTE] What you trying to say? You been expecting to see more comments, or your post to be added to the top list as important post in the section … | |
Re: Well you did not attach anything... | |
Re: Use class [B]Arrays[/B]. This class contains various methods for manipulating arrays. Info from API on [URL="http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#sort(int[])"]sort(int[] a)[/URL] Here is a nice [URL="http://exampledepot.com/egs/java.util/coll_SortArray.html"]refference[/URL] to sorting An here is just small quick example [code] import java.util.*; public class Sort { public static void main(String[] args) { int[] arr = new int[] {5, … | |
Re: I consider rude to come here and ask for help on project for illigal activities. | |
Re: Beginning J2ME from Novice to Professional 3th edition from Apress(2005) is very good resource and google with "j2me tutorial" will give more then you can ever read. PS: Make sure you check website latest update so you do not read some irelevant old non-sence | |
Re: Always good place to start your search is [url]http://java.sun.com/docs/books/tutorial/[/url] also, google search for "java tutorial" or more specific "java button tutorial" bring plenty of other resources. To second question if I got it right, you want to use ButtonGroup and give it some caption/title. If that what you want, then … | |
Re: If you wish to get help with your code you better provide full code not just one class. Calculator class is missing. By-the-way to insert code into post do not use INLINECODE tag, but press hash sign "#" in the post bar or just simple type CODE tags and place … | |
Re: [quote]I' have no idea about Java, but I have done it in C++[/quote] for once this is java forum, secondly this post is nearly 3 years old so what you trying to achive? | |
Re: No, because it need to be checked for [I]FileNotFoundException[/I]. So you can inplemented in it own class or just a method which will deal with printing request | |
Re: you missing [I][COLOR="Red"]break[/COLOR][/I] after most cases in your switch statement | |
Re: I had some weird problem some times ago when jar created on my desktop will not run, but when I tried on laptop I had no problem at all. On the end I changed JAR file settings in Folder Options>File Types and cahnge it execution of javaw.exe from jre to … | |
Re: I changed method [I]avaragea[/I] to return [I]double[/I] if you wish you can correct it back to [I]int[/I] [code] public class AvgArray { // Array static int[] a = {1,2,3,4,5,6}; static double[] b = {6.0,4.4,1.9,2.9,3.4,3.5}; static double sum; public static double averagea(int[] array) { int sum = 0; //all elements together … | |
Re: @nschessnerd , you better test it before you submiting something or you may be providing wrong solution an waisting your and poster time... [code]import javax.swing.JOptionPane; public class GPA { private double gpa = 0.0; private int classNum; private String gradeInput; public GPA() { } public String UserInput(){ gradeInput = JOptionPane.showInputDialog("Enter … | |
Re: [QUOTE=jbennet;450907]It basically exists already (mono)[/QUOTE] Mono has still many problems to over come... | |
Re: You meam frame, if so, here is tutorial from sun [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html"]webie[/URL] | |
Re: This is how far I was able to go with search in 10 min [code] public class TestCPU { public static void main(String[] args) { System.getProperties().list(System.out); } }[/code] One of otputed values is [I]sun.cpu.isalist=[/I] which before java 1.6 provided procesor type as pentium mmx etc. However it is recently reported … | |
Re: First, you better start with research. Secondly, I do not know a person here who has experience in search engines and if there is any I do not think that person will gave code just like that. However it may answer well asked questions... | |
Re: [LIST=1] [*] Write a program which is able retrive input from user and store it in string [*] Look up method which will tell you the length of that string, length also will help to find if number of character is even or odd [*] Look up method which is … | |
Re: [QUOTE=PL.P27;450098]thanks.I compiled it and it showed me like 32 errors in the whole program for example cannot find symbol variable/method. Thanks a lot though. Appreciate it.[/QUOTE] That 32 errors are your mistakes while writing program, namy of them like this [code]inFieldPane.add([COLOR="Red"]newJLabel[/COLOR]("Given name"));[/code] OK, bellow is working version of your program. … | |
Re: Java - How to Program 6th or 7th edition from Deitel waiting for you just to read it | |
Re: Get a book, for example Deitel, Java - How to Program (6th or 7th edition) and start reading.... | |
Re: google search on topic[URL="http://www.google.co.uk/search?hl=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=java+google+earth+Latitude&spell=1"] here[/URL] | |
Re: For start, you declared SENTINEL to be a constant so it will never change [code]static [COLOR="Red"]final[/COLOR] int SENTINEL = -1;[/code] Secondly, if I interpreted your statement correctly you expect this variable have different value on the end. The value will not change even if you remove [i]final[/i] from its declaration, … | |
Re: If I'm correct you should be able to do it in through [I]web.xml[/I] in your project directory. Search for Tomcat mapping... | |
Re: Mixing Java and JavaScript what a bad idea... | |
Re: Can you be more specific is the array of type [I]long[/I] (numeric type) or it is long regarding to the length? | |
Re: You not gone be first asking such a question. If you google in most programmming forums such a question been asked. I do not know the answer but I presume it is from past times of old languages like assembler, pascal etc where programer besides of creating program had to … | |
Re: It must been your lucky day today :) I have nothing to do so I typed that code for you [code]import java.util.Scanner; class PrintMyName { public static void main(String [] args) { Scanner scan = new Scanner(System.in); // variable initation String input; String firstName = null; String middleName = null; … | |
Re: To be fair this program is in mess you should organize it little, good thing is you willing to work on it. Bellow are some uptades for you, check the red marked parts. PS: Can you please next time put each java file is separated code tags? Thanx [code] import … | |
Re: [code]GUI gui = new GUI(inventory); // Start the GUI[/code] You calling class GUI (GUI.java) that I do not see you implement it. Either you re-used your code from previous assignment and you forgot to copy and paste in new project or you actually forgot to code this class | |
Re: Have look at this tutorial [URL="http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html"]How to Write a Key Listener[/URL] that will explain a lot | |
Re: Simple forum search doesn't hurt anyone... Question asked and answerd already here [url]http://www.daniweb.com/forums/thread90051.html[/url] | |
Re: Some good examples how to work with date can be found [URL="http://64.18.163.122/rgagnon/howto.html"]here[/URL] in Java's subsection Date and Time |
The End.