32,204 Topics
| |
Hi again. I'm trying to recreate the digital timer in Minesweeper: Top right ----- [url]http://www.uberreview.com/wp-content/uploads/506x363-minesweeper.jpg[/url] 000 -> 002 -> ... -> 009 -> 010 -> etc... I couldn't think of an easier way to do it except to create an Icon for each number and match it to it's corresponding … | |
Hi, I am using adobe acrobat 8, and im trying to get a text box on page 2 to be automatically filled with the same value that's selected from a combo box on page 1. How can i program this? I am new to Java, and i need help with … | |
Hello, I have a requirement to fetch data from a database and store into another database. More explanation goes as follows: I have a web application deployed on an application server. The JDBC connection fetches data from a oracle database. Now I have a need to fetch data from a … | |
Currently having a problem with adding data so that if someone selects something like an add button, it keeps adding the data, like a person's name, age and grade. Then when they select Enter, all the data they added will display in a data file. The problem I'm having is … | |
javax.mail doesn't exit in jdk, right? how can i solve the problem? | |
Like the title sez, does anyone know a good way to take an Image and convert it into a BufferedImage??? | |
Hi! everybody. Unable to get the correct fourier image of a simple sinusoid image. The java code is mentioned below. Appreciate help. Thankx. void freq_spect(){ double F[][][]; double FX[][]; double f_r[]; double f_r1[]; double NNN[][]; double Four[][]; int fxy[][]; int wd=new_img.getWidth(); int ht=new_img.getHeight(); F=new double[wd][ht][2]; Four=new double[wd][ht]; FX=new double[wd][2]; f_r=new … | |
I will briefly explain my problem: I have a while-loop and inside I call some methods. Inside one of the methods I have this error: java.lang.[B]NoClassDefFoundError[/B], which is been caught and the while continues. The problem is that a few seconds later as the while keeps running the same method … | |
halleo can you help me to solve this question befor next monday thank you very much | |
i basically have a long array i want to copy to another array object. does this copy by refrence? i know java doesnt do refrences but i read somewhere it would pass by refrence. [code='java'] char[][][] data=new char[numFiles][][],data1=new char[numFiles][][]; for (int i = 0; i < numFiles; i++) { data[i]=split(files[i]); … | |
Hello, I created two classes, one extends JButton and the other extends JPanel. In both cases, both overrides the paint method. Basically I'm extending JPanel so I can place an image as the back ground. The issue I'm having is that every time the button is drawn, if it's drawn … | |
Has anyone here managed to integrate NetBeans 4.0 with VSS 6.0? I am only able to see the projects I've added under the "Versioning" tab (in NetBeans), and not from VSS. Also, when I refresh the list, this is the error I keep getting: Command "Refresh" has failed. Execution string: … | |
hi... i m beginner...and i m having trouble with following code:and the problem is that when i try to input name then it is taking blank...like... i m first asked value of n if i enter 2 then it automaticaly goes to acc type .....not taking name... import java.util.Scanner; class … | |
Hi: I made a simple game using java and I would like to know if there's anyway that I can make the file an executable so that my little game runs on the command windows so I can share with my friends? | |
How can I store variables in an array. With a mixture of strings, variables and information entered in textfields. With what I have below. If I wanted to store numbers, price, total, tax, and name in an array, how can I do it? Thanks in advance. [code=java] String[] numbers = … | |
Hi all, I've two questions- First In the j2me application suppose i've a list with no. of items. To select the item between 1 to 9, i can use 1 to 9 keys on keypad. Is thr any way such that i can select the list items after 9like 12 … | |
hai, i want to hide task bar from my program, in c# user32.dll was used to hide the taskbar, iam using user32.dll in my program as follows import java.io.*; public class NativeMFCMsg{ static { try { //System.loadLibrary("user32"); System.load("C:\\WINDOWS\\system32\\user32.dll"); // System.out.println("Library user32 Loaded"); }catch(Exception e){ e.printStackTrace(); } } public native static … | |
ok im doing a tetris game and i want the piece to move left when i click 'a' and right when i click 'd' and turn clockwise when i click 'w' and turn counterclockwise when i click 's'. heres what i have public class Movement extends JPanel implements KeyListener { … | |
hi , i have a program which i am stock in , its about traffic light . i did the display part but i cant do the timeing and changing the color of the traffic signal . if one signale is green there should be a timer which has time … | |
I'm writing a program creating a card game of war. I (think) that I have the majority of it done, but I cannot seem to figure out how to split a deck into two separate hands in a Hand class. My code is in components, I have a Deck, Card, … | |
I wrote a program where I should draw some stuff whenever a key is pressed. The drawing is done whenever the key is pressed but can be seen only when i resize the window.. [CODE]public void keyPressed(KeyEvent e) { Graphics2D g2 = image.createGraphics(); if(e.getKeyCode()==37) { System.out.println("left is pressed"); key=LEFT; sp.SnakeMove(key); … | |
Hello everyone! I've worked on this program for about 8 hours so far. I've posted for help in my classroom, and no one has answered. I've passed it in although only one was compiled, but I'm determined to find out why the second did not compile. It's with the infamous … | |
[code] // The "DTfiveint" class. import java.io.*; public class DTfiveint { public static void main (String[] args) throws IOException { BufferedReader five = new BufferedReader (new FileReader ("five.txt")); int multiply[] = new int [5]; for (int i = 0 ; i < multiply.length ; i++) { multiply [i] = Integer.parseInt … | |
[CODE] aClass30_Sub2_Sub1_Sub4_1272.method389(false, true, c / 2 - 90, 0xfff00, "Port:" + port + ((anInt1216 == 3) & (anInt1105 % 40 < 20) ? "" : ""), j); j += 15;[/CODE] That code above, is not changeable, you cant change the port. But this code below is changable, so you can … | |
Hello everyone, I realise this may seem like a log winded way of doing it but I need to insert data from a JSP into a database, here is the set up. I have an HTML form, that passes it's data to a JSP. The JSP acts as a bridge … | |
This is more of a logistic question but I'm stuck. This is a homework project where we're asked to create a game. The way I'm doing it is starting of with a "settings" applet. The applet asks for number of players, then "dynamically" creates a row which displays a textbox … | |
Hello, I have been self-teaching myself Java for the past few weeks and I would like a little help. Without an instructor or ample code snippets that are readable to me, I've been finding it difficult to know if my coding lacks the polish and efficiency necessary. Here is the … | |
hi , i have this problem, which i cannot figure it out. This problem has been day now,and reached does not seem to help. How do u pass an integer value form one class to the other class. Here my code. The integer that summited by the user which is … | |
hello, I m working on a Ford-Fulkerson algorithm to get the Maximum flow in residual graph, and min-cost algorithm. My representation based on adjacency-lists approach, where I keep track of all the vertices connected to each vertex on a linked list that is associated with that vertex. So far I've … | |
Hi guys... Is it possible to stop opening multiple instance of a jar file... I'm using JWS for lunching my SWT application, I just want to open my application only one (only one instance) at a time on one machine. |
The End.