5,031 Posted Topics

Member Avatar for Rx7

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

Member Avatar for peter_budo
0
38
Member Avatar for toadzky

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 …

Member Avatar for jwenting
0
116
Member Avatar for ukankissthis

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]

Member Avatar for peter_budo
0
138
Member Avatar for mimsc

Simple functonality provided by HTML example from [URL="http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail"]w3scools.com[/URL]

Member Avatar for mimsc
0
118
Member Avatar for petzoldt01

Pick some of these [url]http://www.daniweb.com/forums/thread62347.html[/url]

Member Avatar for peter_budo
0
78
Member Avatar for Hyiero

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]

Member Avatar for galanshi
0
123
Member Avatar for Triggerhappy41

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]

Member Avatar for Ezzaral
0
119
Member Avatar for peter_budo
Member Avatar for jbennet
0
84
Member Avatar for Locke.Digitalus

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 …

Member Avatar for Charles@NYC
0
241
Member Avatar for Gary Parker

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.

Member Avatar for MidiMagic
0
103
Member Avatar for inflex

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

Member Avatar for peter_budo
0
142
Member Avatar for cutekola

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 …

Member Avatar for peter_budo
0
150
Member Avatar for Shubhra

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 …

Member Avatar for peter_budo
0
70
Member Avatar for Grub
Member Avatar for babyfrostie

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

Member Avatar for babyfrostie
0
313
Member Avatar for abar_sow

The whole for statement is wrong! Can you explain what you trying to achive?

Member Avatar for Ezzaral
0
114
Member Avatar for Triggerhappy41

Windows XP look&feel? Everybody know have that looks like. Try something new ! ! ! Come on try [URL="https://substance.dev.java.net/"]Substance[/URL]

Member Avatar for peter_budo
0
151
Member Avatar for thekashyap

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

Member Avatar for Ezzaral
1
894
Member Avatar for tlgkumar
Member Avatar for Zonr_0

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

Member Avatar for jwenting
0
195
Member Avatar for claudiu_is
Member Avatar for peter_budo
0
749
Member Avatar for sunithamcsit
Re: J2me

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

Member Avatar for peter_budo
0
104
Member Avatar for Labby77

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 …

Member Avatar for jwenting
0
93
Member Avatar for ubercat

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 …

Member Avatar for ubercat
0
160
Member Avatar for shantuli

[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?

Member Avatar for ChaseVoid
0
195
Member Avatar for jaden403

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

Member Avatar for peter_budo
0
91
Member Avatar for atrix415

you missing [I][COLOR="Red"]break[/COLOR][/I] after most cases in your switch statement

Member Avatar for masijade
0
441
Member Avatar for wegdan

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 …

Member Avatar for peter_budo
0
116
Member Avatar for leroi green

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 …

Member Avatar for leroi green
0
129
Member Avatar for Amurka

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

Member Avatar for Amurka
0
1K
Member Avatar for sawant_nitesh

[QUOTE=jbennet;450907]It basically exists already (mono)[/QUOTE] Mono has still many problems to over come...

Member Avatar for hopalongcassidy
0
183
Member Avatar for Phaelax

You meam frame, if so, here is tutorial from sun [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html"]webie[/URL]

Member Avatar for peter_budo
0
93
Member Avatar for nhlagumbi

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 …

Member Avatar for nhlagumbi
0
445
Member Avatar for naomiauk

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

Member Avatar for nschessnerd
1
102
Member Avatar for everywherewego

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

Member Avatar for peter_budo
0
73
Member Avatar for PL.P27

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

Member Avatar for PL.P27
0
3K
Member Avatar for gyle0123

Java - How to Program 6th or 7th edition from Deitel waiting for you just to read it

Member Avatar for peter_budo
-1
104
Member Avatar for Arthurmilo
Member Avatar for peter_budo
0
162
Member Avatar for ttamilvanan81

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]

Member Avatar for peter_budo
0
98
Member Avatar for cat8882

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

Member Avatar for Ezzaral
0
105
Member Avatar for balagangadharm

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

Member Avatar for jwenting
0
94
Member Avatar for aruna_k_2006
Member Avatar for knvelan

Can you be more specific is the array of type [I]long[/I] (numeric type) or it is long regarding to the length?

Member Avatar for peter_budo
0
78
Member Avatar for KimJack

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 …

Member Avatar for KimJack
0
101
Member Avatar for alexasmith

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

Member Avatar for peter_budo
0
146
Member Avatar for dkdeleon68

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 …

Member Avatar for Ezzaral
0
631
Member Avatar for cmymazda

[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

Member Avatar for peter_budo
0
140
Member Avatar for louise07

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

Member Avatar for louise07
0
240
Member Avatar for balagangadharm

Simple forum search doesn't hurt anyone... Question asked and answerd already here [url]http://www.daniweb.com/forums/thread90051.html[/url]

Member Avatar for peter_budo
0
107
Member Avatar for econobond007

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

Member Avatar for masijade
0
58

The End.