36,051 Topics
![]() | |
hi there... first of all i dont know where to post this,but still its a java thing so i post it here.. ...i need help on this,,dnt know how to fix,, when i play video or a video chat,,it failed to load and have a java application error, down is … | |
I have this line of code if (passLength >= 1) { for (i = 0; i <= 62; i++) { if (ascii[i] == inPass[0]) { outPass[0] = inPass[0]; i=100; } } } else { return "Please enter a Password"; } I basically want the program to check through an array … | |
Hi I've already read data in another file which is an array, which is now in a string format, what I want to do is change the array into an integer so that I can add the elements of that array. Code given below import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; … | |
hi, I'm trying to write simple culaction programe using stack .. the GUI is simple one textField and one textBox for the outbut and one button this is what I wrote in the button I tried the first operation "-" and it work but I got stuck doing the other … | |
How do you create a node with fullName and studentID in the "add" method and then put them into the correct positions which the name_first and name_second should move until the name in the name_first is larger than the new_Name and name_second is smaller than the new_Name? public class NodeDemo{ … | |
Hello! I've been busy passing exams, but now I'm free to code around again. So, in my usual style! **The goal:** I've been playing some Battlefield 3 during study breaks, and I've often been pissed off by BF3's autobalance mechanism. It's bad. Horrible. It makes me sad. I usually have … | |
Hi All, I am very new to image processing and my requirement is to detect whehter the given large image consist the given subimage (small image) using Java and FAST algorithm. I have found the java lib (jfeaturelib) which support APIs for FAST algorithms and other descriptors etc. Follwing link … | |
I have to do a project where the imust create a class that draws a crayon and then an applet that draws a box of those crayons. I can get the box to draw, just not the crayons. Help? CLASS import java.awt.*; public class Crayon { private final int BOTTOM … | |
Hi all, I am reading a bit about inheritance, super classes and subclasses. Now when I build a java program I usually have a java file for the class and another one to test the class. I was wondering if I use a superclass and a subclass, should they be … | |
Hi DW Well I'm new in java I'm using Visual Basic the most so now I just decided to cross platforms and start doing java, so there is a project that I'm trying to create in jave (I'm sorry for the namings just in case I don't use the right … | |
I hava a simple Java application which uses the `ProcessBuilder` and `Process` classes to execute **cmd** commands. The commands just load a window. Now the problem is when the window is closed, the process remains running. Below is the code snippet I have used: try { ProcessBuilder pb = new … | |
hey there, I am working on this project where I need to retreive merchant objects and their corresponding number of failed transactions. In pure SQL, I'd just write : "select merchant_id , count(merchant_id) from Transactions where status = 'failed' group by merchant_id" however, the only way I managed to write … | |
i am a beginner here, now i am having trouble adding function to the buttons.(i have no idea what to do so might need deep explaination on everything) i totally don't know how to add function onto the button. here is my code: Second part is servlet <%@page import="ejb.CartServlet"%> <%@page … | |
I have to build a program which takes a password as input and then the password machine hacks it. It should do it by looping through the ascii character map 4 times i.e a, b ,c etc followed be aa, ab, ac. It's meant to simulate a "brute force attack". … | |
I am a final year student. My supervisor had asked me for creating one chat program using java. i don't have any idea on how to started it. he asked me for doing a standalone system. please help me solve this problem? | |
Hey there, I have a question regarding the builder pattern that I need someone with more experience to clarify for me. I have this User class that has an inner, public static Builder class that has the same fields as User as well as the corresponding setter methods. Now, the … | |
Hi, I would need help in getting this logic done. I am having an input file in below format: AAAAA HsfAgr345S 001 pos gfdgojog AAAAA HsfAgr346S 001 pos gfdgojog AAAAA HsfAgr347S 001 pos gfdgojog BBBBB POSgfgh571 002 ipo postalap BBBBB POSgfgh572 002 ipo postalap BBBBB POSgfgh573 002 ipo postalap BBBBB … | |
So, i have made a small test application attempting to learn and get used to the Trident library. I use a Timeline to alter the position of a JPanel. I was really impressed with how well it worked, until i added a background color to the moving panel, its all … | |
- Please how is possible (probably dirty hack) to create [How to Create Translucent and Shaped Windows](http://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html) - undecorated container (returns *java.awt.IllegalComponentStateException: The frame is displayable.*) - change Look and Feel for (returns *AWT-EventQueue-0" java.awt.IllegalComponentStateException: The frame is decorated*) - by using code from linked official tutorial . import java.awt.*; … | |
Hi All, I created a small executable that runs an SSIS project. It works on my system but when I tried using it on a colleagues system nothing happens. I'm not overly familiar with with part of Java so any suggestions will be most appreciated. | |
I am trying to use java to detect when a USB is inserted and to read from it. I am currently using javax.usb to try to accomplish this however I get this error (line 11) when running my program javax.usb.UsbException: The property javax.usb.services is not defined as the implementation class … | |
Hello Everyone... I am new to the Java and want to learn java from the beginning... Please suggest me some good books and references to learn java efficiently... | |
My web pages are written in JSP and want to put online. Could you recommend some free web hosting? I searched, but can not find the one I want. Thank you. | |
I'm trying to create a multiple choice quiz, and I need the content pane to scroll. If you run the program I've attached you'll see what I mean. Each question and the answers are place in a JPanel and the JPanels are place on the content pane. Thanks in advance … | |
hey guys, i'm new to java ,,,and i have a problem wish u to get ur answer ASAP i'm reading from a text file by PrintWriter , and there are 3 rows first row is ID second row is name and third row is address. and i want to get … | |
Hi how do i convert a strnig to XMLGregorianCalendar type. I used the below code for this but it throws an exception. userInput41 is a stirng parameter. XMLGregorianCalendar sdate=DatatypeFactory.newInstance().newXMLGregorianCalendar(userInput41); appreciate a reply thanks | |
hai friends.. i want to know whether any mobile apps developed by PHP..plz reply...most of the companies choosing java for they mobile apps..it is possible means just tell the tools required for that | |
I have a strange problem, I have a domains and a subdomain [url]http://client.spry-forms.com[/url] (login using demo/demo) [url]http://spry-forms.com/ClientAdmin[/url] (login using demo/demo) The server is setup with only tomcat 6.0.18.0 Both the above domains are mapped to tomcat/webapps/ClientAdmin. When some one logs in from the second url, the link CREATE NEW FORM … | |
Hello good day. I have an urgent need as it relates to creating a table. Is it possible to create sub-columns under a main column? Please see image file for clarification.  Ultimately, I want to create a coulmn heading, and then beneath that heading divide it's width into … | |
les say i want collision between two rect than i cant set up bounds on both rect: public Rectangle getBounds(){ return new Rectangle(x, y, width, height); } than to check for the collision i can do this: if(rectOne.getBounds().intersects(rectTwo.getBounds()) { ...} **now les say what if i want 2d array:** 0, … | |
i want to replace email string, so example@example.com become examplexxxxxxx i code like this but it did not work : String input="$!email"; String output = input.replaceAll("@$", "x"); System.out.println(output); Please help | |
Hi all I have a piece of program in which i am taking input from another jframe and then using that input i am trying to show results from RDF/XML file, now the issue is that i am trying to convert that input(which is obviouslyin string) to Property datatype of … | |
hey all I was watching a tutorial on java game development.In that video,the guy was making a window a on the screen,then making an oval,then moving it. His code worked fine and i am 100% sure that my code is similar to his(i checked it a few times). What my … | |
Am doing a project that involves exchanging sending sms via a website. Am told i can achieve this via sms gateway. Can i get some sample code please? | |
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 … ![]() | |
|
The End.