User Profile

Collapse

Profile Sidebar

Collapse
danielmessick
danielmessick
Last Activity: May 24 '10, 07:03 PM
Joined: Mar 5 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • danielmessick
    started a topic Java GUI help !!
    in Java

    Java GUI help !!

    In my following program, how do I have numbers entered into the TextArea that when I click the JButton the numbers add up and are displayed in the TextField above the JButton ???


    Code:
    
     import java.awt.*; 
     import java.awt.event.*; 
     import javax.swing.*; 
    
     public class Main extends JFrame 
     { 
    
     	private JTextField jTextField1; 
     	private JTextArea
    ...
    See more | Go to post

  • danielmessick
    started a topic A Java servlet class ?
    in Java

    A Java servlet class ?

    Hey everyone, I'm trying to generate two random numbers between 1 and 5 inclusive and displays the result of their addition, subtraction, multiplication and division?

    For example, something such as:

    4 + 4 = 8

    4 - 4 = 0

    4 * 4 = 16

    4 / 4 = 1
    See more | Go to post

  • danielmessick
    started a topic Java calculator problem ???
    in Java

    Java calculator problem ???

    Hello, I'm trying to fix my Java applet to have a fully functional calculator. I managed to create the buttons and have the +, -, /, *, =, and clear buttons WORKING. But, I cant seem to figure out how to get the decimal(.), squareroot, percent(%), reciprocal(1/x), and -/+ buttons working.. Can anyone help??

    Code:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
    ...
    See more | Go to post

  • T h a n k s !!!

    Wow, pretty much I need to change the setForeground --> setBackground ! Thank you again, I like the modification of your code better than mine.
    See more | Go to post

    Leave a comment:


  • danielmessick
    started a topic Changing textbox color using java applet
    in Java

    Changing textbox color using java applet

    In the Java applet below, i'm trying to make the text box change color when the slider is moved to the left and right. Right now when I move the JSlider left or right the text in the text box changes color. How do I get the text box the change color ??????

    Code:
    import java.awt.Dimension;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseMotionAdapter;
    
    import javax.swing.JApplet;
    import javax.swing.JTextField;
    ...
    See more | Go to post

  • How do you make a basic Java JSlider with a text box ???

    I'm trying to create a JSlider applet to change colors in a text box.. Where do I start???? I'm not trying to create anything very complicated; just something basic to change between 3 colors (RED, BLUE, GREEN). Say you move the slider to the right, I want the text box above it to change color to RED and if I move it a little more to the right, the text box will turn BLUE, so on and so forth.

    For example, an applet such as the image...
    See more | Go to post

  • danielmessick
    started a topic I need help creating a Java applet .....
    in Java

    I need help creating a Java applet .....

    Hey all !! I'm having a frustrating time trying to create a particular Java applet for a class.. I have no clue how to accomplish this, and really need HELP.. Anyone, PLEASE help me if you can, any help is appreciated the exact details are below:


    I'm trying to create an applet that will draw 200 lines all of the same length starting from coordinate (0, 0) each with a random color.After drawing each line call the method Wai...
    See more | Go to post

  • danielmessick
    replied to Syntax error in Java applet
    in Java
    @ anurag275125

    Thanks man!! it worked just fine!
    See more | Go to post

    Leave a comment:


  • danielmessick
    started a topic Syntax error in Java applet
    in Java

    Syntax error in Java applet

    I'm having errors on lines 10 and 21 and am not sure why.....




    import javax.swing.*;
    import java.awt.*;
    import java.awt.event. *;
    public class Main extends JApplet implements MouseListener {
    int x=0;int y=0;
    JTextField jtf=new JTextField(" ");
    public void init(){
    Container c=getContentPan e();
    c.setLayout(nul l);
    jtf.setBounds(x ,y,jtf.getPrefe rredSize…...
    See more | Go to post
No activity results to display
Show More
Working...