Search:

Type: Posts; User: gammaman

Search: Search took 0.26 seconds.

  1. Replies
    7
    Views
    1,038

    Re: get element of ArrayList.

    I have tried what you suggested and I am still getting errors. Could this be b/c I am trying to do this on an actionlistener event.

    First, here is the constructor for the music recording which...
  2. Replies
    7
    Views
    1,038

    Re: get element of ArrayList.

    Sure. Simply "Yes" or "No". Those are the only two values the "owned" variable can contain. it gets trickey though. See where say myDataAccessor.getRecordings(category);

    That comes from...
  3. Replies
    7
    Views
    1,038

    Re: get element of ArrayList.

    MusicRecording is a class. I want to look at the value returned by getOwned();



    public class MusicRecording extends Recording {

    /**
    * Data members
    */
    private String artist;
  4. Replies
    7
    Views
    1,038

    get element of ArrayList.

    I have an arraylist as follows and I am trying to get an element so that it can be used in an if statement for evaluation. Is there a way to do this.



    ArrayList<MusicRecording> info =...
  5. Re: xfa.host.print: print a page + some page range.

    I have already done that and nobody answered.
  6. xfa.host.print: print a page + some page range.

    I am trying to use xfa.host.print to print a single page + some page range.

    I am aware of how to use xfa.host.print as follows xfa.host.print(1,"0","2",0,0,0,0,0) which will display the print...
  7. Replies
    1
    Views
    803

    Combine fonts on JLabel

    I am trying to combine fonts on a JLabel and do not seem to have any success



    JLabel title = new JLabel("Title:");
    //title.setFont(new Font ("Arial",Font.BOLD,10));
    JLabel titleLabel = new...
  8. Replies
    0
    Views
    1,843

    embed yotube video into JPanel

    Hello, I have this Swing GUI which displays information about video games. Inside the JPanel are several componets as you will see in the code below. I also have a youtube video playing. I used...
  9. Replies
    6
    Views
    1,046

    Re: File Text displays jumbled in JList

    Ok, so I have another question. Currently the program is printing the entire text paragraph onto one line in the JList. How can I adjust this so that the text flows onto the next line when it...
  10. Replies
    6
    Views
    1,046

    Re: File Text displays jumbled in JList

    Got it. Works great now. Thanks.
  11. Replies
    6
    Views
    1,046

    Re: File Text displays jumbled in JList

    It is just a word doc with a paragraph of english I tried both doc and docx formats and produced the same results both times.
  12. Replies
    6
    Views
    1,046

    File Text displays jumbled in JList

    Hello,

    I have a text file which I am reading into a JList. The file is being read in but it is displaying jumbled characters. I would just like to verify that there is nothing I am doing wrong...
  13. Replies
    4
    Views
    4,047

    recursive descent parser

    anyone have a RDP program that can handle the following grammar?



    <elist> -> <elist>,<e>|<e>
    <e> -> <n>^<e>|<n>
    <n> -> <n><d>|<d>
    <d> -> 0|1|2|3|4|5|6|7|8|9
Results 1 to 13 of 13