32,199 Topics

Member Avatar for
Member Avatar for crazymidget01

I am trying to write a program to perform matrix operations. I want input the two matrices from a file. The file has the format: 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 * 0 9 8 7 6 5 4 3 …

Member Avatar for thines01
0
134
Member Avatar for shootingrubber

Hello, I am writing a Tic Tac Toe java program, and it's almost all working; however, I noticed a bug in it recently and I cannot find the source of the problem. Basically the game has a New Game option in the file menu, and the first time it works …

Member Avatar for shootingrubber
0
187
Member Avatar for th3b3n

I have a basic understanding of how to create A(1) check box, and repeating that method over and over again to create more. However, this makes for messy as shit code, plus I don't feel like doing this method 30 times to create the needed 30 check boxes. So I …

Member Avatar for hfx642
0
124
Member Avatar for lbgladson

Where would I need to save a picture on my computer to be able to use it as an icon on a button in a program?

Member Avatar for hfx642
0
86
Member Avatar for JRDJ12

Hey all, I have an assignment that was assigned for the week that I could use some help on (not asking for someone to do it for me, just help with the step-by-step). Below is the requirements: 1) Create a new Java Project named whatever you'd like in your existing …

Member Avatar for stultuske
0
200
Member Avatar for lbgladson

I have the following code where I am trying to put an icon on the redButton but what I have done is not correct and I'm not sure what to do. There is no where in my book that explains how to do this and I keep getting confused looking …

Member Avatar for lbgladson
0
86
Member Avatar for bombay1982

Hi there; I am having problems with using printf method in this simple loop. I am looking for a 3 decimal places in the right one column and a integers in the left. I know how to print this with system.out.println but I dont know how to write it with …

Member Avatar for bombay1982
0
373
Member Avatar for lena1990

hi i have a project and i have database that is written in arabic language when i run my program all iget is small square instead of the arabic character and i have try to solve this problem 3 months ago and i have search the web and i didnot …

Member Avatar for stevanity
0
2K
Member Avatar for lbgladson

I have to create a GUI that when I click on the buttons it changes the color of the background. Below is what I have but I can't figure out what code to put in and where to change the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for Ezzaral
0
5K
Member Avatar for upanotch

I tried to put an image on a JButton and it's messed up: [url]http://imgur.com/ecBOt[/url] code: [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; public class Polluted extends JFrame implements ActionListener { ImageIcon bg = new ImageIcon("bg.png"); Image bgImage = bg.getImage(); public static void main(String[] args) { new Polluted(); } public …

Member Avatar for NormR1
0
171
Member Avatar for vikasgarg

Hi all I am having a jsp page where I have entered radion button value ,like this:-- <td><input type="radio" name="billType" value="1"/> <font color =blue> Brief Bill</font></td> <td><input type="radio" name="billType" value="2" /> <font color =blue>Detailed Bill</font></td> <td><input type="radio" name="billType" value="3" /> <font color =blue>Itemized bill</font></td></tr> Now I want to get this …

Member Avatar for brynFlew
0
1K
Member Avatar for twazzer

Hi there, I have been asked to import a text file into java, the file contains a series of 1's and 0's which draw a picture. The 1's will be drawn as a dot where as the 0's will be a blank space. I was wondering if anyone could show …

Member Avatar for NormR1
0
220
Member Avatar for programing

