Search:

Type: Posts; User: Ajan

Search: Search took 0.56 seconds.

  1. Replies
    30
    Views
    1,431

    Re: Another printing topic

    could you go step by step with me?

    ok so, made the GUI:

    import javax.swing.JFrame;
    import javax.swing.JPanel;

    /**
    *
    * @author User
  2. Replies
    30
    Views
    1,431

    Re: Another printing topic

    from my last post. how would i start the print method?
    keeping in my mind:
    Must print multiple lines
    Must print multiple pages
    Must print within its borders.

    So can you guide me through this...
  3. Replies
    30
    Views
    1,431

    Re: Another printing topic

    norm i think im screwing up here :/..

    i wanna start from the beginning.

    public class Printer implements Printable{

    public static void main(String args[]){

    }
    public int print(){
  4. Replies
    30
    Views
    1,431

    Re: Another printing topic

    ok so i dont get syntax errors, just visual errors.

    Say like i type into the text area:

    Hello my name is slim shady.
    Hello

    it will repeat itself multiple times(on top of each other.)
  5. Replies
    30
    Views
    1,431

    Re: Another printing topic

    Ok, im trying to make a notepad, and i am trying to get the print method to work as i want it to.

    1) Must print multiple lines
    2) Must print within a certain area
    3) Must print more than one...
  6. Replies
    30
    Views
    1,431

    Re: Another printing topic

    Soz norm for the long wait for my reply. I was away for easter and came back to see my pc was broken. All fixed now.


    Ok so can you help me through this?

    ill start of, can you guide me...
  7. Replies
    30
    Views
    1,431

    Re: Another printing topic

    norm, my problem is i cant figure out a printing method where it will print multiple lines and keep within the margins at the same time.
    so atm i dont know how :S
  8. Replies
    30
    Views
    1,431

    Re: Another printing topic

    I think i need to do another approach to the printing method, does anyone else have another way in which i could try?
  9. Replies
    30
    Views
    1,431

    Re: Another printing topic

    yea but the thing is, if i hard code a string it wont work the way i want it to. as you can see, i want the user to print all text on the text area.
    im trying to make the program atm print out the...
  10. Replies
    30
    Views
    1,431

    Re: Another printing topic

    norm, the code i showed earlier makes a file with the text from the text area and then reads the file with it. i did this to use the x.next() method for the while loop and make so i can have this...
  11. Replies
    30
    Views
    1,431

    Re: Another printing topic

    Here is the code:

    it follows this:
    Make a new file with the data on it
    open file
    make a scanner
    make a while loop that will read the text on it
    then String data = data + "/n" + x.nextLine();...
  12. Replies
    30
    Views
    1,431

    Re: Another printing topic

    i tried it yesterday, doesnt work :/ just prints the line together.
  13. Replies
    5
    Views
    652

    Re: GUI Question (Jlabe/JTextField)

    I suggest you downloading netbeans it has a visual editor, where you can drag and drop your GUI components onto a frame. Since you are new, netbeans would be ideal.
  14. Replies
    30
    Views
    1,431

    Re: Another printing topic

    ^ would this work?
  15. Re: convert excel to xml and read the input from xml file

    dont you read? you need to make a introfuction post, not a question post.
  16. Replies
    9
    Views
    1,251

    Re: Need help writing a Java program

    @snow will i get banned now? i never knew that you couldnt do it for the people who asked. ill keep this in mind for the next question, soz
  17. Replies
    9
    Views
    1,251

    Re: Need help writing a Java program

    Dude you just in luck, i made one of this for my cipher.

    ok you need to understand, my explanations and self reasoning are all messed up. I do stuff that would confuse people...
    So i had a...
  18. Replies
    30
    Views
    1,431

    Re: Another printing topic

    the second link is a bit helpful to see a way, but then i will need /n through out the text. which i dont know how to replace blank spaces and then replace it.
    im trying to get a way around it now,...
  19. Replies
    30
    Views
    1,431

    Re: Another printing topic

    wow guess netbeans filled it out for me, and I never took note of it.
    only problem now is, my lining isn't correct. If its multiple lines, it just gets printed as one. I dont know how to fix this...
  20. Replies
    30
    Views
    1,431

    Another printing topic

    Hey guys,
    I know I'm new and all (And most of you will hate me for doing this).
    But I got one small problem with printing.

    As you see, i made my very own notepad. And I'm kinda stuck with...
  21. Thread: Hey there

    by Ajan
    Replies
    0
    Views
    239

    Hey there

    Hey guys,

    My name is Adam, I live in South Africa and I'm 17 years old. <-- Epic grade 1 intro :D?

    Anyway this will be my second year for java programming. I find programming quite easy from...
Results 1 to 21 of 21