32,199 Topics
| |
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 … | |
I want to expand my Jtree nodes into multiple lines. Any idea for how to achieve this? | |
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 … | |
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, … | |
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 … | |
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] | |
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, … | |
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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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... | |
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 … | |
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? | |
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] | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.