32,199 Topics

Member Avatar for
Member Avatar for loveman47

I'm trying to make the ball move to a specific place then falls into the bottom of the app and this is an quick image I made to make it clear [URL=http://img845.imageshack.us/i/sssssv.gif/][IMG]http://img845.imageshack.us/img845/6651/sssssv.gif[/IMG][/URL] and this is what I've been doing , I know it's a mess :S [CODE] private float ballRadius …

Member Avatar for loveman47
0
123
Member Avatar for warlord902
Member Avatar for warlord902
0
1K
Member Avatar for ghsuan

I have made the JButtons just like Keyboard, which when the user type, then what he/she typed must be displayed on the textfield. And as the user press the keyboard, the colour of keys on the screen should be changed then go back to the original colour when the key …

Member Avatar for tunlinaung
0
2K
Member Avatar for turt2live

Hello, I currently have 2 JFrames for my "game" (Not really a good one), one for the actual game and one for a minimap. What I can't figure out is that when you click off the game (for example to a browser or something) the game and minimap loose focus, …

Member Avatar for turt2live
0
206
Member Avatar for initialise

Hi all, I'm stumped and can't seem to find an answer on Google. I am running a java application through Eclipse and it connects to mysql. It connects fine if I run it through Eclipse but if I make a standalone jar file and then run it through Window's Vista …

Member Avatar for initialise
0
642
Member Avatar for stupid guy

how can i know what type of drivers are used..type1 type2 type3 type3 type 4 ..some guys in my class do that..by just looking at these two statements...help me ..;) [CODE]Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection("jdbc:odbc:bike","scott","tiger");[/CODE]

Member Avatar for cretaros
0
194
Member Avatar for turt2live

Hello, I currently have this code to buffer an image: [CODE] public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; ImageIcon icon = new ImageIcon("back.gif"); Image image = icon.getImage(); BufferedImage buff = new BufferedImage(image.getWidth(this), image.getHeight(this), BufferedImage.TYPE_INT_ARGB); Graphics2D b = (Graphics2D) buff.createGraphics(); b.drawImage(image,imgX,imgY,this); b.setColor(Color.BLUE); b.fillRect((window.getWidth()/2)-13, (window.getHeight()/2)-13, 26, 26); g2.drawImage(buff, 0, 0, …

Member Avatar for turt2live
0
273
Member Avatar for TheBadger

Hey bit stuck trying to make a Factory which creates multiple objects e.g. I want 10 rabbits, 6 foxes, 4 dogs + more animals instead of three for loops like this one for(int i = 0; i < foxCount; i++) { Fox fox = new Fox(); } Is there a …

Member Avatar for Mitja Bonca
0
155
Member Avatar for jasleen12345

hi i am new to java applets...i am making an digital clock...this is my code...my prob is time doesn't change automatically....it has to be refreshed...pls see [CODE]package jas; import java.applet.Applet; import java.awt.*; import java.util.*; public class sd extends Applet implements Runnable { String am_pm="Time is "; Thread t=null; int state; …

Member Avatar for bibiki
0
163
Member Avatar for melisko

Hello guys I have spend nearly whole day to find this answer .. All i want to know , is what is an equivalent for this two simple to use functions from C . In C this is very easy , and i believe that user friendly Java will make …

Member Avatar for jon.kiparsky
0
272
Member Avatar for ankurmawanda

i am creating a midp 2.0 s40 mobile application s40 that will post some data in to a postgres sql server i have created a form with text boxes and selection list can some one please tell me a way how do i post an sql query i have the …

0
155
Member Avatar for muteki

Hi, first of all I'm new at the forum I hope to help and be helped ;-). I'm trying to display the values inside an ArrayList on a JSP. I execute a PreparedStatement and I put all the values inside an ArrayList<HashMap<String, Object>>. Once, I have all the values inside …

Member Avatar for khamsinh
0
4K
Member Avatar for Majestics

There is a database program for making invoice , its written in vb.net, there is no save option in that program, the programmer who designed it is not availble now... I want to add save button, the solution i have thought is to take the handle of the application and …

Member Avatar for mKorbel
0
185
Member Avatar for geekme

I have eclipse , jre and jdk in the same desktop folder but while trying to install eclipse it gives the error message that no JVM or JRE were found in the path C:\User\desktop\eclipse\jre\bin\jawaw.exe javaw.exe in your current path. Please help

Member Avatar for Majestics
0
75
Member Avatar for Tarkenfire

Okay, I'm working on a project for class, and...I can't seem to get...subtraction to work right with regards to an object in a class, let me just post the code, here's the block in the main file: [CODE]class KeyHandler extends KeyAdapter { @Override public void keyPressed(KeyEvent e) { char character …

Member Avatar for Tarkenfire
0
111
Member Avatar for jemz

hello... can you help me please, i make a program GUI and my problem is that how can i change the GUI or to remove those minimize,restore,close on top at the right side of the GUI,is it possible?.Please help me thank you in advance hoping for your positive response...

Member Avatar for Majestics
0
242
Member Avatar for jaxber

Urgent! How to display this function,use symbol"*" to draw line Here teacher gave one method to perform this function [code] public static long evaluations; public static double func(double x) { double result; result = Math.abs( Math.sin(0.017453292519943295769236907684886*x) * (x/90) ); evaluations++; return result; } } [/code] question is how to use …

