here you go. Let me google that for you
Type: Posts; User: relixus
here you go. Let me google that for you
please do your own assignments and ask us for hints if you are sruck somewhere.
your hint is between these lines. try changing the fillOval method to fillRect and you get rectangles instead of ovals. now find a way to draw the stars using drawPolygon method.
while (y <...
does it print the result as "2+3+4=9" or it will add all the numbers producing 9 as a result?
i will assume you are looking for the former output. first you have to separate all numbers and add...
hi,
i am trying to create a custom textbox that will calculate number inputs. i am having trouble splitting the text, i hope u can give me an insight to this.
suppose i have the String
...
try this. hope it helps...
public String toMD5Hash(String str) throws NoSuchAlgorithmException{
MessageDigest md = MessageDigest.getInstance("MD5");
...
i already got it.. hehehehehe... thanks anyways..
hmm.. do i have to forward the port even im just running it on local machine?
for now im trying to run it on localhost, then if i get it to work im gonna run it on a remote machine, 192.168.5.236 is the localhost's IP, i tried changing that lo "localhost" still doesnt work.
Why dont you try JFormattedTextField instead?
hi all,
i am trying o study socket programming in java and trying to create a simple chat program, i found this code on a tutorial on web and tried playing with it, the problem is it seems it cant...
so it can be done without using java? its like i want a transmit button on my UI and when the user presses it, data from my SQL table shall be copied into another server.
hi everyone,
im trying to create an application that will transmit data from one mySQL server to another via internet. Im wondering if anyone knows what trail should i start to learn to accomplish...
i see.. do u use NetBeans IDE?
compile this class and drag it to your workarea, see what happens.
import java.awt.Graphics;
import java.awt.Polygon;
import javax.swing.JComponent;
isn't your application frame a subclass of jframe? if it is not u can do this then:
public class ApplicationFrame extends JFrame{
}
public YourClass extends ApplicationFrame{
}
okay here's what i found in your code
public class Test extends JPanel implements ActionListener {
// I MADE IT STATIC SO THAT WE CAN USE IT ON createAndShowGUI
static JTextField...
what do you want to do? paint those shapes on a component like JFrame or JPanel? or would you like to put that picture in a jpanel or frame?
System.exit(0) terminates your program whether u are in a loop or not.
just a suggestion, instead AbstractTableModel why dont you extend DefaultTableModel instead? and just add the fields you needed? it will save you a lot of line of codes.
this is a java forum, i dont think they do javascript here, but ithink this is what your looking for.
<html>
<head>
<title>Help me</title>
<style type="text/css">
.hide {display: none}
Here, try this.
import java.applet.Applet;
import java.awt.Graphics;
import java.awt.MouseInfo;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
is poppy.jpg in the same directory as your java file? u should put them in the same folder.
when you compile your project into a jar file the image for your button will be included inside the jar file, and you will have problems referencing to it directly, u have to use...
whats wrong with tihs?
i hope its not too late for your assignment..:)
import java.io.InputStreamReader;
import java.util.Scanner;
class Test{
public static void main(String[] args) {
Scanner sc =...