Forum: Java Aug 28th, 2009 |
| Replies: 2 Views: 265 hi, i could not test your program because it did not compile..but i think your problem could be in compairing objects rather than their values.
if ( Created == false &&... |
Forum: Java May 21st, 2009 |
| Replies: 6 Views: 740 sorry these code tagging never seems to work for me ..any help in that area? |
Forum: Java May 21st, 2009 |
| Replies: 6 Views: 740 [
import java.applet.*;
import java.awt.*;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.MouseEvent;
import... |
Forum: Java May 14th, 2009 |
| Replies: 1 Views: 265 I have two classes in here..One extends from a Jpanel , it is where I do all the paints and staffs on my screen. The other one is just a class. But in that class I want to define a draw function..say... |
Forum: Java Apr 30th, 2009 |
| Replies: 8 Views: 961 JFrame y = new JFrame("myframe");
y.setBounds(300,400,300,300);
You could try this , the first two variables being for the X and Y position where the frame is put and the next two for the... |
Forum: Java Apr 29th, 2009 |
| Replies: 3 Views: 326 thanks lots i will try that... |
Forum: Java Apr 29th, 2009 |
| Replies: 3 Views: 326 I have many projects in a software. Although some files and classes are shared within these projects, there are classes used by most of these projects. How do i creat classes that can be shaed among... |
Forum: Java Apr 29th, 2009 |
| Replies: 4 Views: 354 can u compile your code.it has some errors like temp +7 and staff..not statements;
.it will be much easier to see the problem if u do that first. |
Forum: Java Apr 24th, 2009 |
| Replies: 0 Views: 177 How do I creat one in JAVA? Is there a tool I can use in netbeans? thanks a lot.. |
Forum: Java Apr 22nd, 2009 |
| Replies: 4 Views: 309 I don't understand why it would display 101.1 and 202.0 because there is no line in the code that assigns the values of x and y . you should put in some assignment at the constructor class or a a... |
Forum: Java Apr 20th, 2009 |
| Replies: 3 Views: 239 hi, i'm not sure what u want yor program to do. But in these lines where you used 2 for loops , the internal loop is doing really nothing, just assiging the maximum value to x [index].....
hope this... |
Forum: Java Apr 20th, 2009 |
| Replies: 4 Views: 309 It compiles pretty well here, u should check if there is anything wrong with the rest of your code! |
Forum: Java Nov 18th, 2008 |
| Replies: 4 Views: 344 thanks, i will see how that goes. |
Forum: Java Nov 18th, 2008 |
| Replies: 4 Views: 344 so what i want is other arrangements than the SOUTH,or NORTH, EAST.......given by the layout manager, I'm lookin g for sth that places the button according to the X-Y coordinates, I want to be able... |
Forum: Java Nov 18th, 2008 |
| Replies: 4 Views: 344 I want to put the buttons on my screen wherever i want, i'm not using design view. Is there any layout method or any other method i can use to reposition my buttons.PLEASE HELP! |
Forum: Java Nov 12th, 2008 |
| Replies: 1 Views: 324 Does any one know in which method the cursor in the dnd class is set, while dragging an object!! thanks lotts |
Forum: Java Nov 6th, 2008 |
| Replies: 1 Views: 462 I have these java packages, There are different games in java with menus, buttons and everything. Now i want my software to be jsut like the other softwares which one can install and use. My problem... |
Forum: Java Aug 26th, 2008 |
| Replies: 5 Views: 656 thanks Ezzaral..i'll see what I can do with that |
Forum: Java Aug 25th, 2008 |
| Replies: 5 Views: 656 and another problem with it was that when i played the sound on the same thread..the time of playing of the sound got unpredictable..at times it even played the sounds after finishing painting all ... |
Forum: Java Aug 25th, 2008 |
| Replies: 5 Views: 656 the sound takes around maybe half a second to finish.....and in one thread, was doing it sequencially...that's not what i want ...I 'm hoping atleast there to be some mixing between the two....but... |
Forum: Java Aug 25th, 2008 |
| Replies: 0 Views: 434 I'm using the java DnD class...I found this programm as an example that could help me understand it better..While dragging the image...the cursor changes its shape..but what i want is the image being... |
Forum: Java Aug 22nd, 2008 |
| Replies: 5 Views: 656 hey, I'm having a problem in getting this programm right.. this is what it does...in every 1000ms it paint an image.. I'm using a new thread to paint the image....the thread taking care of the... |
Forum: Java Aug 12th, 2008 |
| Replies: 0 Views: 338 I'm trying to programm a game where the user can drag and drop images...
I have some programms that do this by calling the repaint function for every mouse motion...I have also come across programms... |
Forum: Java Aug 1st, 2008 |
| Replies: 3 Views: 695 I first load the images from a file and then paint them on my JFrame. But there seems to be a lot of time between when the screen is visible and the images appear on the screen........which was is... |
Forum: Java Jul 29th, 2008 |
| Replies: 7 Views: 1,445 this is the first class Animate1...bare with it please i've done a lot of editing to minimize the code..hope it helps
import java.awt.*;
import org.omg.PortableInterceptor.SUCCESSFUL;
public... |
Forum: Java Jul 28th, 2008 |
| Replies: 7 Views: 1,445 hey thanks.. yes i did not put the pack() , even so still it does not work. so what is a vent thread...if this helps I'm running the animation in a new thread.... sorry I can't post the code too... |
Forum: Java Jul 28th, 2008 |
| Replies: 3 Views: 695 I paint a lot of images on my screen before the JFrame is displayed...It takes along time..what can i do to make the image load faster.. |
Forum: Java Jul 28th, 2008 |
| Replies: 7 Views: 1,445 I have a code that play's an animation on a JFrame.. On top of that, I have added a Jpanel with few buttons. my problem is, mybuttons are not visible on the animation screen until i hover a mouse on... |
Forum: Java Jul 21st, 2008 |
| Replies: 1 Views: 363 I have a programm that runs an applet. It loads a series of images and paints them. The problem is the programm seems to not to paint the images in the same order..or rather it skips some of the... |
Forum: Java Jul 18th, 2008 |
| Replies: 1 Views: 346 this is a code that i found fromsome website
I replaced line 18 by this line below, and put theimage ho.gif in the project folder. Sth is wrong..image is not displayed on the screen? what is the... |
Forum: Java Jun 26th, 2008 |
| Replies: 0 Views: 1,051 Hey everyone, i'm working on this code...i'm trying to put some images ---animations--on to my jpanel..the problem is everytime i try that, it gets repainted with initial screen setup I have...how do... |
Forum: Java Jun 25th, 2008 |
| Replies: 1 Views: 764 i wanted an image background on a Jpanel, so I got a programm that overrides the paint function. Now i have a code that draws the image as a background and also enabled me to have some buttons on... |
Forum: Java Jun 25th, 2008 |
| Replies: 1 Views: 608 I don't wan't my buttons to reacts to hover events or any other events... and i dont want to disable them.............................how do i do that without disabling them ? |
Forum: Java Jun 23rd, 2008 |
| Replies: 4 Views: 492 heyyy Alex its working thanks you very much! |
Forum: Java Jun 23rd, 2008 |
| Replies: 4 Views: 492 Hello, i'm using a Jpanel, I am using an image as background . On top of that i want to put buttons on it. The problem is I cannot repostion the buttons? can anyone help me here!!?? |
Forum: Java Jun 17th, 2008 |
| Replies: 4 Views: 1,334 thank u very much, that part is working ...now i dont know how to reposition the buttons...................... |
Forum: Java Jun 16th, 2008 |
| Replies: 4 Views: 1,334 Hi, I want to make the background of the JFRAME and image??? but everytime the background image paints over the buttons???? please help! |