Search:

Type: Posts; User: GoodbyeWorld

Page 1 of 18 1 2 3 4

Search: Search took 0.41 seconds.

  1. How to alter the from line in a java email program

    I'm trying to use Java mail and I'm new to it. However, I found a workable example. Problem is, when I alter the from line, it still goes out saying it's from my gmail username. I was trying to...
  2. Replies
    1
    Views
    100

    Re: Need help asap! program crashes

    Hmmmmm, this seems like Android code. Also, it would help if you put your code in Your code

    Could you post the exception (I'm assuming that's what you are getting.)? Also, I cannot find an...
  3. Re: creat backspace button in my keyboard ((GUI))

    Hint, I'd look for the caret position. There is a method in the JTextComponent class that returns it as an int. There is a method in the String class that will return the substring of a string...
  4. Re: GUYS HELP ME TO TURN MY PROGRAM JFRAME INTO JAPPLET PLEASE! HERE'S MY CODE!

    Should be easy enough.

    Applets don't have a main method though.

    They do have a run method though.
  5. Is Java on the Decline and ASP on the rise?

    I used to notice a lot of jobs for java but lately, it seems that everyone wants ASP.Net and C#.

    Is this a new trend or am I just jumping to conclusions?

    (Note: I don't have experience...
  6. How to make sure only one particular type of instance is open at a time.

    This isn't asking to make a Singleton, where I want only one type of a type of window period.

    It's not where I want only one instance of the program itself open at a time. It's more along the...
  7. Replies
    2
    Views
    101

    Re: LWJGL problem

    Yes, I was going to say that. I recognized it as OpenGL. However, Java does have an OpenGL library though.

    I found this tutorial that shows how to create a cube in java OpenGL. ...
  8. Re: Trying to figure out how to print multiple things on same page

    Ok, I can see this wasn't as easy as I had thought at first though apparently not as extremely difficult as I later thought.


    I'm confused with all of this validating and other things you are...
  9. Re: Trying to figure out how to print multiple things on same page

    What will I have to modify on the above if they don't (which is a possibility, especially as the program will allow the user to add stuff to the table, including rows)?

    What will I do with this...
  10. Re: Trying to figure out how to print multiple things on same page

    So, I don't have to nest JTables to do it? (That was another idea I had come up with while waiting for a reply. That one appears to work, though I'll try your advice too.)

    --- Update ---


    ...
  11. Re: Trying to figure out how to print multiple things on same page

    Ok, still haven't found out what to do. The idea that java doesn't have some way to get it to print two JTables or more than one component on the same page, even if there is room, seems a very big...
  12. Replies
    18
    Views
    140

    Re: sales tax increase at 6% not working

    It's your - operator.

    You need to add some more ( )

    System.out.println("Difference: $" +((int)(Income2 *(currentIncome * taxRate)) - (Income *(currentIncome * taxRate)) / 100.0));

    I'm not...
  13. Replies
    11
    Views
    260

    Re: While loop help

    if(romanNumeral != "Q || q"); {

    I wouldn't put a ; after your if statement. It will do cause it to execute the ; if you go into the if.

    System.out.print(">> " + (String)one);

    As one is...
  14. Re: Problem displaying random value of integers and then finding missing integer from values in array.

    I can see a possible problem right off. Your for loop does not hit index 0. However, I believe that nextInt() goes from 0 (inclusive) to n (exclusive). However, index 0 is never set (but luckily...
  15. Replies
    11
    Views
    260

    Re: While loop help

    I think it would be better to use equals, as I think == compares whether the object references are the same.

    Anyway, it would be

    while ((! romanNumeral.equals("Q") && (!...
  16. Replies
    11
    Views
    260

    Re: While loop help

    Try using equals() instead of ==.

    Java String.equals versus == - Stack Overflow

    Also, your code is, even if == would work as you intended, is looking for the String "Q||q" which I doubt the...
  17. Re: help understanding Java method overloading based on return type

    I think I figured out what it meant by java doesn't support return type method overloading. It won't allow this:




    public static double sum(int n1, int n2)
    {
    ...
  18. Replies
    5
    Views
    291

    [SOLVED] Re: cannot be resolved to a variable.

    Put quotes around it. "c".
  19. Replies
    31
    Views
    667

    Re: MouseMotionListener

    You do not add the MouseMotionListener anonymous class inside of an inner class in this case. The anonymous class is your mouse motion listener.
  20. Replies
    31
    Views
    667

    Re: MouseMotionListener

    Either have it as an anonymous class or have it as an inner class that is outside the constructor.

    Here's how you'd do it for an anonymous class (how this isn't spoonfeeding, Norm)

    ...
  21. Re: Need help with substrings and reading in files

    The charAt() method from String class is really helpful. Also, there is a toUpperCase() in String class too.
  22. Replies
    31
    Views
    667

    Re: MouseMotionListener

    public void mouseMoved(MouseEvent event)
    {
    getX();
    getY();

    }


    I don't see any methods called getX() and getY() in your program. I...
  23. Replies
    3
    Views
    138

    Re: Find Slot number in array

    Um, as the number could be in there a number of times, you'd need to be storing a bunch of indexes possibly.

    That would mean an ArrayList or other type of generic would be needed, unless you...
  24. Replies
    8
    Views
    253

    Re: power of math

    You shouldn't have to import anything in java.lang that I'm aware of. I believe that all the java.lang stuff automatically is readily available without any imports being required for it.
  25. Replies
    5
    Views
    127

    Re: Cannot find symbol?

    bool is a C++ and possibly other languages too type for the true/false type. In Java, it's boolean.

    Also, if I recall correctly, even in C++, I think you still need a variable name with the...
Results 1 to 25 of 436
Page 1 of 18 1 2 3 4