32,199 Topics
| |
Hey guys, I recently completed a program for my boss which simulates a brute force hacker in that it hacks a password by trying every possible combination of ascii characters until it finally discovers the password. I'm new to Java and I drew up a logical, straight forward way of … | |
Hello everyone, I am using a timer to control the speed of the monsters in my game, however I can't change the delay of the timer because i'm using Timer animation = new Timer (speed, this); to make a timer... How can I change the speed (speed is an int … | |
Hello. I'm quite new to Java, but I've worked on Graphics before. I have a couple of questions which are: I want to make a night sky in Java with stars which randomly switch to big stars from small and back, repeating for a set time. I also want the … | |
Hi all I am new to java programming. I need a litte helop. I want to take some results from database so i am trying to connect to database. I have dowloaded jdbcmysql connector but having no idea how to add it in eclipse or jre. Plus i am having … | |
I need some help figuring out where I have gone wrong on my program. It is a classic classroom program, where the program creates a random number and gives high, low response untill the user enters the correct number. I have the GUI working and I know the action to … | |
Can anyone tell me about [COLOR="Red"]how to create my own format[/COLOR] like .azw(kindle device format),.mobi,.epub etc..Is it possible to create it using java? if yes then what are the steps to do that? I am doing project for e-publishing company they need one own proprietary format like the above formats … | |
I have a Java web application, which executes cmd command to load remote desktop window. Now I want everyone to load the remote resktop window from their pc through that web app. The problem is remote desktop window is loaded in the server NOT from the PC of the person … | |
Hi there Daniweb! I have an assignment, but i am unfortunately stuck with one particular part of my assignment. Namely, as the title says, i need to sort an array of objects. Basically I have a HairSalon class with properties, Name, Time, and Price I then have a SortSalon Class … | |
trying to write 2d snake game in java just for fun. i have tile map as 2d array. the problem is that its is not drawing player in level 2d loop. let me know if there is better way to do this. only thing i have to use 2d array … | |
I'm using netbeans IDE and I created a Jframe with two Jpanels one is for Jbuttons and other one is for load another Jpanels to it when clicks those buttons. I tried to do it from buttonclick action. Jpanel2 j2=new Jpanel2(); JPanel1.add(j2); j2.setVisible(True); but this code is not working. I … | |
01. I'm working on a school java project using Netbeans IDE. 02. I need to display IReport in a JPanel Placed inside a JFrame with a button Click. 03. To Create the IReport I used ReportView Class downloaded from the Internet & in the button click Event I have following … | |
Would someone please helpe me out and tell me where i'm missing up with this code.? I want the result(output) in order to be table of row and column. but i was trying and trying but i couldn't. import java.util.Scanner; public class MultiTable { public static void main(String[] args) { … | |
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 … |
The End.