Member Avatar for JamesCherrill
0
241
Member Avatar for caierhui

i am using netbeans and MySQL. i made an inventory application with a server host name "local host:3306". how do i distribute it to other computer? should i change the server host in mysql?

Member Avatar for mKorbel
0
124
Member Avatar for odane4eva

I would like to download a Java applet to my pc. Can someone please help me. Here is website that has the applet. [url]http://www.digital-recordings.com/cgi-bin/www-dfg-warble.cgi[/url]

Member Avatar for souki1991
0
1K
Member Avatar for aanders5

Ok...my mind is exploding right now lol. I can't figure out a good way to parse Google results. I am making a game tool, that will look up the 5 most recent news for a specified clan, within the past month, and for only 1 site. So what I have …

Member Avatar for aanders5
0
149
Member Avatar for kenray

I'm serious having problem in creating GUI applications in java!...I really understand how to write console applications, but the GUI application is kinda confusing my. So please i need a help.

Member Avatar for jon.kiparsky
0
115
Member Avatar for kay19

Welp, another problem arise albeit small. Just with Decrementing hours, seconds, and minutes. I seem not get the final results right at all. Keep tinkering with it, and still not getting it. This is my answer 23:00:00 23:00:00 23:00:00. First is right, but the 2nd and 3rd should be 22:58:00 …

Member Avatar for kay19
0
745
Member Avatar for sciprog1

Hello Members, I am beginning to work with the JGrapht library. The following is described as the syntax for creating a weighted, directed graph: [CODE]SimpleDirectedWeightedGraph<String, DefaultWeightedEdge> graph = new SimpleDirectedWeightedGraph<String, DefaultWeightedEdge>(DefaultWeightedEdge.class); [/CODE] What is the meaning of including " DefaultWeightedEdge.class" in the above line? I will be grateful for any …

Member Avatar for sciprog1
0
216
Member Avatar for TheBadger

Hey basically I have a Jpopmenu in my View class My view also implements MouseListener When I click on an object, my view sends a request to controller. Controller will then decide which behavior to give the JPopupmenu (what MenuItems it has) and return it to View, which then sets …

Member Avatar for JamesCherrill
0
87
Member Avatar for jrp370

i have the code for a simple mail transfer protocol but when i go to compile it in eclipse i get an error along the lines of cant find "main" class, program will now terminate, ive attached the code and would love it if someone could take a look and …

Member Avatar for jrp370
0
116
Member Avatar for sj5536

hi i want to develop hotel management project which is basically dekstop appliation so my problem is that should i do that project in .net or java can u explain which platform is good for this project and also is there any diffrence oflook and feel between java project and …

Member Avatar for mKorbel
0
120
Member Avatar for gedas

hey, i am not sure this a right forum for this question but hopefully you will be able to answer me. i have recently finished developing java application in netbeans and there is a simple issue of printing the source code. once the code printed each page should be numbered …

Member Avatar for gedas
0
107
Member Avatar for toferdagofer

I had a gui set up that displayed menu items a window and some buttons at the bottom. i am having it communicate with an outside program using commands. i recieved a strange error msg after i tried to have it communicate with the other program. I know the gui …

Member Avatar for JamesCherrill
0
182
Member Avatar for jeffrey o

This is a simple server/client program. What i'm trying to do is let the server send a message to the client, the client should receive this message and print this message on screen. When i run the program the server prints "Server start" like its supposed to but nothing happens …

Member Avatar for sj5536
0
477
Member Avatar for harinath_2007

Hello.. I created a executable jar file for my java application.. but there's a problem that the images are not being displayed in application eventhough i included images in jar file along with classes. How to make them displayed from the jar file only instead of accessing them from any …

Member Avatar for masijade
0
128

The End.