35,618 Topics

Member Avatar for
Member Avatar for Bhavya scripted

hey all..i followed "thenewboston" tutorials in java for game development(3-7).I am having trouble in loading an image on the screen..i try this code: bg = ImageIcon("C://TEST///Test.jpeg").getImage(); pic = ImageIcon("C://TEST///FACE.png").getImage(); this is the same code as his and i have made all the pictures in the TEST folder in c drive. …

Member Avatar for stultuske
0
218
Member Avatar for Violet_82

Hi I would be really interested to understand how exactly the toString() method works. I have read quite a bit about it, that it returns the string representation of an object, that the default one can be overridden with @Override etc etc. Let's have a look at some examples: @Override …

Member Avatar for Violet_82
1
225
Member Avatar for phani1092

immutable objects cannot be altered,whereas in line 3 x contains xyzabc. I want to know what exactly is happening with the string object. Thanks in advance

Member Avatar for JamesCherrill
0
326
Member Avatar for bhallarahul

Hi I want create a program in which folder(level 0) is containing number of subfolder(Level 1) and each folder(subfolder Level 1) contain file number of file and subFolder (level 2). now i want to copy folder(level 0) but from subfolder (level1) want sepecfic file and subfolder(level 2) rest want to …

Member Avatar for JamesCherrill
0
176
Member Avatar for ceelos1974

well I need some guidance to how I can do what I wan't done as I haven't gotten any idea I got the GUI made, now I have these items I wan't the player to be able to paste onto the empty space (were there are no GUI) how can …

Member Avatar for ceelos1974
0
227
Member Avatar for bhallarahul

hi I have method which accept file and want to compare with string for the above mention reason i did System.out.println(targetFolder.getAbsoluteFile().equals(listPropertyValue[1]/*which is a string */)+"\n"+targetFolder.getAbsoluteFile()+"\n"+listPropertyValue[1]); the value of listPropertyValue[1] and targetFolder.getAbsoluteFile() same value but it gives false. Please tell me where i am wrong Thnks

Member Avatar for bhallarahul
0
110
Member Avatar for SoulofchaOs

There's a error when I run this jsp file --> **" pstmt.executeUpdate();".** **"org.apache.jasper.JasperException: An exception occurred processing JSP page /TestAdd.jsp at line 39"** My code essentially have a text box for users to enter a value, and then the value is sent to the MySQL database. Any help is appreciated …

Member Avatar for peter_budo
0
306
Member Avatar for Keaselstein

Hi guys, i am working on a Project about mobile Navigation on a lego Mindstorms Robot but i am stuck right now. I get this error:"The method MinDistanceNode() is undefined for the type ArrayList<Node>" I have four different Classes. The problem is probablyin "DijkstraAlgorithm" or in the Method "minDistanceNode" which …

Member Avatar for jalpesh_007
0
7K
Member Avatar for Ralphael

I have a project I am working on and it involves java graphics which I am a novice at, I have uploaded the description of the project and the image of how it should look like, now i am having problems implementing the part of introducing the virus and drug …

Member Avatar for robin.litsetorp
0
243
Member Avatar for JamesCherrill

I'm suffering from a complete brainfreeze here; maybe some NetBeans user can un-block me without making me look like a complete idiot? Thanks. I usually use Eclipse, but for this particular project it has to be NetBeans. I have two projects defined. One is the main project with packages - …

Member Avatar for JamesCherrill
0
279
Member Avatar for game06

i want to use JavaFunctions.java into login.jsp file. my plan is to store all my java functions in one file and i can use them later. ex check for string or number etc functions... first my folder tree. webside_01 >.settings >build >src >newServlet JavaFunctions.java website_01_Servlet.java >WebContent >META-INF >WEB-INF index.jsp login.jsp …

Member Avatar for stultuske
0
306
Member Avatar for peymankop

Hi...! I'm working on a notepad project,in save or saveas option just like the real notepad i want that the file automaticly save as .txt file if in the option below i choose "all files" it saves a file and if i choose "text documnet" save as *.txt file how …

Member Avatar for bguild
0
129
Member Avatar for Violet_82

