35,618 Topics
![]() | |
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. … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
![]() | 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 … |
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 - … | |
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 … | |
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 … | |
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, … | |
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 | |
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 … ![]() | |
| |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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); … | |
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? | |
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. … | |
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. | |
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 … | |
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 … | |
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 … |
The End.