1,034 Posted Topics
Re: I picked flamers considering you meant homosexuals. Looks like it's people who don't love wombats, though. Oh, I hate CNN too, it seems to be more left wing. | |
Re: I wouldn't think the classpath needs to be set, but I could be wrong. [code] C:\Sun\AppServer\jdk\bin\DMS-DNMS/jar" or " ... D:\Documents and Settings\lab\Desktop\DMS-DNMS/jar" [/code] Looks like it's expecting to find a class somewhere on the users computer which is on computer a and computer b, but not on computer c. | |
Re: I'd say you'll need a loop which has some bounds. Most of the time it's -2PI to 2PI. (-6.28 to 6.28). You'll then need a real-to-screen conversion formula, which will depend on your window. After all that, then just loop through and call Java's built in cos() method as Phaelax … | |
Re: Personally, I would create a seperate class that extends JPanel and add it to the other class: [code] import javax.swing; public class ImagePanel extends JPanel { public ImagePanel { } public void paintComponent(Graphics g) { } } [/code] Then add it to your normal class: [code] public class WardrobeFrame blah … | |
Re: Good luck on the math ;) I made one once. You'll need a complex class since it goes in the form a + bi or something like that. I can't remember the exact formula for a mandelbrot. ![]() | |
Re: I'm not sure what you're saying. Are you talking something like a status bar? If you simply want it at very bottom of the frame, then put it all in a JPanel and then use the BorderLayout.CENTER swing constant. | |
Re: [url]http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/LookAndFeel.html[/url] [url]http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/UIManager.html[/url] Those are few classes you would need to use. Anyways, the ones I know are: Java LAF Mac LAF Motif LAF Windows LAF GTK LAF | |
Re: Anyone ever get the over-the-phone offers? So far we've won several million and a hundred different trips, but never got them. | |
Re: Swing has better performance than AWT. The only problem is Swing draws it's own components which can cause some 'glitching' especially with larger applications that you may have to scroll. In reality, Java's VM is almost the same as the .NET engine, so there really shouldn't be that much of … | |
Re: Muuuwawhhahahhahahhahahhahahhahahahhhhhhhhhhhhhhhhahahahhahahhahahahhahahhahahh....... IT WAS ME. Seriously, do you really believe that crap? | |
Re: I believe you want javascript, but not sure. Unless you want to use JSP. | |
| |
Re: Don't worry yourself about creating the spaces and aligning into a triangle.... Thanks to C++ you can set the width and fill character of the output ;) | |
Re: A^2 + B^2 = C^2 Math.pow(num, power); Show what you have done. | |
Re: A simple JSP page with good architecture could cover a lot: MVC, regular java classes, servlet, and jsp. If you really want to use a lot of JSP, then a wiki would be kind of cool. | |
Re: Yeah, the processor on our older computer is really clogged with dust and stuff. I didn't know fans collected it, but I do now. I'm too lazy to clean it though ;) | |
This is my double: double determinant = 2.8*5*-9.5; It should print out -133, right? It prints out some weird junk like: 1.8e + 04 How can I correct this? | |
Re: What's there to lose? Go for it. If it doesn't work, then you know what not to do. I'd say writing software that has support of multiple platforms would increase your sales. I'm curious, what type of software is it? | |
![]() | Re: I bought this one: Asus A8N32-SLI Deluxe I wouldn't consider it a budget board though! |
Re: Shouldn't be any different than writting something in a different language. If you are writting an online app, then java's probably the way to go. If you're worried about speed, then you shouldn't be. Since Java 1.4, it uses the Hotspot VM by default, which does pretty much the same … | |
Re: Add some swing constants if it's not showing up. I can't remember exactly what they are, but it's something like: JScrollPane.ALWAYS or something like that. | |
Re: It's truncated. The decimal portion is cut off. 1.8 == 1 1.1 == 1 1.99999 == 1 At least that's what I remember ;) | |
Re: I guess you forgot about the other thread you created? [url]http://www.daniweb.com/techtalkforums/thread37225.html[/url] I answered the question and even helped a little, but it looks like your just another idiot looking to get his homework done. | |
Re: Here's your problem: cust.check_type(type,balance); You're calling that method on a vector? | |
Re: Java has a really nice security package that will do everything for you. | |
![]() | Re: I hate to post an external link, but take a look at this: [url]http://www.wizardsolutionsusa.com/forum/showthread.php?t=100[/url] |
Re: I don't see any hypotenuse ( side1, side2 ); method. Also, why do you have to main methods? [code] import java.io.*; public class Triangle { public Triangle() { super(); } public double rounded_hypotenuse(double side_a, double side_b) { //compute } public static void main(String[] args) { //get input //parse to double … | |
I have a weird question. I'm trying to access a .txt file from a java applet, which would reside locally. When running this with the applet viewer, everything works fine. When you click on the .html file, however, you get an accesscontrolexception. I find it weird that the applet viewer … | |
Re: [QUOTE=hatch101]r all u guys on here super java geniuses or just ppl lookin to bash on noobs! :D[/QUOTE] It's obvious you want your homework done for you. Have you even tried yet? I haven't seen any work.. | |
Re: I'd like to recommend putting the drawing in a seperate class. It always seems to make errors easier to fix that way. | |
Re: Why not use a Set and specify the string size as a sorting criterion? That way, when you want to find the longest or shortest string it would be a one liner. | |
Re: Use a Random object or something: Random random = new Random(2); int rotation = random.nextInt()+1; | |
Re: Student[] values = { new Student("Tom", 87), new Student("Cindy", 100), new Student("Pat", 75), new Student("Anne", 92), new Student("Matt", 82)}; Shouldn't that be a 2D array? | |
Re: If you haven't noticed computers and the internet are a lifestyle. | |
Re: setBounds(int, int, int, int); offers the most control. | |
Re: [QUOTE=Dabdob] I want in the printf function to print this Question with each element [/QUOTE] Why use printf? Just use cout. Also, why use a char array when the STL provides a string class? If it's three or MORE people then use a vector since you don't know the exact … | |
Re: [QUOTE=shephunts]My advice: Read reviews before buying a computer. That will steer you away from Dell everytime. Secondly, if you have to buy replacement parts, either buy another computer with quality, or pick the parts out yourself so you don't pay full price for very low quality parts.[/QUOTE] Couldn't have said … | |
Re: J2ME, I would guess. | |
Re: Don't you hate crappy tech support, especially when they can't speak english? I spent weeks trying to comunicate with Dell, but you can't when they're from India or whereever they pick them these days. Personally, it makes me feel better if I yell at them and make them feel as … | |
Re: [QUOTE=perpetual_dream]I'd like to remotely control a small car through wireless transmission by using the computer as my graduation project. I will draw the path of the car and the surrounding dimensions on the pc, and the path that i move on the pc will make the car move in the … | |
Re: Hmmmm.... Maybe add a component listener to your JFrame(extending Component Adapter). Then you should get a method labeled componentResized(). In that method you need some custom checking. | |
Re: You could use a StringTokenizer to read everything that's a word(doesn't read white space). Get the length of the word. In a for loop you can process the char at index 'i' by using charAt(i). | |
Re: You can try the StringTokenizer which allows special delimeters. Also, I'm not sure a 2D array is the best way to go, but can't say for a fact that it's not. If you post your parsing code we could probably help more. | |
Re: Try: cout << "\\" << (an expression) << "\\"; \ is an escape sequence, so you must treat it with extra care. | |
Re: Take a look at your loop: for (int j = 0; j >=1; j++) Your condition: j>=1 This is the same as saying "loop while that j is greater than, or equal to 1. You start your counter j=0 which means j is zero (not greater than 1). It never … | |
Re: [QUOTE=war_criminal]Are you frightened?[/Quote] Only of Satan and his friends in those pictures. [Quote]Do you guys care?[/QUOTE] Nope. | |
Re: Dani, Did you ever figure out why this was happening? I'm having some problems with blogging software that doesn't seem to send the confirmation.....I think it gets stuck in the spam box or the email client simply blocks it. |
The End.