Search:

Type: Posts; User: DusteroftheCentury

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Thank you so much. It works!
  2. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    What line do I remove? Sorry Im just not very familiar with the many technical terms.

    Thank you so much,

    -Duster
  3. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    It prints this:

    ...
  4. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    What lines of code would you reccomend checking? And how? I understand your blog, but I do not see how that would apply here, because I dont really use numbers and integers and such, which if I did...
  5. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Could you explain what null means? And what kind of printlns? I know they can be used to catch exceptions but how?

    Thanks for the help,

    -Duster
  6. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Thanks, I checked the link and touched up on ActionListeners. I wrote this code,



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JFrame;

    public class...
  7. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    I really dont want to just use the code given, I want to figure it out with help.

    Here is my new code:


    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import...
  8. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    I appreciate this but I understand that spoon feeding is bad. I only needed a few lines of that and that is what I will use.

    Thank you.

    @copeg I understand, I accidentally spoon fed someone...
  9. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    I just want it to add a pic to the panel by using ImageIcon. This is the image: 981

    How would I listen to the actions? I know I can do "textbox1.getText();" to retrieve the text, but what code do...
  10. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Here is my code so far:

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;


    public class MainClass extends JFrame implements ActionListener
    {
    public static void...
  11. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Didnt see your post there. I shall try.
  12. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    980This image might help better explain what I want:
  13. [SOLVED] Is there a way to make things happen if a certain text is entered in a TextField?

    Hey,

    First of all please excuse my lack of technical terms.

    I want to have a JTextField be able to accept commands, and have the commands change pictures, display text etc.

    Is their a...
Results 1 to 13 of 13