Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
14
Posts with Upvotes
13
Upvoting Members
11
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
0 Endorsements
Ranked #530
~50.2K People Reached
Favorite Tags
Member Avatar for smachee

[QUOTE=smachee;1072044]I have written the code for the following problem and would just like some feedback before I move on. The problem states: Here is my code: Does this seem to meet the requirements? Thanks for your help![/QUOTE] Doesnt look like you met the requirements at all. in your while look …

Member Avatar for patrick_25
0
5K
Member Avatar for adams161

Hi, I'm considering writing a java applet that has a chess board and lets people solve puzzles. There are chess engines that are free that could be the AI to play against and they come in executable files (console apps) compiled for both Mac and Windows. Now i have a …

Member Avatar for iamthwee
0
502
Member Avatar for new_programmer

i have beginning and pro android and find them handy ( not sure if i have 1 or 2 version). You'll ultimately do a lot of web searching for specifics, but to have a framework, the books were useful. They are readable, short chapters, but assume a knowledge of java …

Member Avatar for peter_budo
0
639
Member Avatar for kevndcks

maybe i need to see more code but i dont see why you are creating your JButton in a method that returns a JButton. private JButton getBtnSave() { wouldnt you create the button in the panel constructor or intialize components? and what is this if(btnSave == null) { it has …

Member Avatar for happygeek
0
3K
Member Avatar for RWD_

this is the API you can use with strings. [url]http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html[/url] you can use all those methods. if your not clear enough on the page how to use a given method but you can tell its the one you want, googl it like google String equals() java Mike

Member Avatar for JamesCherrill
0
709
Member Avatar for Xantipius

I had a conversation with a friend maybe eight years ago and this topic came up. He had worked with schizophrenic people as a social worker, something he did for a bit in his twenties. I think he was like a floor staff person at some time of shelter or …

Member Avatar for Agilemind
0
329
Member Avatar for Beancounter5

I had not done this exactly but decided to try. I have an objective-c class for a program, dataparsing.m/h. I placed in it's .h file at the very bottom, below @end void printInCOut(char *p); At the tomp of the .m file above the @implementation line but below the import lines, …

Member Avatar for adams161
0
399
Member Avatar for rayden150

You need enough focus to work on it for over an hour at a time. Ideally after maybe some intital play 2 or 3 hours in a session. The way to start is download the java sdk that sdk software developer kit from Sun. current version is 1.6.* i believe. …

Member Avatar for stultuske
0
253
Member Avatar for <M/>

Realy it's kind of a mis question. You don't develope iphone or ipad apps on the ipad. Apple hasn't made that tool. You need to use XCode which is a free program for macs. XCode allows development for both ios and native mac apps. This does bring up an issue …

Member Avatar for <M/>
0
176
Member Avatar for Krefie

Everyone wants to do the smart thing here. If i can run one html 5 page and not develop for different mobile platforms, why not. My own company is facing this decision and i think they are going to try html 5. My main gripe is i think the app …

Member Avatar for adams161
0
151
Member Avatar for happygeek

I have given up on taking android seriously and i started in android mobily about 2 years ago. I've developed 2 android apps. But to me the clean IOS world is worth it. But it does bring up a point. One of my android apps was a beta i did …

Member Avatar for adams161
2
226
Member Avatar for adams161

I've been tinkering around with my first IOS project that basically is a chat client right now. It connects to a server and lets you read chat and send chat. I want to next let the user isolate some chat in another page on the story board. They might choose …

0
74
Member Avatar for hwoarang69

You can jar it. lets say you had a program with package free. that means you have a free folder and inside it your class files. I'd navigate to the folder that contains the free folder, and type jar cvfm jarnameichoose.jar manifest.txt free manifest.txt is a file you create that …

Member Avatar for JamesCherrill
0
271
Member Avatar for adams161

I have a Java application i've written, it's a chess client that i've done as a hobby project, and it has a main applicatoin window and all the windows are contained in that. I've had a number of requests from mac users that they'd like to see it converted to …

Member Avatar for JamesCherrill
0
240
Member Avatar for noktasizvirgul

YOU might get an exception if the url is bad. [url]http://localhost/[/url], not sure where that goes. try [url]http://www.google.com[/url]. that's usually what i use for initial testing. Mike

Member Avatar for Grace Gao
0
865
Member Avatar for adams161

Hi, On windows, i don't see a maximum button on my JDialogs and this is fine, but on a Mac I have this dialog that people can keep up and use other windows, but you can also maximize a dialog on a mac apparently. There is a maximum button. At …

Member Avatar for adams161
0
159
Member Avatar for aanders5

typically if you want the applet to open in its own window, within the applets init method you create a JFrame, you give it a size or you maximize it and you set it visible, then write your code in the frame class and its panel. within the paintComponents method …

Member Avatar for adams161
0
120
Member Avatar for adams161

At present i have a folder lantern with files lantern/*.class or java also in lantern are graphics folders. lantern/img with files /lantern/img/image1.gif for example The folder lantern folder is in is called build and its in my class path. each file in lantern/*.java has package lantern; i type java lantern/multiframe …

Member Avatar for adams161
0
141
Member Avatar for adams161

Hi, I have a frame and it contains some different JInternal frames. I have a request that some people want some of these frames to be free floating, and not confined within a desktop. Is there any way to do this with JInternal frames? Or is there any way to …

Member Avatar for adams161
0
222
Member Avatar for adams161

I have found out a program similar to mine, a chess interface, named jin, jinchess.com, deploys on mac as an SDI program. This means all the windows are free floating and i think the menu is detached. Any idea how this is done? the same program deploys under windows as …

0
97
Member Avatar for Oblivious21

i usually see it as [code=java] System.out.println(); [/code] You do [code=java] out.println(); [/code] Interesting it doesn't error. I guess its legal but perhaps the deviance is why you see nothing. Mike

Member Avatar for Oblivious21
0
196
Member Avatar for ProgrammerAl

A little confusing for me. I would create one master panel for the JFrame and add it to frame. From then on i would add additional panels to the master panel. I would give the master panel some layout maybe border layout. I would add one panel to the center …

Member Avatar for ProgrammerAl
0
1K
Member Avatar for riahc3

you can implement a mouse motion listener: [url]http://download.oracle.com/javase/tutorial/uiswing/events/mousemotionlistener.html[/url] and in on the mouse movement method track x,y to a variable to use in your paint components. you can implement a mouse listener to detect clicks [url]http://download.oracle.com/javase/tutorial/uiswing/events/mouselistener.html[/url] on a click write the current x,y as motion has updated it to writableX …

Member Avatar for adams161
0
183
Member Avatar for rowen17

you have these 4 lines: [code=java] pn1 = new JPanel(); pn2 = new JPanel(); pn3 = new JPanel(); pn4 = new JPanel(); [/code] but i see 8 panels or up to pn8. 4 are null so maybe that is the null pointer exception. I really hate to see variables like …

Member Avatar for rowen17
0
174
Member Avatar for Ja9mc

someone with a similar issue. maybe this is helpful [url]http://www.daniweb.com/forums/thread126923.html[/url] mike

Member Avatar for Ja9mc
-1
126
Member Avatar for rocku2008

That's the kind of thing easily picked up from reading the first few chapters of a basic introductory java text book. but on the web, the oracle page on constructors is: [url]http://download.oracle.com/javase/tutorial/java/javaOO/constructors.html[/url] and variables is [url]http://download.oracle.com/javase/tutorial/java/nutsandbolts/variables.html[/url] oracles tutorial pages are very good for info on tons of java topics. Mike

Member Avatar for adams161
0
56
Member Avatar for adams161

hi, I have the line of code: [code=vb.net] xlWorkBook = xlApp.Workbooks.Open("c:\mydocs\full_info.xlsm") [/code] my problem is i want to load the file without a full path, "full_info.xlsm", but i can't seem to find the right place to put it. i have the program name directory which contains folder 'bin' 'myproject' 'obj' …

Member Avatar for kvprajapati
0
122
Member Avatar for coco24

That looks like your constructor. I usually don't use public in front of a constructor but i don't see that it should hurt. Maybe it's the notion that you can't have a constructor with an argument ( int) without having a default constructor with no arguments, even if you don't …

Member Avatar for coil
0
172
Member Avatar for adams161

I'm a little self taught at java. I have a package: package: package org.newdawn.spaceinvaders there's folders like org and newdawn are created and nested. the main is Game.java at end of those folders. How do i run it? i went to the end folder and typed java Game that didn't …

Member Avatar for adams161
0
88
Member Avatar for adams161

I figured out how to make indentation with [code=java] SimpleAttributeSet style = new SimpleAttributeSet();// = doc.addStyle(null, null); StyleConstants.setLeftIndent(style, 12); StyleConstants.setFirstLineIndent(style, -12); [/code] and then use doc.setParagraphAttributes(doc.getLength(), 1, style, false); after the insert into document. now numbers there doc.getLenght(), 1, i've been changing around but always same issue. The problem is …

Member Avatar for adams161
0
188