[CODE]/** * @(#)TestClassOne.java * * * @aziza meshal * @version 1.00 2011/11/12 */ import java.util.Scanner; public class TestClassOne { public static void main(String [] args) { int size; Scanner input=new Scanner (System.in); System.out.println("plz enter size of array"); size =input.nextInt(); int [] a1 = new int [size]; ClassOne [] a2 = …

Member Avatar for programing
0
80
Member Avatar for titusnainggolan

Hello all, I want to ask you what this code mean. [CODE] import java.io.*; class CopyFile { public static void main(String[] args) throws IOException{ int i; FileReader fin; FileWriter fout; try { fin = new FileReader(args[0]); fout = new FileWriter(args[1]); } catch (FileNotFoundException e) { System.out.println("Error opening output file."); return; …

Member Avatar for JamesCherrill
0
282
Member Avatar for morred

Hello! I'm new to this site and fairly new to Java, I've tried creating a program that takes a file as input and edits specific substrings in said file, compiles without problems but the file remains unchanged. [CODE] import java.io.*; public class Uppg10_OH { static class MinHistoria { private String …

Member Avatar for morred
0
166
Member Avatar for glenak

Hi guys, Is it possible to bind a the column of a table in a database to a jcombobox or jlist? I'm asking, because I'm currently working on a project in java that involves displaying data from a database table in a list and combobox and I'm trying to find …

Member Avatar for stevanity
0
97
Member Avatar for Jessurider

can we find a particular image whether exiting or not within a video file.......... i.e imagine i've a picture of a particular person and a video file....and i've to find whether that person in the picture exits or not somewhere within that video file...........

Member Avatar for Jessurider
0
93
Member Avatar for anand01

hi all i tried one quiz in that i got question [CODE]Given: 1. public class Blip { 2. protected int blipvert(int x) { return 0; } 3. } 4. class Vert extends Blip { 5. // insert code here 6. } Which methods, inserted independently at line 5, will compile? …

Member Avatar for anand01
0
183
Member Avatar for abhishekarora

hi am making project..i have entered the record in 8 columns of table using jdbc and 9th column is automatically icremented as primary..so after putting the record and executin query i want to check primary no which i get..i want to show it in text box..what can be the query...?? …

Member Avatar for ~s.o.s~
0
95
Member Avatar for asif49

Is there a way to map multiple values to the same 'person' without creating objects for them each time. I.E I have a class called Person and Ill need to continuously add to it information like the type of car this person owns (more than one car). I want to …

Member Avatar for NormR1
-1
119
Member Avatar for Daigan

[CODE]private double convertLiquid (double none2 ,char unit2, char amount2) { if (unit == 1) return (amount * 33.8140227); else if (unit == 2) return (amount * 0.001); if (unit == 3) return (amount * 1000); if (unit == 4) return (amount * 0.00852167911); if (unit == 5) return (amount * …

Member Avatar for javaNooblet
0
136
Member Avatar for jhamill

Hey so for my lab we were given this code and told to fix it so that each candidate's information is printed on the appropriately colored background. The voting space for sarah is supposed to be on a green background, and the voting space for joe is supposed to be …

Member Avatar for NormR1
0
194
Member Avatar for vaironl

I have a scanner which needs to read a recipe text file, specifically line 3. I want to read all of the words in that line using a delimiter (which I already know how to use). Though I don't know how to make the scanner stop before going to the …

Member Avatar for Aviras
0
161
Member Avatar for oddsocks

Hello, I am on an introduction to software development module. I need help creating an array, it doesn't have to be hugely complex only basic as it is at introductory level, but still I am finding it difficult, [U]please can someone help it will be gratefully appreciated.[/U] [B]This is the …

Member Avatar for javaNooblet
0
103
Member Avatar for kyriacos1986

Good morning to everyone. I have been asked to derive a SortedLinkedList from the java.util.LinkedList which will sort members of a gym based on their last names. In addition will calculate the BMI of each member, the members will be added from a text file. Here is my code. 1.Class …

Member Avatar for JamesCherrill
0
178
Member Avatar for ynwa

Hi all, I am using a SWT combo box in java. The functionality is like whenever a user enter string in the combos text field, based on that string i am filtering the combos list values and displaying the list using combo.setListVisible(true). Now, after typing the first letter the list …

Member Avatar for Aviras
0
417
Member Avatar for mcspud

Hi i need help with a asighnment, i am supposed to take an existing pig latin transualater and modify it to deal correctly with capitals and punctuation, i am currently at a loss at what to do. here is the class file: [CODE]import java.util.Scanner; public class PigLatinTranslator { public static …

Member Avatar for mcspud
0
136
Member Avatar for BIG J

Hi, I am doing some blueJ work but am not the best at it. I have to create a basic library system, this is made up of three classes. Book, Member and Library. These are the following requirements for my library class: 1.It has two fields of ArrayList: one is …

Member Avatar for BIG J
0
198
Member Avatar for javausers

Hi, I m trying to write code to merge two csv files. could any one help me out to get the hints to start?

Member Avatar for javausers
0
666
Member Avatar for tania123123123

my task is Design and implement an abstract base class ArithmeticExpression that represent any binary (having two arguments) arithmetic expression. The abstract class should include at least two methods called evaluate and display.... i have done the code but it doesnt output anything.. im really stuck.. does anyone know why? …

Member Avatar for JamesCherrill
0
184

The End.