32,204 Topics
| |
Hey y'all I'm making the first steps into java from VB. I'm reading a book about how java works and I'm only a few chapters in. Just so you know how 'fresh' I am, I managed to write 2 classes, one main and another one, I passed a int to … | |
I am trying to write an applet that receives 2 inputs from a user then opens a window and displays the 2 numbers that were input, along with a message of either "the numbers are equal", or "this number is the largest". My problem--my program never returns "the numbers are … | |
Hello, I have to do some java project in school and my teacher said that I have to use some API for XML-parsing. So that I have to have some source XML file. I would like to make some little game like [B]Pacman[/B] and I want that XML file to … | |
I have 2 classes, one of which also has a nested class: 1. Home.java (extends JApplet) 2. Away.java (extends JPanel) has nested class, private class ButtonListener implements ActionListener Now in Home.java I have a Vector ( called bankaccount) which i pass to the Constructor of Away.java ( I declared the … | |
Hey everyone! I have a problem when I save using FileOutputStream, ObjectOutputStream... Well, there is no problem saving a file in my java application to specified folder e.g. "C:/folder/" (that is made with JFileChooser) but the problem is that I want to use MY self made icon (that has, lets … | |
Hi, I am confused over the link between RGB, YUV and awt.Image. I converted a buffer having RGBFormat data to an awt.Image. I then converted a buffer having YUVFormat data to an awt.Image. I used BufferTo Image.createImage(format) method for the conversion. (RGBFormat and YUVFormat are classes in java for RGB … | |
Being absolutely new to java,I am in doubt as to how to begin my project on a Nature-cure treatment centre. (1).I intend to create a software where multiple users can access the database(JDBC comes into scene, isn't it?) (2). Also since multiple users, the software would involve working on a … | |
i am developing a small record management application for a school. Tasks will be Add Record, Edit Record, Delete Record, List Records. Each Record contains: Name(max 100 char), Age, Notes(No Maximum Limit) No database should be used. All data must be stored in one or two files. Listing records should … | |
Hey I am trying to practice some recursive function writing for a class I am taking and I am writing this code and I pull up an error that says ".class" expected in the bold, underlined line! [CODE] import java.util.*; /* This class is one in which the program will … | |
I'm a freshman student in my first computer science class, and I've hit one of many walls in Java development. For a little background, we're working with BlueJ. Our assignment is to implement an ArrayList into a class that calls upon another class "Circle" to create and modify a large … | |
Hi everyone, I'm starting to use JMF and faced the problem:) The problem is to save captured video in .avi or .mov formats.I managed to capture and play it in a player, but can't save it .On the other hand when I used processor to capture and save the video … | |
I am supposed to write a program that converts kilometers to miles and vice versa. We are only supposed to use JOptionPane for this assignment. I am wondering if it is possible to customize the buttons in JOptionPane and associate a formula to those buttons. For instance, I want to … | |
Hello, Can anybody please help me figure out what I am missing here? I need to to create an inventory program that holds multiple items. In addition, I also have to add the manufacturer and a 5% restock fee. The inventory also calculates the total value of the entire inventory. … | |
so I am working on Compositions i have to use the Java interface Queue<E>, create a class named InstructorQueue that implements the Queue interface and all 5 of the operations of a Queue collection interface. You may choose any of the Java collections (choose wisely) as the underlying container. so … | |
n this program, I am calculating the value of pi by simulating throwing darts at a dartboard. I have correctly coded the formula that calculates the values of pi, however, as seen in the code, I can't figure out how to calculate the average of the pi values that I … | |
Hey all wonder if you can spot my mistake or point me in the correct direction. I'm new to Java applets after spending quite some time learning/using standard applications. This simple program is basically converting a standard application into an applet, but for the life of me i can't see … | |
Hi, I have written a number guessing game in java, where the user can select the number of guesses and the range of random numbers. It will display higher and lower and correct however it will not calculate when the number of guesses has been exceeded and the appropriate message. … | |
[code=syntax] package testone; import java.io.*; public class fileread { private String[] a = new String[100]; String x; String sh; public void read(){ try { // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream("test.txt"); // Get the object of DataInputStream DataInputStream in = … | |
Hi friends, i want to know about the java sound API because i have a project title like in my college. My requirements are 1)get voice input from mic , and 2)process that with the already stored audio please help me.. | |
import javax.swing.*; import BreezySwing.*; public class PaymentDDJ extends GBFrame { //Declare variables for the window objects.// private JLabel purchasedprice; private JLabel name1; private JLabel downpayment; private JLabel interestrate; private JTextField nameField; private JTextField purchasedpriceField; private JTextField downpaymentField; private JTextField interestrateField; private JButton enter; private JTextArea balance; //Define the other instance … | |
hi, i am trying to read the file and parse the info to the text field of the awt gui form thing. i got the info out successfully by testing with the "system.out.pritnln(variable )" .. however, using the variable values wouldn't successfully set to the TextFeild for output. //the first … | |
connection polling in struts based application i have a application,in which, required maximum 50 users when the database connection is happened then i have the requirement of connection pooling in which i create maximum 50 obects for the database connection how can i do it | |
This is the question? The German mathematician Gottfried Leibniz developed the folling method to approximate the value of pi: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ...... Write a program that allows the user to specify the number of iterations used in this approximation and displays the … | |
Hello. I have written the code below but when I compile my program, I get Taxable Income Amount Filing Status Tax Amount ------------------------------------------------------------------------------- $50,000.00 null $0.00 I initialized my String output as null but I do not know how to initialize it otherwise. And I need my output to be … | |
Hello, this is related to [URL="http://www.daniweb.com/forums/thread177461.html"]the last thread I posted[/URL], but it is also different. I found something about ImageObserver with a google search and can't find much on it, I tried doing what the site on google did, but it didn't work with the simple test I wrote. here's … | |
Hey, I am writing a program and it requires me to place a file on the desktop. I know in cmd prompt you can use %USERPROFILE% to do it. Is there java equivalent? Thanks PO | |
I'm trying to create a program that identifies the subject and verb of a sentence. I use almost the exact same method to determine words that are nouns and words that are verbs, but when I call this method back-to-back it wont work the second time around. For example if … | |
Getting all sorts of "illegal start of expression" and "; expected" and "class expected" errors mostly pertaining to my extra methods (besides the main). Any takers? import java.util.Scanner; /** This program will calculate income tax based on a person's income. */ public class Income { public static void main(String[]args) { … | |
Ok so I'm in need of some help.In the first part of this code, I need both the 'output' and 'enter' to be returned back to the calling method but one is a String and one is an int. When I compile and run the program, I get a null … | |
hi i am in my last year and have to make a project on the game called carrom but i dont know how to start , can any body help me please for eg how to make software specifications ,how tom start etc.. |
The End.