35,618 Topics
![]() | |
I've been trying to figure out how to launch a java application from a single double click file like you would Microsoft Word or Firefox. I think I've seen a couple of Java applications that do this, but I haven't seen how. | |
Hi, thanks for looking at this thread. :) **The goal:** I have this 2D boolean array (from my [decoder](http://www.daniweb.com/software-development/java/threads/452559/decoder-simulatorcalculator-complement-of-2-problem) thread). I managed to write a method that goes through the rows and appends a '1' or a '0' to a string based on what's in the array (1 for true, … | |
Hi Everyone, I've been working on creating this code for a project I've been working on but I can't seem to get it to work. I'm creating a service class that I can then pass to a client class that will read a list of cities that ends in a … | |
Hi! It's me again and [this](http://en.wikipedia.org/wiki/Decoder) is a decoder! **The goal:** And I'm trying to make a program that solves logical problems related to the decoder device. For that I need a loop that write true/false into a boolean[][] based on the rules. Say we have a decoder with 3 … | |
Hi anyone please help me...... i am trying to export some data to excel file while doing this i got the following exception... here is the stacktrace... Servlet.service() for servlet action threw exception: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:598) [:6.1.0.Final] at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:199) [:6.1.0.Final] at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125) … ![]() | |
Hi everyone. I am doing a USACO training assignment, and the instructions are as follows: > Is Friday the 13th really an unusual event? > > That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer … | |
I have made 4 classes that represent an Employee based Java GUI. They are Person, Employee (extends the Person class), EmployeeFrame (used to model a JFrame), and EmployeeTester (contains the main method to run the GUI). What I want the GUI to be able to do, is allow the user … | |
Write a program with subclass InterestAccount and CDAccount. The driver program (Account.java) must perform following transactions: 1) Print the name of your bank and yours at the top. 2) Creat an Intrest Account for "Benjamin Franklin" with PIN of 1234 and a starting balance of $100. 3) Creat a CD … | |
Hi, i have plenty of excel files i have to read them and store the data in a database. I am using eclipse as editor and mySQL. I am using APACHE POI to read the excel files and JDBC for the connection. The excel files have the structure as the … | |
Java SE JRE 7 update 21 is now available, with fixes for dozens of security-related issues. Immediate installation is highly recommended. Head on over to Oracle's Java download page and grab it now. There is also a version for Java 6 users, if any such animals still exist. | |
Hi, I have installed Eclipse Indiog Service Release 2 and Java 1.7. I have created a simple HelloWorld program in Eclipse. However, when I am running app using Run As Java Application its generating error as below : First Message : Java Vertual Machine Launcher : An error has occurred. … | |
Hey guys, i found this tutorial online that involved searching your database for an existing value. I have changed the code around so it fits with my system but when i run it the input displays but once i press ok the input box closes and nothin else happens. Heres … | |
is it possible to input your name, middle name and surname and then will display initilas in large block letter made up of same character it represents??? | |
How do I implement a frequency counter in a treenode that increases when the user enters an existing word? I have a program where the user is asked to choose: enter string, search for string My frequency counter is not working properly. How do I keep track of the frequencies … | |
Hi, I'm trying to use Case base resoning in Poker. Does any one have any experiance or samples to share? I would like to set the parameters with which I 'describe' the problem situations (eg, a similar sequence of previous moves,user cards, Player Position,..) Depending on certain parameters I would … | |
Hello I, like everyone else, has made a text based calculator but Ive never worked with GUI in Java. Im using MyEclipse. Very simple. Numbers, four symbols (+, *, / and -) and "=" Nothing else How would I even start with this? Thank you | |
I have a jar file generated in netbeans that has my 1.5 million+ lines of code compiled perfectly and has been running in the Netbeans enviornment for years. I need to know if I can use my build.xml that I am learning to write in eclipse to manipulate that dist.jar … | |
hello, guyzz,,i hope you can help me,,actually,,this is not my whole code.but please help me with this... public class Calculator { public static void main (String args[]) { String exp = JOptionPane.showInputDialog("Enter mathematical expression: "); exp = infixToPostfix(exp); JOptionPane.showMessageDialog(null,"Postfix expression: " +"\n"+ exp); public static String infixToPostfix (String infix) { … | |
I am working on a project for class. I have to write a program that reads in an infix expression and converts and it to postfix and evaluates it. Currently I have it to where I can convert an infix expression with no parentheses to postfix, but am having some … | |
Hi guys, If i have to give a short description about my skill set, i would say i am PHP developer. I have been coding in PHP for the past 4 years and its been an year and half that i have been using CodeIgniter. I loved it! I wanted … | |
if i hit sumbit i get output at bottom. but if i check again than i get a error. bc number1 is null. i was thinking to have about if statment inside if statment, to text if int field is null or not. <html> <body> <!-- directive tag --> <%! … | |
Hello! i am working on a computer based text (CBT) software. i need assistance on how to add a count timer so that once the timer counts from (say 45 - 0) mins, the software should. i will be very grateful if i'm given this assistance... thanks | |
Hi, I'm new to this forum and look forward to contributing. I am currently working on a project where I have to build a Java simulator which consists of three input lines of food, three processing machines and two packing machines. There are 2 processing machines dedicated to processing perishable … | |
Hello, I have been writing a program that allows for client/server communication. The game sends questions to the client, and allows the user to answer the question. It repeats 10 times, then gives a final score based on the user's answers. My question is how do I only allow 10 … | |
When I run the game and try to use the Arrow keys to control the movement of the selection box, nothing happens. I'm pretty sure the game is redrawing itself properly because the ticker text is updating. Aswell, I tried doing: selectVal++; in the update function in TankShooter.Java, which made … | |
I have a class which includes a constructor that holds hours and speed, getters and setters, and a method which calculates distace using the hours and speed variable. I need this to display a table which takes however many hours the user inputs, then for each hour display a row … | |
package Assignments1; public class project { public static void main(String[]args) { While (we have money left to spend and (itemNumber <=max number of items)) { Display amount of money left and number of items that can be bought. Read cost of proposed purchase if(we can afford the purchase) { Display … | |
Hi, I'm a computer science student, my O.S teacher asked us to write a operating system simulator in java, each group of students should write a piece of the simulator, like memory management, process scheduler, file system, etc. My group needs to make the file system part, it's more like … | |
so i have two animation. one is when player is standing and one is when player get hit. 'standing' animation will keep looping for ever. and 'planehit' animation should loop though onces and stop. in player class iam setting up animation by getting images. 'standing' animation has two images. 'planehit' … | |
Hi,can anybody help and guide me on doing this java program? (Largest rows and columns)Write a program that randomly fills in 0s and 1s into an n-by-n matrix,prints the matrix,and finds the rows and columns with the most 1s.(HINT:Use two ArrayLists to store the row and column indices with the … |
The End.