35,618 Topics

Member Avatar for
Member Avatar for conanzz

I have a picture with 2 buttons, and I want to move it through these buttones the problem is I don`t know how to make the actionListener for the other button to move to the other side, [COLOR="Red"]pictures are in the attachments[/COLOR] [CODE]import java.awt.event.*; import javax.swing.*; import java.awt.*; import javax.imageio.*; …

Member Avatar for conanzz
0
204
Member Avatar for farhanrocks

can anyone tell plzz!!!!what is difference between interface and annotation type in java?

Member Avatar for JamesCherrill
0
79
Member Avatar for phoenx

I have a problem in my game about button how I can display the random number example "3 + 5" in the upper button ...I try one button here but you need to click it in order to see the random number and only one number will appear..please any idea.. …

Member Avatar for phoenx
0
163
Member Avatar for Mona Ali

HI TO ALL [CODE] import java.applet.*; import java.io.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; public class sid_fari extends Applet implements ActionListener { String msg,msgs,msgss; Button loads = new Button("clik me"); public void init(){ add(loads); loads.addActionListener(this); } public void paint(Graphics g) { g.drawString(msgs,10,40); …

Member Avatar for Mona Ali
0
501
Member Avatar for simplyit

i am currently working with jsp for building a travel based website and have to deal with GIS maps. now i am working with netbeans ide because it has glassfish server deployed with it so it is easy to work and configure what you need. but when it comes to …

0
87
Member Avatar for Sabatino

Here is the error [IMG]http://i1199.photobucket.com/albums/aa465/aaron55494/compileerror.png?t=1311972955[/IMG] and here is the code that i'm working on [CODE] public String getKillMessage(String player) { String[][] selection = {{"Congratulations, you have defeated ", "}, {"Congratulations, you have ", "}}; int index = (int) Math.floor(Math.random() * 9); return selection[index][0] + player + selection[index][1]; }[/CODE] Any help …

Member Avatar for Sabatino
0
88
Member Avatar for efronefron

I was doing a projecteuler problem. I made a program that would find all the prime numbers under 1000000 and write them all in a file. Why is that if I use the file name as "primes.txt", the result is gibberish from beginning to end, but when I use "primes.dat", …

Member Avatar for NormR1
0
819
Member Avatar for syria718

pals i just wanna ask if anyone could show me how to declare and call a 2d array? thanks in advance!!!

Member Avatar for NormR1
0
138
Member Avatar for Farhad.idrees

Hi i m having problem... i want to give each random number to each month.. but it gives erros [CODE] public class a { public static void main(String[] args) { float average = 0f; String[] Year = {"Jan","Feb","Mar","Apr","May","Apr"}; int[] values = new int[5]; for(int i=0; i<values.length; i++) { values[i] = …

Member Avatar for Farhad.idrees
0
149
Member Avatar for 47pirates

I'm trying to display a total integer value taken from the Jtable cells and want to display the sum in the last cell so for that i need to covert the final sum to object or are there any other solution...any help will be thankful!!!

Member Avatar for mKorbel
1
181
Member Avatar for 47pirates
Member Avatar for mKorbel
0
91
Member Avatar for vomhaus

I need some help parsing a string array returned from method. current results: Here is the test Information: SPRCBT - Algebra 1 - Form 9D - Joe Smith Here is my Test Name [Ljava.lang.String;@5ec24193 Any ideas on the best way to return the values of the array instead if the …

Member Avatar for NormR1
0
227
Member Avatar for rinjin07

Hey all, I'm a total IT beginner and have been trying to figure out how to put raw html with css and javascript in the header on an article in Joomla 1.7? I heard about this JCE thing but no idea how it works. If someone could explain it to …

0
103
Member Avatar for akshu

hi i wanted to know that from cctv video are captured which will be tera bytes so we want to search a particular video from tera byte data.is it possible. but we are going to search video in a such a way that from 1hour video if we enter 12 …

Member Avatar for akshu
0
112
Member Avatar for cweeto

hey guys its good to be back m taking netcenntric as core module for dis semester would you pls help me through the course ma first project create a simple client/sever project using java to communicate two pc any help on how to go about what do i need ?

Member Avatar for JamesCherrill
0
42
Member Avatar for bleachisback

Hey guys, I'm not entirely new to java, but how it handles jar files puzzles me a bit. I want to be able to back up an already existing jar file (which I have working great), then detect and add all of the class files I have in my program's …

Member Avatar for NormR1
0
275
Member Avatar for Denmbithi

Which is the best programming software for teaching yourself java using window xp pack 2,please help out.

Member Avatar for a.oprea
0
97
Member Avatar for agent7

type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) root cause java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/web/tomcat/service/WebAppClassLoader) previously initiated loading for a different type with name "javax/ejb/EJBObject" java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) …

Member Avatar for peter_budo
0
310
Member Avatar for RicardoE

Ok! Hello Daniwebbers, lets see if you can help me this time: I'm planning to do a bot, to login into a site, collect some data and then send a report to me. Problem is, I've done some web-scrapping data before, but I have no idea on how to do …

Member Avatar for RicardoE
0
154
Member Avatar for chamnab

can i write XML with JAVA ? if can ,can anyone tell me what book should i read ?

Member Avatar for peter_budo
0
146
Member Avatar for SagarSe7en

Hello Everyone! I am developing a library system and want to ask how i can display a record in jsp from my DAO.java file and how cn i be able to use next and previous button. Please Help as i need to submit the system urgently

Member Avatar for peter_budo
-1
105
Member Avatar for ThirstyCrow

hi, im a java beginner.i want to read multiple text files,say 100 files.i want to remove the stop words from each of the file and want to save the contents after the stop words removal into newer files. For instance, a file name.txt contains: my name is sash after the …

Member Avatar for ThirstyCrow
0
332
Member Avatar for fida.rind

Im fida hussain rind baloch from pakistan sindh. Im graduating in (it) 2nd year. I have problem to understand java core programming. its now started in class but not understand well about basic of java like 1 Global variables 2 access specifer, modifer, return value . i have a problem …

Member Avatar for jwenting
0
80
Member Avatar for itsmeisuru

Hi, Im new to web services. I have written an EJB(3) project in Eclipse Id(Using jpa to retrieve data from database). Now I want to make this Ejb project to web service. I do not have clear idea about how to do this. The eclipse generates webService and webServiceClient easily, …

Member Avatar for jwenting
0
96
Member Avatar for PDB1982

How do I get the correct response to print out? [code]import java.util.*; import java.io.*; public class MultipleChoiceTest { public static void main (String[] args) { Scanner input = new Scanner( System.in ); String Question; String FirstName; String LastName; String Answer; double CorrectTotal; double IncorrectTotal; double TotalQuestions; double OverallTotal; System.out.println("Please Enter …

Member Avatar for Majestics
0
140
Member Avatar for reemhatim

What is the difference between declaring a variable [CODE]private static final int x;[/CODE] and [CODE]private final static int x;[/CODE] I mean what is the difference between declaring static first then final and vice versa . Thank You :)

Member Avatar for reemhatim
0
79
Member Avatar for triumphost

How do I call the function in the button section?? I tried doing target(); and got when the program ran, it gave me some exception thing.. [CODE] package smart; import java.applet.Applet; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import …

Member Avatar for triumphost
0
301
Member Avatar for akasekaihime

we were asked to create a calculator in java applet......My codes are working except for one thing....whenever I click the clear button, it only erases the first,second and the total sum.....it does not clear the total difference, total product and total quotient....please help me what to do?...... here is the …

Member Avatar for akasekaihime
0
251
Member Avatar for laguardian

Hey guys! I've been creating this program that takes in an input from the user, and if the user is done inputting the required information, the user clicks on the "Ok" button and it opens another form which displays the info that the user inputted from the first form. My …

Member Avatar for JamesCherrill
0
159
Member Avatar for Pravinrasal

I have problem with creating jar file want to create jar file with mysql connector i include the mysql connector in manifest file but still it five me error like: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) …

Member Avatar for NormR1
0
154

The End.