32,199 Topics
| |
i'm extremely new to java, so i'm probably making a mistake somewhere. anywyas, my program works, however whn the user repeats the data entry, it does not get replaced with new data. [CODE]package convhms; /*HOW THIS WORKS: * * the main function captures the user input as a float * … | |
I dont have any code to show you here . i would like to know that how a java application enabled to read information from an electronic id card (via a device which reads it)or to read information from a barcoded id card. Please show me a way to do … | |
Hello, The following program has three JPanels - one to hold the image, one for the JComboBox and the last one for holding the JLabel, JTextArea and JButton. Once a selection is made in the JComboBox, the user will enter text in the textarea and press the button. The button … | |
hello, I need help for my code, I created an interface that contains a button and a JProgressBar with the netbeans interface, but I do not know how to change the color of the JProgressBar, I tried the method setBackground (Color.color), click right on the JProgressBar proprties Does not change … | |
Hey guys, I wish to do a project in Java Language but dont know what to do. I need ideas. Help! | |
I'm study Compressing and Decompressing Data Using Java APIs from [url]http://java.sun.com/developer/technicalArticles/Programming/compression/[/url] but when i compile this example: [CODE] import java.io.*; import java.util.zip.*; public class UnZip { final int BUFFER = 2048; public static void main (String[] args) { try { String fileName = "your zip file" //but your zip file … | |
Hi! How can i remove from a file a spesific line which includes "abc" string by using RandomAccessFile libary? Thanks | |
Hi All; Im just making a simple Desktop app. Ive got a need so that the user could be able to add data to the table dynamically. Ive done implementing the table and also code for adding rows. Issue is after i add the row it is not displayng in … | |
hello all I use notepad++ to create my code I use dos command to javac the code some times when there is error in my code the the dos console shows many lines of error message my question is : if the error lines's message is 100 lines or more … | |
hi every one I have a exercise when i going to use boolean. Im need to do 3 intergervaribals var1 var2 var3 and then i get same claim im going to get in to it like one of it is: The number var1 is evenly divisible by 7. i figuer … | |
I have a Sudoku puzzle and I need to make sure that each row and column have each number 1 through 9. What is the easiest way of doing this? The code snippet that I have so far is below. public static boolean rowsAreValid(int[][] array){ for(int i = 0; i … | |
hi i am trying to make a hangman game and what ineed to do is when there is wrong answer to put pic of part of the hangman but dont no how to do it, here is my code thanks [CODE]int charPos = +1; String letter = ALetter.getText(); charPos = … | |
Hi everyone, Is there a way to read the text in a pdf file like reading notepad? And after that, I should be able to use it, for example, in a text area or show it to my users without using another program such as adobe reader. That's really important … | |
Hi people, How can I put a JRadioButton wherever I want in a JPanel? I tried setLocation() but it did not change anything. It is still on the north-center part of the panel. I think I'm missing something, but I can't figure it out. Thank you in advance. | |
I am doing my project in datamining area.Please help me with the code for clustering a set of attributes in database. | |
So I'm trying to print the first six generations of the Game Of Life in a 7x7 array. I only have the code for one generation, but I can fix that later. I made the array types integers. What I need help with is getting the correct code for all … | |
Hello forum, Vaironl here. I already asked this question with no luck. So now I will to repost it without the code. I have a JPanel which contains labelsand JTextField + other components. When I minize the window and then restore it The components stay in place but the are … | |
how can i implement a function ex: 'add item' without using oop ?! | |
[CODE]import java.util.Scanner; class wloop { public static void main(String[] args) { int counter=2; int sum=0; while( counter<=200 ) { sum = sum+counter ; counter = counter+2; } System.out.println("The sum of integers from 2 to 200 is: " +sum); } }[/CODE] [CODE]import java.util.Scanner; class wloop { public static void main(String[] args) … | |
Can anyone tell me y is it that taxDeduc won't return the value? [CODE] import java.util.Scanner; public class PayollComputation { public static void main(String[] args) throws Exception{ Scanner get = new Scanner(System.in); //variable declaration int ctr, loc = -1, payrollPeriod, daysAbsent, minsLate, oTHours; int tempENo = 0; char ans, ans2; … | |
Hello everyone or anyone! Could some please assist me on how to read a text file like this: ProgrammingAssignment1Data.txt 123 South Market Street Downtown 101 Package 0 1599 Burbank Road Cinema 10 Movie posters in tubes 1 1 order slip format is: Pick up address Drop off address item description … | |
| Hey I need help making a isEqual method in my singly linked class. The goal is to prove that both list have the same elements without necessarily having the same order. Now my method does call a different method in the node class, and it's job is to to search … |
Hello! I'm writing a very simple program to get used to using GUIs, and I'm having a bit of trouble. We're supposed to be writing a program that just creates a window and after the user puts in a number, it calculates the square root and the square of the … | |
hi i cant get this to print out my result i get red lines underneath [CODE] operators1.setVal1(12); // sets val1 to 12 operators2.setVal2(45); // sets val2 to 45 operators2.setVal3(94); // sets val3 to 94 operators2.Calculations1(); // Calculations method being called for equation 1 operators2.Calculations2(); // calculations method being called for … | |
public static void main(String[] args) { World earth = new World(); Turtle t1 = new Turtle(earth); t1.penUp(); t1.moveTo(50,50); t1.penDown(); t1.setPenWidth(5); t1.drawLetterN(5.0); t1.penUp(); t1.moveTo(500,400); t1.penDown(); t1.setPenWidth(3); t1.drawLetterN(2.0); t1.penUp(); t1.moveTo(330,50); t1.penDown(); t1.setPenWidth(15); t1.drawLetterN(15.0); t1.penUp(); t1.moveTo(250,240); t1.penDown(); t1.setPenWidth(8); t1.drawLetterN(7.0); t1.penUp(); t1.moveTo(10,350); t1.penDown(); t1.setPenWidth(10); t1.drawLetterN(10.0); } public void drawLetterN (double scale) { System.out.println("drawLetterN was … | |
:C my fresh install Netbeans 7.0 won't open and it says "JVM creation failed" can anyone pls tell me what's wrong? >.< | |
Basically, i've been told to initialise a grid into the "canvas" section of this program i've made, I need to make a fine grid that stretches across the whole canvas horizontally and vertically, 10 x 10 pixels apart example of the code i'm editing to do this below... [CODE] class … | |
Hello, The following program displays the text area for the entire JFrame even though I have set the dimensions of the text area to be 10 x 15. Any help will be greatly appreciated. Thank you! [CODE]import javax.swing.*; import java.awt.*; public class Scrollers extends JFrame { JTextArea area; JButton button; … | |
hi guys, i am doing a game where i have to detect whether my sprite collides with the wall horizontally or vertically, so in that case reverse the velocity of x or the velocity in y or both in some cases. what i have done is that with an array … | |
hello ! i have experience in VB.net,C# and MSSQL2000,2005,2008r2 .but today my boss assign me a task to connect mssql server 2008 by using JS or JSON ,both are unknown for me ,:( i dont have any knowledge about JSON and JS , can any one help me how to … |
The End.