1,034 Posted Topics

Member Avatar for server_crash
Member Avatar for meksikatsi
0
150
Member Avatar for higherGround574

You can download DOS versions such as Koffee I think it's called, but I don't see a point in that, and I doubt it would change much accessibility.

Member Avatar for server_crash
0
181
Member Avatar for TheWebJunkie

Connection: 640 kbs Download: 76 kb/s I guess that's pretty good for being on wireless.

Member Avatar for meksikatsi
0
433
Member Avatar for Bud4java

Please post some code, if you are using doubles it should show up as a double. Other than that, you can use the DecimalFormat class to format decimals to a specific decimal place.

Member Avatar for server_crash
0
178
Member Avatar for stupidenator

JEdit is my all time favorite..I would prefer it over any IDE, and day. I personally like using the command line to compile and run my junk, but that's just my personal preference.

Member Avatar for freesoft_2000
0
296
Member Avatar for Ghost
Member Avatar for EvilObsidian

[QUOTE=EvilObsidian] } } The problem is that it won't allow me to use the data type "char" for a switch statement switch( letter ) { case A: newText = newText + letter; break; case B: ... and so on And one last question, is there a better way to check …

Member Avatar for server_crash
0
311
Member Avatar for Hjcooke

I would do something like this: [Code] public void actionPerformed(ActionEvent ae) { if (ae.getSource() == theCalculateButton) { int comp = Integer.parseInt(computerQuanityJTextField.getText()); int print = Integer.parseInt(printerQuanityJTextField.getText()); double tax = .175; totalJTextField.setText("" +getCost(comp,print,tax)); } } public double getCost(int compQuanity, int printQuanity, double tax) { double totalCost = compQuanity * 350; totalCost += …

Member Avatar for shakaal
0
262
Member Avatar for B33FALO
Member Avatar for jengels

I'm thinking this is how you would do it: Have three counter variables: [Code] sCount oCount hCount String input = file.readLine(); for (int i=0; i<input.length(); i++) { if (input.charAt(i) == "s") { sCount++; } else if (input.charAt(i) == "o") { oCount++; } else if(input.charAt(i) == "h") { hCount++; } } …

Member Avatar for Phaelax
0
171
Member Avatar for server_crash

How would you put a scrolling message on your application with a seperate thread, sort of like an advertisment?

Member Avatar for jwenting
0
164
Member Avatar for server_crash

I have this code that creates a triangle based on user input, which is the base of the triangle. Now, what I want to know, is how could you display the triangle upside down, and have spaces in between the astrix..To see what I'm talking about, compile and run the …

0
81
Member Avatar for cancer10

Pretty good. I think you should make the transition slower, and possibly zoom in on the picture at really slow intervals(looks really cool).

Member Avatar for cancer10
0
79
Member Avatar for Ghost

For pie charts, you would use the drawArc() method. I have an example, but I accidently deleted one of the source files, but I still have all of the class files. So, I can post the source files that I do have, if you want. I could also give you …

Member Avatar for server_crash
0
176
Member Avatar for server_crash
Member Avatar for server_crash
0
132
Member Avatar for server_crash

I can't seem to remember how you create subitems in the menu's. Does anyone know how? Like this: Format --> Color(then like a drop down) *red *blue *green

Member Avatar for server_crash
0
283
Member Avatar for server_crash

I got this method that encrypts and decrypts text. All of it works fine, except when it comes to spaces. It doesn't convert the spaces correct. If you take a look at it, you might understand. [Code] import java.util.*; public class CustomCypher { public String encryptText(String key, String text) { …

Member Avatar for server_crash
0
76
Member Avatar for rational611
Member Avatar for server_crash

I'm trying to write this method that takes some parameters from my text editor, and encrypt the text. I got part of it written, but I'm stuck on the next bit. I got the part where you convert the "key", but I just can't figure out what to do next. …

Member Avatar for server_crash
0
318
Member Avatar for Ghost
Member Avatar for Ghost
0
317
Member Avatar for BMF

use this: [Code] System.out.print(); [/Code] Just leave off the ln, in println.

Member Avatar for server_crash
0
111
Member Avatar for Ghost

Hope you guys don't mind me saying anything, but I really like (I think it's the VB.NET naming conventions)...Java from what I read wants you to do this just for a simple button: startButton; which in VB.NET, the proper way was this: btnStart; I think this is much more logical …

Member Avatar for paradox814
0
91
Member Avatar for MrScruff
Member Avatar for Ghost
Member Avatar for server_crash
0
182
Member Avatar for AQWst

Yep, you can use decimal format, or the Math.round(), but you'll be satisfied with the DecimalFormat class.

Member Avatar for paradox814
0
612
Member Avatar for Dahlia

It's basicly the same as adding to a framed application, without a few methods such as setDefaultCloseOperation() and setSize().

Member Avatar for paradox814
0
1K
Member Avatar for server_crash

