32,204 Topics
| |
This JFrame opens and puts in the empty questions and answers when it starts as it should, but it doesn't print the questionList.size() at line 191. The next button also won't go to the next question which should be retrieved from the text file. I'm not sure if the questionList … | |
So far my professor has given us code and we basically "fill in the blanks" of the methods below the main code. I've done all the other methods, but am now stuck on the Taylor series portion. The code below is to calculate angles, and one of the methods called … | |
Hi there, first post! First off, I apologise for asking such a basic question, but I am new to Java (done VB before..) and was wondering if you could please help me out with a little problem I'm having! I have a method that reads data from a text file, … | |
In one European country there are two types of music festivals national and international. All take place in one or more (sometimes random) days, but all days are in the same calendar year. For the national festival is significant whether or not have jury (that is giving additional prizes). For … | |
This is my first time trying to use KeyListener and I just need it to move an image over 20 px every time I press the right arrow key. After 400px, it should move down to the next line vertically 'playery.' For Some reason it prints out the console output … | |
please help need a code tht calculates number of hits and misses in the cache from a adddress file with addresses stored as hexadecimals stored on th hard drive.these hexadecimals should first be changed into binary.. ive read some psuedo codes buh i seriosly dont know were to begin the … | |
HI, a pretty frustrating problem arose. I am not going to post any code this time. This should be straight forward question anyways... :) I have a class that contains a constructor with arrays. Also, a methods to add to the array using scanner class. The problem is, I implemented … | |
Hi, I want a code for opening a particular folder or directory on button click. Thanks. | |
Hi, I've been learning java, and I have a question about creating an array. Basically, what I want to do is that I wish to create an array with an unknown array length, then ask the user to input values to be stored in the array. The length of the … | |
Hi everyone, I have an ArrayList containing 40 or so JPanels for a board game developed in Netbeans with java - is it possible to have an event listener or something similar that will "monitor" the ArrayList for any of the JPanels being clicked, rather than having to create an … | |
I am doing a GUI in swings using Netbeans IDE. I have two frames AudioVideostreaming.java Audiostreaming.java There is button called "Audiostreaming" in AudioVideostreaming.java file. When this button is clicked I want that the AudioVideostreaming.java frame is closed and Audiostreaming.java frame is opened. What code should I include in AudiostreamingbuttonActionperformed() method … | |
Hi everyone, i need some suggestion regarding the display of the values of two database table in a single JTable. Can anyone help me to get the proper way of how to do it. Actually i need to show the comparison of the two tables in the JTable by displaying … | |
i have this code. i am trying to set a grid and start at c. it then moves to the next value - 1, so in this case, would move to a 4. However, in my IF statement, i want to put if(position surrounding c == c-1){then change that position … | |
Hi guys, ive read an article about using PHP with Java here:[url]http://www.devshed.com/c/a/PHP/Using-PHP-with-Java/[/url] but im a bit confuse to get start with this instruction in this article.i pasted getting started page: [QUOTE]PHP doesn't come with Java support turned on by default, so you'll need to recompile it to enable this support. … | |
This is a simple Search Engine that contains tokenized words as keys, in which they will return values associated with them in an ArrayList. All that is required is a text file from a valid extension. | |
Hello everyone, I am trying to write to a file what I am currently displaying on the console. I have a bit of code that works fine by creating a list of files based on it's file extention and it then displays it using println: What I want it to … | |
Hey there!! I have been working on creating a 3D solar system...I am done with creating the planets, adding textures and lighting and putting the planets into an orbit revolving around the sun. The part left is the saturn's rings. Can somebody tell me if it is possible to create … | |
hy for all . i have to do a new university work about text mining and specialy on sentiment analysis . i have to try to analyze some mails and forums to extract from about what the student are discussin .. i've seen a lot of documentation about this , … | |
Hi forum, Could you give me some simple 2D array problems to solve? Thanks! | |
can anyone give code for a simple java speech recognition program... | |
hello guys, I don't have a programming question but a mathematical one but need to implement it in a program. I need a formula the will let me find the X,Y position of Circular motion. For example: earth travelling around the sun, I would wanna know the X,Y position of … | |
how do i create new JLabel() dynamically in a while loop, and add to a JPanel by using the setBounds method. The setBounds work, however, there are other JLabel added to other place. why is this happen? [code]while(condition){ pin = new JLabel(); pin.setIcon(pinIcon); pin.setBounds(Panel1.getImgX(), Panel1.getImgY(), 20, 30); Panel1.panel.add(pin); }[/code] | |
Hi, i wanted to create a JTextField to receive the user input instead of having the user key in the input through the IDE console. This is my code. Now, my code just runs fine if the user key in the inputs through the console. After running the code, the … | |
I've been working on this program recently and its been blowing up with errors, every time I work through a bug, more surface. Now I keep getting incompatible type errors at the spots I marked out. If someone could help me sort it out or point me in the right … | |
Hi folks, Please forgive a bit of a n00b question, but I'm working with the SwingWorker class and want to create a subclass of this which includes an input type, as well as the existing output and progress-message types (so basically I'd have "CTSwingWorker< I, O, M >"). Now, I'm … | |
hello there, this is really urgent, do you know how to convert from a string to AgletProxy ?? i have two classes : Parent.java and Child.java, The Parent.java class, creates a child , passes it its agletproxy while creating it and dispatches it to another machine : [CODE] package examples.help; … | |
I'm trying to make a digital clock in Java. The program is at the end going to be an alarmclock. So far I've made 3 classes: Main, Clock and Time. Main only creates an object of Clock. Time handles the javax.swing.Timer function for the clock. And the Clock creates a … | |
[CODE] public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((temp1== null) ? 0 : temp1.hashCode()); result = prime * result + ((temp2== null) ? 0 : temp2.hashCode()); return result; }[/CODE] I don't really understand about haschodes, yet, so I … | |
Hi , I have two string which have time in them like one= 11:54:30.360 two= 11:54:30,427 Wht is the best way to get the difference between them Thanks | |
Hello everyone. I have some problems in implementing some stuffs about genetics in java. Here's the scenario. A human cell contains 23 pairs of chromosomes. Each chromosome in each pair has thousands of genes. Each copy of a gene is called an allele. These alleles determine the different traits of … |
The End.