1,034 Posted Topics
Im curious, what do you guys think of novell? I mean, do you like it or not? | |
Re: 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. | |
Re: Connection: 640 kbs Download: 76 kb/s I guess that's pretty good for being on wireless. | |
Re: 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. | |
Re: 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. | |
Re: [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 … | |
Re: 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 += … | |
Re: I don't know how you could continue most programs without user input. | |
Re: 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++; } } … | |
How would you put a scrolling message on your application with a seperate thread, sort of like an advertisment? | |
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 … | |
Re: Pretty good. I think you should make the transition slower, and possibly zoom in on the picture at really slow intervals(looks really cool). | |
Re: 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 … | |
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 | |
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) { … | |
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. … | |
Re: Do you even have any kind of hardware that gets the temperature? | |
Re: use this: [Code] System.out.print(); [/Code] Just leave off the ln, in println. | |
Re: 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 … | |
Re: Are you repainting or graphing something? | |
Re: I think JDialog is the best to use when puting custom components like that in. | |
Re: Yep, you can use decimal format, or the Math.round(), but you'll be satisfied with the DecimalFormat class. | |
Re: It's basicly the same as adding to a framed application, without a few methods such as setDefaultCloseOperation() and setSize(). | |
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 … | |
Re: How are you making these forms? Are they modal frames, or just frames? | |
Re: 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. | |
Does anyone know a good tutorial on parsing math equations? I would use google, but I don't know what to search. | |
Re: 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; … | |
Re: Is this other application one that you made, or just some other window application? | |
Re: 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 … | |
Re: I can help you, but I have school right now, but after I'll help you. | |
Re: [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 … | |
Re: 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. | |
Re: create your own costructor with those 3 arguments, it will give you a good learning experience! ;) | |
Re: 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. | |
[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. | |
Re: Are you talking about setting bounds of the frame, or the 3D shapes your wanting to draw? | |
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 … | |
Re: If your using JCreator, I think this is your only solution: MINIMIZE! | |
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 … | |
Re: 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. | |
Re: think you could post a little more code, and with code tags? | |
Re: 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]; | |
Re: 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 … | |
Re: 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 … | |
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 … |
The End.