200 Posted Topics
Re: We can only help if we can see the code, otherwise there is no way for us to know what is wrong, it could be something simple your overlooking. the only thing I can think of is that the frame is not resizeable try [icode]setResizeable(true)[/icode] | |
Hello all, I have a new problem with my Paint app, I have a TYPE_INT_RGB buffered image, and I'm drawing a "preview" of it, but I want to be able to see through the "preview." Is there a way to make it appear transparent without modifying the actual image? | |
Hello All, it's been a while since I've had a question for you all. I'm trying to write a paint app, I've done so before, but this time I decided to add Layers, and I wanted a JList of the layers, I wrote a cell renderer, that not only renders … | |
Re: throws a out of stack space exception when there is a tie | |
Re: if you're really new to java then like anything that is new you should start with the basics, [url]http://java.sun.com/docs/books/tutorial[/url] it has from the basics all the way to custom networking all that is really necessary is to search the site Do you have All of the necessary software downloaded? | |
Hello everyone, Someone I know asked me about a problem he has with a program he is writing. I know nothing about his code, but he is writing a keyboard program, with the midi synthesizer in the sound api. what I do know is that he is using note on … | |
This is a simple implementation of the Chaos Game to produce a Seirpinski Triangle. | |
Finds all (integer) the triples from zero to max. won't return duplicates (ie. (3,4,5) and (4,3,5)) prints them demonstrates: nested loops, multiple classes, proper equals(Object) override (no hashcode though), writing to file | |
Re: somewhere there needs to be the line: setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); | |
Re: if you don't know how to play sounds i suggest you look [URL="http://java.sun.com/docs/books/tutorial/sound/index.html"]here[/URL], it has all that you need to know to use the javax.sound to play sound, there are however additional APIs/plugins you will need to get if you really do want to play all file types, such as … | |
Re: Look at the java tutorial on collections there is an entire trail there, here is a link: [URL="http://java.sun.com/docs/books/tutorial/collections/index.html"]Collections trail[/URL] | |
Re: I think I can shed some light on why people have stopped replying... People don't like that sort of application, so not many people are willing to help create one. if I were to give a fast guess, although it's not necessarily true, I would say that it's probably not … | |
Hello all, it's been a while since I've had a question, but I'm back. I'm trying to write a Vector class which can be any type. The problem I have is that generics can only hold objects, so when I try to say x+=vec.x it says that it cannot do … | |
Re: What do you mean by "fake Java"? Do you mean [URL="http://processing.org/reference/environment/"]Processing[/URL]? if that is the case than you can simply download it as it is free. If it is not processing, and you can't go back to what your used to, than please post your code. If I had to … | |
Hello, the game development forum seemed the best place to ask, because it seems to be the only place where people might be using a 3D modeling program... if you have a better place for this to go please tell me. I've been thinking out a way to write a … | |
Hello, I have a question, when does a global variable get destructed? ex. [code=c++]#include <iostream> using namespace std; class simple { public: int *i; simple(int ni){ i = new int(ni); } ~simple(){ delete i; } } simple simple1(10); //for simplicity no command line int main(){ cout<<*(simple.i) } [/code] when will … | |
Hello all, I'm trying to make a simple text box with SDL, I have loosely based it off of [URL="http://lazyfoo.net/SDL_tutorials/lesson23/index.php"]The Lazy Foo Tutorial on sting input[/URL], but this code doesn't seem to work... [CODE]if(event.type==SDL_MOUSEBUTTONDOWN){ if(isIn(event.button.x,event.button.y)){ hasFocus=true; } else { hasFocus=false; } } if(event.type==SDL_KEYDOWN){ if(hasFocus){ if(event.key.keysym.sym!=SDLK_BACKSPACE){ str+=(char)(event.key.keysym.unicode); } else { if(str.length()!=0){ … | |
Re: [QUOTE=serkansendur;793615] I think it would be a good idea, there could be one language having some modules in it, so if I want to use it in web context, then I would use it accordingly, of I want to use it in windows development or mobile development, I could still … | |
Hello, this is related to [URL="http://www.daniweb.com/forums/thread177461.html"]the last thread I posted[/URL], but it is also different. I found something about ImageObserver with a google search and can't find much on it, I tried doing what the site on google did, but it didn't work with the simple test I wrote. here's … | |
Re: Hello, I think I may have found a reason, but I also have a few questions, the first of which is why are you using a window listener, the same action could be done with: [code=java]setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);[/code] and two, why not just implement all the listeners in your class rather than … | |
So, I got this idea that I could make a simple game in Java, with animated GIFs for the running animations, but I have a problem, although Java will display the animation on a JLabel when made into an Icon, but I don't know how to, and can't seem to … | |
Re: JOptionPane.showMessageDialog(...); takes two strings, you are only using one really long string after [icode]+payment,[/icode] add [icode]"",[/icode] | |
I have the eclipse for Java developers, and I have the MinGW that's distributed with Dev-C++. I just want to know what downloads need to get from the update manager of eclipse, I also don't know how i set it up to use the compiler that came with Dev-C++. I … | |
Re: well 1:[url]http://www.cgempire.com/forum/tutorials-101/terror-ascii-dungeon-c-tutorial-codephobes-part-4-a-1556.html[/url] 2:[url]http://site.chronic667.com/gm/tutorials/Tutorial%20-%20Text%20Based%20Menu.html[/url] 3:[url]http://www.dreamincode.net/forums/showtopic39932.htm[/url] 4:[url]http://en.wikipedia.org/wiki/Categorical_list_of_programming_languages#Compiled_languages[/url] 5:[url]http://www.google.com[/url] surprised your e-mail didn't get snipped yet | |
So, working on my ongoing Falling Sand Game project, I find that the best way to make the heat spread evenly is to use distances from heat sources. the problem is that the only way i can think to do that is brute force. Here's a simplified version of my … | |
Re: may i suggest that you look at the first thread i started after my joining Daniweb? it has a solution to the problem that i got from a book (the art of java, search it on amazon), but i do suggest that you don't look at it until you try … | |
Re: [URL="http://www.amazon.com/Art-Java-One-Off/dp/0072229713"]The Art Of Java[/URL] has an example of a web crawler, but it doesn't go into mySQL. | |
Hello, I'm not sure that this shouldn't be in the C but it is mostly a theory question, although it is also implemented in C, so here it goes. I've been looking at some ways to make a modifiable array to hold geometric data for a simplistic 3D program (using … | |
Hello, I'm not sure that this shouldn't be in the Computer Science Board because it is mostly a theory question, but it is also implemented in C, so here it goes. I've been looking at some ways to make a modifiable array to hold geometric data for a simplistic 3D … | |
Hi, I've been testing GLFW joystick, trying to write a simple program to rotate a cube with the joystick. The fact that I'm using GLFW may complicate matters for debugging, but it's the only OpenGL library with joystick support that i have found. I don't believe that it should be … | |
Re: your professor is correct except for one thing, Scanner Doesn't have a nextChar method, i believe it is the only primitive not supported. use this instead: [code=java]Scanner yourName = new Scanner(yourInput); char c = yourName.next().charAt(0);[/code] where yourName and yourInput are whatever you want them to be | |
Re: you never redisplay the scene, for that kind of animation to work you have to redisplay for every frame. | |
OK, i recently got a few books on OpenGL, i also got Microsoft flight sim x, and a nice logitech joystick to use with it. so i want to try to figure out how to make OpenGL take input from the joystick. i haven't read much of the books yet … | |
Ok, i'm trying to make two player, no-network pong. i don't know what the problem is, there are some very strange things happening... at the beginning of the program i try to set a y value to half the height, but it doesn't it stays at y=0 when the user … | |
Re: [QUOTE=neilcoffey;757132]As the previous poster mentioned, the easiest way to do this is to get your image into a BufferedImage somehow or other, then call getRGB() on the pixel you want. If your image is in a file, then you can usually call ImageIO.read() to load that image into a BufferedImage. … | |
Re: which line is line 45? there are only 20 here. what type of image are you trying to load and store to? what point is it printing up to? (point a,b,c,d,e,f,g,h) as an alternative why not use [icode]BufferedImage img=ImageIO.read(new File("myFile.jpg"));[/icode]? of course i don't know if this works with resources | |
OK, this is probably the wrong place for this question, but here goes nothing... I want to know what math is involved in making a Color gradient (so i can program some myself). My goal for now is to make a program that can get two locations and matching colors, … | |
Re: well for texture creation i recommend and use [URL="http://www.gimp.org/"]Gimp[/URL], but you already using photo shop. if you have 3DS max and PhotoShop you shouldn't need any other graphics programs. if you need advice about C# then asking a question in that board. i take it your using Visual C#? you … | |
Re: using JFileChooser you can set the type of file that the chooser will open or save to by using a filter [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html#filters"]HERE[/URL] the internal link in the JFileChooser tutorial although i haven't used it, i think that it will serve the purpose | |
this is confusing, I wrote this a while ago, and it didn't work right, I am almost sure that it is a simple small error somewhere that I am just missing. when i wrote it I didn't think that it would be good to post it here because of the … | |
Re: my two cents... gameplay is the most important thing about a game. graphics may be cool but they won't make a game good on their own, but i don't think that better graphics could ever hurt a game. | |
Re: first be thorough in learning java. then check out the [URL="http://java.sun.com/products/java-media/speech/reference/api/index.html"]Java Speech API[/URL] | |
Re: WOW! i have the same questions, I'm glad there is a thread on it now | |
Re: i self taught myself java about two years ago, when i first started reading about it, it seemed daunting. but once i actually started to do the stuff in the tutorials and books, i started to get better and better. it's a matter of doing your own work, and paying … | |
I am using Visual Studio 2008, and i am working with a single document application, it is CView Based, and i want to know how i can in addition to the view, that i will be drawing on, how i can add controls, like CButton and CListBox. do i have … | |
Re: a lot of people ask this, there is a thread on it already, under a different name i need to make it a snippet, [URL="http://www.daniweb.com/forums/post631532-19.html"]HERE IS A LINK:LINK[/URL] | |
hello, google, daniweb, and microsoft searches didn't help me with this so i hope that someone here will know. i'm trying to have a method called at a fixed interval of time from the time an application starts until it ends ( RedrawWindow() ). i know how to do it … | |
Re: if you don't know what [URL="http://www.microsoft.com/express/vb/default.aspx"]Visual Basic[/URL] is (it is a programming language, distributed by microsoft), you are not ready to make a browser. first you need to learn a language, there are a lot that would work, and when i say learn, i mean thoroughly learn. there are several … | |
Re: 1. what errors do you actually get? 2. ALL class names should begin with a capital 3. you never actually initialize your handlers [icode]operatorHandler operation [b]= new operatorHandler();[/b][/icode] |
The End.