200 Posted Topics

Member Avatar for sufi8

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]

Member Avatar for sciwizeh
0
76
Member Avatar for sciwizeh

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?

Member Avatar for sciwizeh
0
178
Member Avatar for sciwizeh

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 …

Member Avatar for Ezzaral
0
148
Member Avatar for Ghost
Member Avatar for JamesCherrill
-2
133
Member Avatar for ballz2k

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?

Member Avatar for pooja.ui7
0
109
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
170
Member Avatar for sciwizeh
Member Avatar for sciwizeh
0
547
Member Avatar for sciwizeh

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

0
251
Member Avatar for johnroach1985
Member Avatar for sciwizeh
0
144
Member Avatar for mdew_47

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 …

Member Avatar for devpiyu
0
294
Member Avatar for weblover

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]

Member Avatar for weblover
0
206
Member Avatar for suncica2222

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 …

Member Avatar for sciwizeh
0
258
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
136
Member Avatar for Hockeyfreak889

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 …

Member Avatar for BestJewSinceJC
0
217
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
219
Member Avatar for sciwizeh

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 …

Member Avatar for ArkM
0
3K
Member Avatar for sciwizeh

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){ …

Member Avatar for sciwizeh
0
145
Member Avatar for serkan sendur

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

Member Avatar for MosaicFuneral
0
1K
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
688
Member Avatar for curtissumpter

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 …

Member Avatar for sciwizeh
0
139
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
453
Member Avatar for tlmiller9278

JOptionPane.showMessageDialog(...); takes two strings, you are only using one really long string after [icode]+payment,[/icode] add [icode]"",[/icode]

Member Avatar for JamesCherrill
0
146
Member Avatar for sciwizeh

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 …

0
82
Member Avatar for hpool2k8

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

Member Avatar for Jen0608
0
164
Member Avatar for sciwizeh

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 …

Member Avatar for Tech Tiger1
0
131
Member Avatar for AllenB

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 …

Member Avatar for sciwizeh
0
139
Member Avatar for kateblossom

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

Member Avatar for sciwizeh
0
510
Member Avatar for sciwizeh

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 …

Member Avatar for Salem
0
99
Member Avatar for sciwizeh

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 …

0
178
Member Avatar for sciwizeh

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 …

Member Avatar for MattEvans
0
1K
Member Avatar for dmanw100

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

Member Avatar for stephen84s
0
377
Member Avatar for mrnutty

you never redisplay the scene, for that kind of animation to work you have to redisplay for every frame.

Member Avatar for sciwizeh
0
130
Member Avatar for sciwizeh

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 …

Member Avatar for death_oclock
0
121
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
140
Member Avatar for tristan17

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

Member Avatar for sciwizeh
0
707
Member Avatar for CoolGamer48

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

Member Avatar for Ezzaral
0
179
Member Avatar for sciwizeh

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

Member Avatar for Ezzaral
0
578
Member Avatar for shooshooo

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 …

Member Avatar for William Hemsworth
0
127
Member Avatar for emilio

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

Member Avatar for emilio
0
178
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
1
146
Member Avatar for Tony0930

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.

Member Avatar for sciwizeh
0
163
Member Avatar for munyandi

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]

Member Avatar for scorpious
0
146
Member Avatar for Lothia
Member Avatar for Drycola
Member Avatar for Zelores

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 …

Member Avatar for Zelores
0
165
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
2K
Member Avatar for letlet_pogs

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]

Member Avatar for peter_budo
0
120
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
213
Member Avatar for Techier

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 …

Member Avatar for sciwizeh
0
112
Member Avatar for Natique

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]

Member Avatar for Natique
0
188

The End.