My applet is not showing up in a web page, and all of the code is correct... I'll post it and the html code: [Code] // import all need packages import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.applet.*; //extend JFrame for the user interface and actionlistener for events public class …

Member Avatar for server_crash
0
106
Member Avatar for Ghost
Member Avatar for voodoolive

You would get a lot more responses, if you chose to post this in the proper forum...If you look, this is the book review forum..Post it in the java programming forum, and I guarantee that you will get more responses.

Member Avatar for jwenting
0
179
Member Avatar for server_crash

Does anyone know a good tutorial on parsing math equations? I would use google, but I don't know what to search.

Member Avatar for jwenting
0
118
Member Avatar for SyLk

Here's a way of doing it, works best if you sort the array first, but you don't have to. [Code] import java.util.*; class DescendingOrder { public static void main(String[] arguments) { String[] names = {"a", "c", "f", "d", "e"}; Arrays.sort(names); System.out.println("Descending order:"); for (int a = 0; a < names.length; …

Member Avatar for Narue
0
243
Member Avatar for Ghost
Member Avatar for George2

I could be wrong about this, but I would think no matter how you do it, it would be possible to loose some packets due to the quality of the connection, and so forth. Again, I could be wrong, so maybe somone that knows a little more than me can …

Member Avatar for George2
0
118
Member Avatar for statc
Member Avatar for server_crash
0
86
Member Avatar for milaco8318

[QUOTE=milaco8318]I have recently come in touch with the JAVA and I was wondering if somebody can help me with the console window code. Thanks in advance P.S - Also, when typing the code into the JBuilder, where does it go? Does it go straightafter: package XX; Thanks,[/QUOTE] Here code for …

Member Avatar for server_crash
0
104
Member Avatar for SyLk

If it's just calculating the average, do you have to return both of those arrays? I mean, you could just calculate the average and return an int value, instead of returning void. Then you could call the method from main.

Member Avatar for Narue
0
584
Member Avatar for Ghost

create your own costructor with those 3 arguments, it will give you a good learning experience! ;)

Member Avatar for server_crash
0
261
Member Avatar for MrScruff

I guess after you create the button, you would set the font of it: [Code] JButton.setText("Button"); JButton.setFont(new Font("sansserif",Font.BOLD,12); [/Code] Don't know if that will work or not, doing it from memory.

Member Avatar for server_crash
0
73
Member Avatar for matt_5104
Member Avatar for server_crash

[url]http://www.smartcertifydirect.com/[/url] Has anyone ever come in contact with these, or know anything about them? I thought about taking one, but I don't know if they are worth it or not. Any feedback would be greatly appreciated.

Member Avatar for server_crash
0
79
Member Avatar for anchi

Are you talking about setting bounds of the frame, or the 3D shapes your wanting to draw?

Member Avatar for server_crash
0
151
Member Avatar for server_crash

I had all of this program finished except for the plotting like a week ago...Ever since then, I've been trying to figure out how to plot the stupid polynomials..I thought I had it, but the program seems to go crazy whenever it's suppose to repaint..It's like repainting components on top …

Member Avatar for server_crash
0
127
Member Avatar for ecyarter
Member Avatar for Ghost
0
140
Member Avatar for server_crash

I have this problem with graphics, actually I know it's with my compiler... If I try to set the background of a button or something I get erros that's not even in my code.. I have this: [Code] btnCalc.setBackground(Color.blue); [/Code] and I get theses errors [Code] //g is already defined …

Member Avatar for server_crash
0
143
Member Avatar for OurNation

In the MouseEvent's you can do this to get the location of the click: Event.getX(); Event.getY(); That would help you with the coordinates of where the click happened, and where you should draw the line.

Member Avatar for server_crash
0
103
Member Avatar for ultimate_fusion
Member Avatar for server_crash
0
125
Member Avatar for ultimate_fusion

The elements of ID, mark or whatever have to be of the same type as what those arrays are... String[] ID = new String[12]; int[] mark = new int[12];

Member Avatar for server_crash
0
111
Member Avatar for Jason Marceau

First of all, I would recommend putting some of that code in the constructor method, rather than the main methd: [Code] public class TaxCalc extends JFrame implements ActionListener { //instance variables up here // like the textfields so you can get the input [B] public TaxCalc() { // some code …

Member Avatar for ecyarter
0
3K
Member Avatar for the b

My guess is that your school uses some new packaged classes because they are too lazy to create a one line statement that reads input. EasyReader is not a java class, that is, if you haven't downloaded that add on.. use this: BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int x …

Member Avatar for Jason Marceau
0
260
Member Avatar for server_crash

This class is suppose to create a JPanel with a bufferedimage to draw on..I instanstiate this class from the main driver class, and it shows up fine, but I can't draw anything on the image, or even set the background color of the jpanel. Here is the class, see if …

0
93

The End.