200 Posted Topics

Member Avatar for Nate11

well, first and foremost, use [ code][ /code] tags. now that that's out of the way, your constructor is right for print you need to use a for loop or a while loop, to loop through the array and print the individual chars one at a time for concat you …

Member Avatar for Nate11
0
132
Member Avatar for VernonDozier

a search i did i found this: [code=java]public static BufferedImage rotate(Image image, double angle, int cx, int cy){ int width = image.getWidth(null); int height = image.getHeight(null); //The bounds of the image int minX, minY, maxX, maxY; minX = minY = maxX = maxY = 0; //create an array containing the …

Member Avatar for VernonDozier
0
1K
Member Avatar for dianac10

he means setting the page of a JEditorPane to a page contain javascript (i think). in that case it won't work

Member Avatar for dianac10
0
109
Member Avatar for CoolGamer48

i am about to enter college, going to the field, and i was wondering the same thing... posts 10 and 11 are in a weird order :D

Member Avatar for William Hemsworth
0
185
Member Avatar for ravikiran032

or use [URL="http://java.sun.com/docs/books/tutorial/2d/images/loadimage.html"]ImageIO.read()[/URL] and [URL="http://java.sun.com/docs/books/tutorial/2d/images/saveimage.html"]ImageIO.write()[/URL]

Member Avatar for ~s.o.s~
0
128
Member Avatar for sciwizeh

i have some code that will make sound, a sine wave, actually, but i want to be able to actually play more than one sound at once, how can i modify this code to make it work. i found this on the internet somewhere, and it was hard to find. …

Member Avatar for sciwizeh
0
122
Member Avatar for ravikiran032

why would you have to use Swing? you can just take a URL as a command line argument, or as a prompt from within your program, you don't need a GUI.

Member Avatar for sciwizeh
0
149
Member Avatar for micheal_lobster

why not use a constructor? EDIT: [URL="http://java.sun.com/docs/books/tutorial/java/javaOO/constructors.html"]LINK[/URL]

Member Avatar for micheal_lobster
0
125
Member Avatar for ceyesuma

i think this thread has something on it: [URL="http://www.daniweb.com/forums/thread142036.html"]LINK[/URL] come to think of it, you started it, 8 hours ago (7 from when you posted this). and if noone replied they either don't know, or haven't seen it yet. you should wait at least a day, and post exactly what …

Member Avatar for sciwizeh
0
258
Member Avatar for llemes4011

keyboard.next(); returns a string, not an int, so int value = number is trying to assign a string value to an int type. try putting this instead: [icode]int value = Integer.parseInt( number );[/icode]

Member Avatar for llemes4011
0
145
Member Avatar for sparis

why do you want to generate your UI at runtime? if you want to use XML you could write your own parser, for this you would probably need to use DOM. as for actually creating a UI at runtime, i don't know exactly how you would go after that, you …

Member Avatar for sciwizeh
0
124
Member Avatar for mwg9119
Member Avatar for rkp803

well, 1 please use code tags. 2 why don't you use the modulo '%' operator. [code]int cents=197; int dollars = cents/100;//shows dollars int temp = cents%100;//gets cents left over int halfs = temp/50;//gets amout of half dollars temp = temp%50;//gets cents left over int quarts = temp/25;//gets quarters temp = …

Member Avatar for jwenting
0
192
Member Avatar for sciwizeh

I am working on a Matrix class that will eventually do a lot of stuff, but early on I have already hit a snag, how do I initialize (in a constructor) the 2D vector I have declared. [code=c++]//matrix class #ifndef MAT_CLASS #define MAT_CLASS //template <typename T> using namespace std; class …

Member Avatar for sciwizeh
0
183
Member Avatar for jOhN_pRattZ

you mean like this: [code]x+y+z=18 2x+y+3z=20 5x-y+2z=15 1. [ [ 1 1 1 18 ] [ 2 1 3 20 ] [ 5 -1 2 15 ] ] 2. [ [ 1 1 1 18 ] [ 0 -1 1 -16 ] [ 5 -1 2 15 ] ] 3. …

Member Avatar for Phaelax
0
185
Member Avatar for algorion

1. don't ask for emails. 2. use code tags for code [URL="http://java.sun.com/javase/6/docs/api/java/io/FileWriter.html"]FileWriter[/URL] why are you changing using rename on a file you are writing, what is this code's purpose?

Member Avatar for javaAddict
0
158
Member Avatar for sciwizeh

reply to the last post with the name of the band and the name of the song that the lyrics are to. preferably enough lyrics to know the song ie. "i never wanna hear you say i want it that way"-> backstreet boys, i want it that way and i'll …

0
66
Member Avatar for udani

i think you need to nest [URL="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html"]For Loops[/URL] using the counter of the first as the limit for the second

Member Avatar for sciwizeh
0
59
Member Avatar for sciwizeh

I did some quick searches of google and daniweb, but i cannot find anything on how i can do this. instead of a long and probably misunderstood explanation i have this: [img]http://matrixpeckham.googlepages.com/sandscreens.jpg/sandscreens-large.jpg[/img] short explanation: is a falling sand game. list at right can change whenever a new text file is …

Member Avatar for sciwizeh
0
172
Member Avatar for sandawg

it's not stop, it's break and [URL="http://java.sun.com/docs/books/tutorial/java/nutsandbolts/branch.html"]this is the sun tutorial on it[/URL]

Member Avatar for sandawg
0
255
Member Avatar for BattlingMaxo

i doubt that there is any code specific for aquariums, or any books on it. there are undoubtedly books on DirectX, and some on AI which, with fish AI shouldn't be too hard, unless you intend to allow cephalopods (squid and octopuses) , which are a bit more intelligent ( …

Member Avatar for sciwizeh
0
91
Member Avatar for liam_page1

do you know how to write a loop at all? yes/no: google.com ? java.sun.com/doc/books/tutorial ? java.sun.com/javase/6/docs/ ? daniweb.com/forums/thread99132.html ? daniweb.com/forums/search.php?forumid=9&query= ?

Member Avatar for stultuske
0
100
Member Avatar for 4ukh

uh, [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html"]JFileChooser[/URL]

Member Avatar for 4ukh
0
148
Member Avatar for bigBback

yes. read one file write another pseudo-code: [code=pseudo-code]while not end of file read piece of file to var write piece of file from var end while[/code] for information on io go [URL="http://java.sun.com/docs/books/tutorial/essential/io/index.html"]here[/URL]

Member Avatar for sciwizeh
0
57
Member Avatar for HLA91

you never set the menubar for the JFame [icode]this.setJMenuBar(menu)[/icode]

Member Avatar for HLA91
0
3K
Member Avatar for Mr.UNOwen

For info on linux VS windows in the JNI read [URL="http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html"]this. [/URL] to find out the operating system you can use [icode]System.getProperty("os.name");[/icode] NOTE: i am not too familiar with the JNI myself, but it is one of the things about java that typically destroys platform independence, but what your trying …

Member Avatar for sciwizeh
0
155
Member Avatar for Ancient Dragon

the "paint bucket" or "fill" tool of graphics editors sometimes use recursion. although as has already been stated, when stack space is a problem non-recursive methods are used. the algorithm i found for parsing a mathematical expressions form strings was recursive, i found it in a book after no one …

Member Avatar for sciwizeh
0
817
Member Avatar for sciwizeh

is it possible to use the Dev-C++ compiler with Netbeans? if so how, i can't find anything that explains it.

Member Avatar for sciwizeh
1
387
Member Avatar for sciwizeh

I did a brief search of the forums, and didn't find anything on collision detection that was 1) this general, or 2) had this kind of question I don't want bounding box! every place i look all game tutorials use bounding box, and that is not accurate enough for what …

Member Avatar for sciwizeh
0
169
Member Avatar for mdew_47

uh, if it is already an .exe, i think you can look at [URL="http://www.dreamincode.net/forums/showtopic21813.htm"]this[/URL]

Member Avatar for mdew_47
0
204
Member Avatar for sciwizeh

i want to make a code template in netbeans with the abbreviation of cn that will expand into the name of the current class being worked on, is there a way to do this? i cannot find anything about it. google won't turn up any good info

Member Avatar for sciwizeh
0
96
Member Avatar for Naween

ok, 1: use code tags 2: [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Forum Rules[/URL] keep it organized don't use names like "HELP!!" 3:don't use "==" for string comparison use [icode].equals(String)[/icode] or [icode].equalsIgnoreCase(String)[/icode], as "==" won't work correctly 4:ch4 is a checkbox and doesn't have a get selected item method it has an isSelected method that is …

Member Avatar for sciwizeh
0
105
Member Avatar for lich

take out ItemListener in your class statement and take out the .addItemListener(this) call, the reason is that you are making an abstract item listener with the second set of calls to addItemListener, and your class isn't acting as the listener at all

Member Avatar for vigneswara
-1
218
Member Avatar for sciwizeh

new to network stuff going through the java tutorials and i did what it said heres the code: [code=java]import java.io.*; import java.net.*; public class EchoClient { public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; try { echoSocket = …

Member Avatar for sciwizeh
0
3K
Member Avatar for Alex Edwards

i don't know whether this will work, but try setting using [icode].setFocusable(false)[/icode] on the buttons. i don't think it will work, but it's worth a try EDIT: it may ruin the way that you use the keyboard, but without seeing how you implement i cannot say

Member Avatar for Alex Edwards
0
166
Member Avatar for sciwizeh

i know that blender has a game engine, but i cannot find anything really good on how to get it to work... i can make physics happen, there are tutorials (like a ball rolling) on that that are easy to understand, but i don't get the event thing that blender …

Member Avatar for sciwizeh
0
128
Member Avatar for sciwizeh

i don't have any problem with it because i haven't tried to use it... i am curious whether anyone here has used the Speech API, and how it is to work with. what kind of results does it give, and how well does it work. i just don't want to …

0
53
Member Avatar for Alex Edwards

these are the results i got from running in bluej are they similar to yours? for some reason the last call to println() didn't do anything, i don't have an explanation for that though. [code]64979064 / 65470464 64979064 / 65470464 [SelfTracker at address: SELFTRACKER@15E234C with index: 0, SelfTracker at address: …

Member Avatar for Alex Edwards
0
172
Member Avatar for darlineth

hi again... here is something that may help: [code]expression = term && (plusterm || minusterm)* plusterm = '+' && term minusterm = '-' && term term = factor && (timesfactor || dividefactor)* timesfactor = '*' && factor dividefactor = '/' && factor factor = phrase && (expfactor || phrase) expfactor= …

Member Avatar for sciwizeh
0
189
Member Avatar for rameshpower007

1. no one here is just going to give you code without you showing effort and 2. the [URL="http://www.daniweb.com/forums/forum24.html"]JSP board[/URL] would probably be the place to ask

Member Avatar for sciwizeh
0
283
Member Avatar for sciwizeh

the sun tutorials doesn't include anything on how to extend JDialog to make a dialog like this: [url]http://www.oucs.ox.ac.uk/windows/exceed/input.jpg[/url] can anyone point me to a tutorial that included this? my attempts to try making a frame into a dialog result in 100% cpu and infinite loops how do you make the …

Member Avatar for Ezzaral
0
500
Member Avatar for esy928

your the reason it won't draw is because your doing all of your drawing in your action listener, and it doesn't get called at the start of your program, so nothing gets drawn. one way i see to solve the problem... make a new boolean variable, i would call it …

Member Avatar for kimslov
0
155
Member Avatar for palavi
Member Avatar for palavi
0
99
Member Avatar for t_3010503

[url]http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html[/url] gives an example of how to make a GUI with netbeans

Member Avatar for sciwizeh
0
112
Member Avatar for ricss_madara
Member Avatar for sciwizeh
0
249
Member Avatar for Alex Edwards

you already read the sun tutorial? then i would suggest [URL="http://www.developer.com/java/other/article.php/3556176"]this[/URL]: [QUOTE]Annotation-based development is certainly one of the latest Java development trends. Annotation-based development relieves Java developers from the pain of cumbersome configuration. Quoting from Sun's official site, "It (annotation-based development) lets us avoid writing boilerplate code under many circumstances …

Member Avatar for sciwizeh
0
118
Member Avatar for VernonDozier

package the images in a jar file with the classes and use [icode]getClass().getResource(path);[/icode] to get a url for it and you can use the url directly as an argument to your [icode]ImageIO.read()[/icode] you won't get access denied errors because they will be in the jar

Member Avatar for VernonDozier
0
228
Member Avatar for lich

[QUOTE=lich;661272]The Lectuerer didnt started about Interfaces.. we have no idea when he gonna do it... meanwhile our project submission is on next week. so we have to start our project.[/QUOTE] that doesn't help us figure out what to tell you but the two possibilities have already been listed. why not …

Member Avatar for sciwizeh
0
90
Member Avatar for worldwaffle

i don't know much about c#, but looking at the syntax, it is much more like c++ than java, it looks like many of the keywords are different, converting to and from languages, if you know the ideas behind it and the concepts, it us usually a matter of learning …

Member Avatar for Alex Edwards
0
151
Member Avatar for sciwizeh

ok, so i've been working on this project for a long time now, a falling sand game, on and off. it works [I]almost[/I] the way i want it too... 2 problems, one i don't think this community will be able to help me with, the other, the optimization, i have …

Member Avatar for sciwizeh
1
363

The End.