Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~28.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for musikluver4

Just a curious question, not important really. More for a discussion. Isn't using int i = 0; boolean count = false; pretty much the same thing when flagging? I mean when something goes right, change i = 1; count = true; and get the same result. What's the advantage of …

Member Avatar for stultuske
0
299
Member Avatar for AmericanRogue

I'm trying to get a user to input a char and an int to create a box visual using that int. I tried to use Character.parseChar, and realized that wasn't possible. How can I get user input of a char value? Below is my code. [CODE] import java.io.*; public class …

Member Avatar for kiail
0
1K
Member Avatar for musikluver4

I have been doing java for almost 3 years now, am just starting to learn Objective-C as of this past June. Been writing a few programs on my own and writing programs for the exercises in 2 very cool Cocoa/objective-c books. My question is how do I, coming from Java, …

Member Avatar for anilkumar-m
0
263
Member Avatar for musikluver4

I have a JFrame with 2 JPanels...my problem When I attach one of the JPanels to the JScrollPane object, it encompasses the whole JFrame, instead of just the JPanel I said to attach to. The scrollBar goes all the way up to the top of the JPanel I don't want …

Member Avatar for musikluver4
0
734
Member Avatar for musikluver4

I want to be able to create JLabels, all different names, with a for loop ex: [CODE] static JLabel[] totalAYearLabelYr = new JLabel[termYears]; [/CODE] So I got 30 JLabels named totalAYearLabelYr, which I'm not sure you can have 30 JLabels named the same thing. I wanna name them all totalAYearLabelYr1 …

Member Avatar for musikluver4
0
7K
Member Avatar for musikluver4

How do you allow an action to be performed when a user selects a specific item on a Choice() component? For example: If a user selects a specific item on the Choice() component, I want a JTextField() to be set to .setVisible(true) and appear. Anyone?

Member Avatar for musikluver4
0
81
Member Avatar for musikluver4

Quick question. I have text in a JFormattedTextField, I clear it with a clear button to make it setText(""); and heres the problem: When I go back in the field, and just to test it, I just tab out or mouse click out of it without typing anything in it, …

Member Avatar for musikluver4
0
59
Member Avatar for musikluver4

I have posted my entire program on a thread I have started, but I don't want anyone stealing it. How do I edit posts that can't be edited anymore?

Member Avatar for Dani
0
187
Member Avatar for musikluver4

I am just curious if anyone knows how to BEGIN to start the coding for telling the program to have a GUI with typical fields, labels, buttons, panels, etc in a GUI, and then when a user presses a button, it goes to a complete different GUI with brand new …

Member Avatar for musikluver4
0
5K
Member Avatar for musikluver4

How do I allow the display to show numbers with the commas, but then when it does the calculations, have the commas go away for the math since obviously java can't read commas in calculations? example [CODE] DecimalFormat df0 = new DecimalFormat("###,###.00"); JFormattedTextField loanText = new JFormattedTextField(df0);[/CODE] the user puts …

Member Avatar for JamesCherrill
0
170
Member Avatar for musikluver4

I have been able to successfully load another java program (Calculator) within a java program with the following code: [CODE]Calculator.main(null)[/CODE] The program loads successfully but both programs have the code: [CODE]addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } );[/CODE] So once I close the Calculator program …

Member Avatar for JamesCherrill
0
126
Member Avatar for musikluver4

I have a GUI program that controls all the graphics, etc of the program, while another program has all the calculations the GUI program grabs to show in its program. Well I would like to have another program that uses Frame and implements ActionListener, and launch that program with the …

Member Avatar for musikluver4
0
134
Member Avatar for musikluver4

I am using JFrame for my GUI and I want to be able to select a row of text of a bunch of rows of text, one at a time. Like in Microsoft Outlook, you select an email and it selects the whole line for you of all the different …

Member Avatar for JamesCherrill
0
1K
Member Avatar for musikluver4

I would like to be able to divide this java code up into more than one file, so I can reuse the code for other programs, but I'm not sure what I can grab. Right now, I can't make another program using this code, as you see the WHOLE program …

Member Avatar for musikluver4
0
168
Member Avatar for Kerrai

Greetings from a new Java coder. I have ran unto a problem that i cant seem too solve on my own. And since next class is on Tuesday i hope you can help me out. When i compile this i get an error on "Line 57 : "Scan cannot be …

Member Avatar for musikluver4
0
224
Member Avatar for musikluver4

I want to be able to input two (2) 'grades' exactly like they are in the String array and have it come back printing BOTH showing the grades, again, as well as the grade score corresponding to those grades. For example: input C- (enter) B+ (enter) output does: ONLY the …

Member Avatar for samuel_okos
0
674
Member Avatar for musikluver4

Whenever I try to load a java applet from an html file, with the .class and .java files in the same directory, I load the html applet file and the only thing that gets displayed is NOT the applet, but the html code.....how do I enable java applets in my …

Member Avatar for DeadSoul
0
2K
Member Avatar for musikluver4

I have spent over a WEEK trying to figure out why my code isn't working. It's a long code, I will post it all but I will break down the code as I explain. First off, I have called double[] arrays and then initialized them later on in the program …

Member Avatar for musikluver4
0
3K
Member Avatar for musikluver4

I just wanna be able to input 10 integer numbers, display the numbers, then be able to modify a specific number I have already entered, then display the new updated numbers again. [code] //Date: 4/6/2010 import java.io.*; public class EnterNumbers { public static void main(String[] args) throws IOException { BufferedReader …

Member Avatar for musikluver4
0
204
Member Avatar for musikluver4

[code] import java.io.*; public class SortDoubleArray { public static void main(String[] args) throws IOException { double[] doubleValue = new double[10]; Input(doubleValue); ascendingSort(doubleValue, doubleValue.length); descendingSort(doubleValue, doubleValue.length); } public static void Input(double[] array) throws IOException { BufferedReader dataIn = new BufferedReader (new InputStreamReader(System.in)); String[] numbers = {"first", "second", "third", "fourth", "fifth", "sixth", …

Member Avatar for litchi
0
219
Member Avatar for musikluver4

The code below is the file for the constructor method and the get methods [code] //Date: 3/18/2010 public class Taxpayer { private int socSec; private double yearlyGross; public Taxpayer(int taxPayer, double income) { socSec = taxPayer; yearlyGross = income; } public int getSocSec() { return socSec; } public double getYearlyGross() …

Member Avatar for javaAddict
0
174
Member Avatar for musikluver4

[code] //Date: 3/17/2010 import java.util.Random; public class Bingo { public static void main(String[] args) { Random bingo = new Random(); for (int i = 1; i <= 50; i++) { System.out.println("Card #" + i + "\n********"); System.out.println(); for (int j = 1; j <= 24; j++ ) { int bingoNum; …

Member Avatar for BestJewSinceJC
0
5K
Member Avatar for musikluver4

[code] //Date: 3/16/2010 import javax.swing.*; class PizzaChoice { public static void main(String[] args) throws Exception { char[] whatSize = { 'S', 'M', 'L', 'X'}; char size; double[] sizePrice = {6.99, 8.99, 12.50, 15.00}; int s; System.out.println("What size do you want?"); size = Character.toUpperCase((char)System.in.read()); for (s = 0; s < whatSize.length; …

Member Avatar for musikluver4
0
947