Chaps, I have tried to upload some java files on the forum (it's an exercise I was working on and after having done I tohught I would make the code available for everybody to use, in case anybody wants it), but there doesn't seem to be anyway to upload them, …

Member Avatar for Violet_82
0
504
Member Avatar for anisha.silva

Hi I have a WSDL file. from that file how do create a java clinet application. apprecate if someone could reference me to some links appreciate it thanks

Member Avatar for anisha.silva
0
95
Member Avatar for happygeek

Dana Tamir, Enterprise Security Director for [Trusteer](http://www.trusteer.com/) has recently uncovered a variation of the TorRAT banking data malware which has been actively configured to target Twitter users. The attack works by "injecting Javascript code into the victim’s Twitter account page" Tamir says, adding that the malware "collects the user’s authentication …

Member Avatar for diafol
2
389
Member Avatar for sushants
Member Avatar for sushants
Member Avatar for loozax

Can someone give me an example on how to reverse an inputted string? example is..when you inputted "shoes" the output would be "seohs",,then it wil determine if the inputted string is a Palindrome or not..

Member Avatar for JamesCherrill
0
707
Member Avatar for overwraith

I have been having some trouble with this action listener scenareo, and I am doing it exactly like what my java book says to do, and something is still not working. In the action listener the if statement is not working correctly. Here is an example of my code. The …

Member Avatar for overwraith
0
175
Member Avatar for ktsangop

Hi everyone, I am a C/C++ winapi developer and have to rewrite a "Dialog based" application in java, so that it will execute as an applet in any browser. My java skills are very few, since my knowledge is limited to past college classes. The application is not a large …

Member Avatar for ktsangop
0
375
Member Avatar for chrispitt
Member Avatar for bhallarahul

Hi these day i am trying learning ckeditor so i used CKEditor jar available for the java developer when i run given code on tomcat server this ode will not give anything please tell me <ckeditor:replace replace="editor1" basePath="/ckeditor/" config="<%= ConfigurationHelper.createConfig() %>" events="<%= ConfigurationHelper.createEventHandlers() %>" /> what is wrong or it …

0
73
Member Avatar for Nubitol

anyone can help me? i have a task from my teacher. He asked me to make a simple image processing program that can process 2D image with this feature: -the program can make a translation, rotation (an angle of rotation with arbitrary), scaling, and shearing. -the program can make an …

Member Avatar for JamesCherrill
0
334
Member Avatar for jason.angeles.75

public class homework8_2 public static void main(String [] args) { Scanner keyboard = new Scanner(System.in); int selections = 0; DecimalFormat formatter = new DecimalFormat("#0.0000"); do { showMenu(); selections = keyboard.nextInt(); System.out.println("please input the amount of meters"); double meters = keyboard.nextDouble(); if (selections == 1) { double kilometers; kilometers = showKilometers(meters); …

Member Avatar for stultuske
0
252
Member Avatar for rey00795012

When you make an app that sends sms msgs using the android bulit in or the smsmanager, are those text msgs sent for free? or they are sent as part of whatever text contract the user has? does anyone know?

Member Avatar for rayidi
0
90
Member Avatar for aravind326

Hi, I'll quickly explain what i am trying to do before telling the problem i am facing. **Requirement:** 1. Store the contents of a file into an object. 2. Send the object through HTTP socket to another client server. 3. Have the server fetch the file contents from the object. …

Member Avatar for JamesCherrill
0
216
Member Avatar for ganges

Hi, what are the essential steps have to be done before installing eclipse j2ee on ubuntu manually give me valuable tips, thanks for your time.

Member Avatar for stultuske
0
153
Member Avatar for sndj

hi, I'm new in Java and Hadoop. I'm in need of MapReduce code for large EEG data file split in Java. Based on channels(electrodes attached on head) and time, data have to be splitted. In mapper file splitting takes palce and in reducer it process the splitted data. For parallel …

0
139
Member Avatar for kay19

Well I have a question and not sure if it's right. Here's the question(Long one). Applications. Build a class called Precinct. The record for a voter will consist of aname (String) and a political party(Boolean)(Two party). The SignInQueue method takes two parameters, a voter name and a party, and places …

Member Avatar for kay19
0
298
Member Avatar for sankhasubhra

I'm developing an application in JAVA where a servlet is taking the inputs from a JSP page. After inserting the values in db it will redirect to another servlet. Then the 2nd servlet will dispatch a JSP page with an ArrayList. But I can't redirect from the 2nd servlet to …

Member Avatar for nadim123
0
412

The End.