Search:

Type: Posts; User: Khadafi

Page 1 of 2 1 2

Search: Search took 0.20 seconds.

  1. Replies
    4
    Views
    641

    Re: JProgress Bar In GUI

    Hi, i am testing


    public class Test {
    public static displayPB(){
    JFrame parentFrame = new JFrame();
    parentFrame.setSize(500, 150);
    JLabel jl = new JLabel();
    ...
  2. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Thanks, that makes sense.

    But what is the way to skip over some parts, like maybe the first 10 lines etc.

    Thanks.
  3. Replies
    4
    Views
    293

    Re: Boolean Method Test Problem

    oo yea I remember hearing that before.

    Thanks for that =), works great.
  4. Replies
    4
    Views
    293

    Boolean Method Test Problem

    Hi, I am having troube with returning a boolean


    public boolean check(String name, String date){

    boolean test = false;

    for(int i=0; i<myList.size(); i++){...
  5. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Hi, I have got it working where I can read in data from a file and store it into strings.
    e.g. the format Name year year2

    but the file that i need to import has data before the actual...
  6. Replies
    6
    Views
    546

    Re: Java Class (C++ Structure Like) Help

    Hi, thanks, what you said made me realise what I was doing wrong =).
    What i was doing wrong was that I was making a reference to the other class multiple times in each part.
    e.g Something...
  7. Replies
    6
    Views
    546

    Re: Java Class (C++ Structure Like) Help

    I have a different problem, with the arraylist.

    I call a method from another class and add an element to that arraylist, if i print out the contents of the arraylist from within the method that...
  8. Replies
    6
    Views
    546

    Re: Java Class (C++ Structure Like) Help

    Hi, I figured out what i was doing wrong.

    I had to create an object of the type MyStructTest, and then set its attributes. and then add that to the arraylist.

    Thanks.
  9. Replies
    4
    Views
    641

    Re: JProgress Bar In GUI

    Thanks that makes sense, i've got the panel way to work, i might try the JDialog way later.
    Thanks =).
  10. Replies
    6
    Views
    546

    Java Class (C++ Structure Like) Help

    Hi, I am creating a class that is like a (struct in c++),



    class MyStructTest
    {
    public String var1, var2, var3;

    public MyStructTest(String var1, var2, var3) {
    ...
  11. Replies
    4
    Views
    641

    JProgress Bar In GUI

    Hi, I have created a GUI with a frame, panel, buttons etc etc

    I now need to add a JProgressBar. All the examples and tutorials I am finding are for creating a JProgressBar and addding it to the...
  12. Replies
    15
    Views
    656

    Re: Creating ArrayLists

    Hi, thanks everyone for the help but dont worry, I've already done it.

    Many thanks.
  13. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Oo thanks =), thats great. Such a silly mistake on my side, I dont know why I didnt realise.

    Thank you very much.
  14. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Hi, if i print out System.out.println("<"+s.trim()+">");
    i get an output
    <NameAttrib>
    <YearAttrib>
    <Year2Attrib>
    then the next lines
    <NameAttrib>
    <YearAttrib>
    <Year2Attrib>...
  15. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    In a way as it can recognise and split the line into the 3.parts, but I just want to seperate the 3 parts and store each in a String?

    Thanks
  16. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Hi, thanks.

    I am trying a different way as the other way is just confusing me.
    With this new way i think i am closer as i have the data split to the way i want it.



    while...
  17. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Hi, yes that is what I was trying but didn't know how to write the delimiter for that.

    Thanks.
  18. Replies
    15
    Views
    656

    Re: Creating ArrayLists

    Hi, thanks for your help, I got it working.

    Thanks once again.
  19. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    the data is in a file, and is just text (like a txt file)
    A Name (2009) 2009

    i want to read in the data with the scanner (and then assign what is read in into String variables),
    ...
  20. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Hi, I need to create another scanner to take in data in the format

    A Name (2009) 2009
    Another Name (2011) 2011
    ..etc that are stored in a list file

    I need the name 'A...
  21. Replies
    2
    Views
    290

    Re: Methods In Different Classes

    Hi, thanks, I understand now, the ToString method i had written was overriding the default ToString method.

    thanks once again.
  22. Replies
    2
    Views
    290

    Methods In Different Classes

    Hi, i have created a class for example People, and then another class PeopleList
    the PeopleList class uses the People Class to make an array list of the type people.

    in the People class i have a...
  23. Replies
    5
    Views
    1,747

    Re: SWING GUI CONSOLE WINDOW DISPLAY

    Yes thing printed out via System.out.print().
    Ill try that now.
    Thanks
  24. Replies
    31
    Views
    1,052

    Re: Read Text File Into Strings

    Thanks, I got it working =).
  25. Replies
    5
    Views
    1,747

    Re: SWING GUI CONSOLE WINDOW DISPLAY

    Thanks thats what I have been using whilst making the GUI.
    but i am not sure of how to display the console within the GUI.

    thanks
Results 1 to 25 of 38
Page 1 of 2 1 2