Search:

Type: Posts; User: chronoz13

Search: Search took 0.07 seconds.

  1. [SOLVED] Re: backspace action(deleting a character in a string) in a paint event, looping for

    yeah i was frustrated like, what the hell!? this statement doesnt do anything to cut the letter from the word, i didnt know or i think i really forgot that this method returns a string value, and i...
  2. [SOLVED] Re: backspace action(deleting a character in a string) in a paint event, looping for

    oops, i didnt noticed substring() method returns a string LOL :p
  3. [SOLVED] Re: backspace action(deleting a character in a string) in a paint event, looping for

    - your statement really woke me up,
    - thanks for refreshing me back, i forgot that there is a StringBuilder class that can manipulate strings


    if (word.length() > 0) {

    ...
  4. [SOLVED] Re: backspace action(deleting a character in a string) in a paint event, looping for

    thanks again for the suggestion! finally got what i needed



    if (word.length() > 0) {

    StringBuilder strB = new StringBuilder(word);
    ...
  5. [SOLVED] Re: backspace action(deleting a character in a string) in a paint event, looping for

    oh thanks for guiding me through that,
    i never thought that the word keeps on expanding each time im adding on it, i think i should use another string instance, or the substring() method
  6. [SOLVED] backspace action(deleting a character in a string) in a paint event, looping forever

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

    public class BackSpaceSample extends JPanel {

    private String word;

    public BackSpaceSample() {
Results 1 to 6 of 6