35,618 Topics

Member Avatar for
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
208
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
646
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
199
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
278
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
160
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
167
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
273
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
156
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
188
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
77
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
114
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
246
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
252
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
128
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
150
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
119
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
749
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
217
Member Avatar for AmIAyTi

Hey guys, I'm new to JSP and I want to make an order form with a dropdown list allowing the user to pick which product he/she wants to buy. And the products would come from the database i made. How can i retrieve the data from the database and place …

Member Avatar for javaAddict
0
2K
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 xiiopao

Good day guys, anyone here who knows how to easily access image pointers stored in a database in JSP?... here's my code =) ... it already works in retrieving data other than the image... my database contains petid, petname,birthdate,image,petprice.... [CODE] <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%> <sql:setDataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/store" user="root"/> …

Member Avatar for parry_kulk
0
147
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
118
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
122
Member Avatar for pooran.c

i was jus trying to crete a form and if i submit the form the values should be displayed in the browser. code is: [U] html file- [CODE] [/U]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form action="firstjsp.jsp" method="get"> …

Member Avatar for javaAddict
0
179
Member Avatar for kalpanaSankhya

Hi All I have written JSP to read a text file(Text file and JSP are in same location) and display the data. when I am trying to run the JSP it is displaying "Error:Null". here is my code [code] <% try{ java.net.URL url =config.getServletContext().getResource("/textfile.txt");BufferedReader buffreader =new BufferedReader(new InputStreamReader(url.openStream())); String strLine; …

Member Avatar for javaAddict
0
2K
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
111
Member Avatar for selvis

Hi, I have created a jax-ws web service. It runs fine in my development environment. When deploying to linux server machine, jdk1.6.0_10, tomcat 5.5.23, I get the following errors: Cause of error is failed to parse runtime descriptor: javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found /********************************************************* com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized INFO: WSSERVLET12: JAX-WS context …

Member Avatar for selvis
0
393

The End.