32,199 Topics

Member Avatar for
Member Avatar for venomlash

Like the title sez, does anyone know a good way to take an Image and convert it into a BufferedImage???

Member Avatar for peter_budo
0
97
Member Avatar for smmustakim

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 …

0
48
Member Avatar for javaAddict

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 …

0
80
Member Avatar for mareia

halleo can you help me to solve this question befor next monday thank you very much

Member Avatar for peter_budo
0
23
Member Avatar for nschessnerd

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]); …

Member Avatar for nschessnerd
0
113
Member Avatar for Mr.UNOwen

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 …

Member Avatar for Mr.UNOwen
0
251
Member Avatar for coolian

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

Member Avatar for Ezzaral
0
202
Member Avatar for herat_000

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 …

0
43
Member Avatar for Karkalash

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?

Member Avatar for unitechy
0
72
Member Avatar for NycNessyness

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

Member Avatar for NycNessyness
0
78
Member Avatar for abhi287

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 …

Member Avatar for abhi287
0
148
Member Avatar for Venks

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 …

0
49
Member Avatar for slayer10

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

Member Avatar for Ezzaral
0
192
Member Avatar for BabyEyes

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 …

Member Avatar for BabyEyes
0
140
Member Avatar for hezfast2

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

Member Avatar for Ezzaral
0
802
Member Avatar for creativehacker

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

Member Avatar for Ezzaral
0
104
Member Avatar for greatfindsct

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 …

Member Avatar for Ezzaral
0
94
Member Avatar for 9107you

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

Member Avatar for 9107you
0
87
Member Avatar for Relegant

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

Member Avatar for javaAddict
0
81
Member Avatar for nadius

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 …

Member Avatar for ~s.o.s~
0
106
Member Avatar for jrivera

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 …

0
67
Member Avatar for suriname0

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 …

Member Avatar for suriname0
0
107
Member Avatar for dummbe

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 …

Member Avatar for orangehead911
0
229
Member Avatar for m.cliter

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 …

0
59
Member Avatar for niteshkumar

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.

Member Avatar for niteshkumar
0
37
Member Avatar for sktr4life

ive doing a homework which we need to provide buttons (GUI) for a vending machine. the vending machine takes dollars, quaters, dimes, and nickels, and the vending machine has drinks (60 cents) and snacks (45 cents). we done a code were it does work through "SCANNER", but now we have …

Member Avatar for peter_budo
0
2K
Member Avatar for CaptainCharisma

Hi, im new in java, im developing a program that produce a document in pdf format and to generate it im using abcPDF4. Can anyone advise whether abcPDF4 is compatible with java??

Member Avatar for peter_budo
0
87
Member Avatar for dantastik

Hi everybody - first post. I did look around a bit but couldn't find a relevant answer, if it's a duplicate post apologies! Anyway, using Ubuntu 7.10, NetBeans and MySQL libmysql-java 5.0.4+dfsg-2 installed ( JDBC drivers ) I also downloaded mysql-connector-java-5.1.6.tar.gz but not quite sure what to do with it. …

Member Avatar for peter_budo
0
168
Member Avatar for wad

[B]how i can send file in j2me over bluetooth i cant use the protocol OBEX to do that any one help me...... [/B]

Member Avatar for jasimp
0
107
Member Avatar for kooljoycie

the code for an elevator simulation refuses to compile and i cant see the problem, pls tell me the problem and how to correct it, thanks... here are the codes: package com.kooljoycie.elevator.event; import com.kooljoycie.elevator.model.*; public class ElevatorModelEvent { // Location where ElevatorModelEvent was generated private Location location; // source Object …

Member Avatar for jasimp
0
81

The End.