Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

having trouble with swing, jframe, jsomething  RSS feed

 
Kip Bodey
Ranch Hand
Posts: 43
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so i have to make a program that will display an array list(which is a list of my library inventory), with buttons on the bottom, to add, checkout, return, and delete. when you run this program it should show the list in the middle of the screen in some box... im having trouble figuring out what this "box" is? here is a link to my teachers example, i hope you can see it. webpage
but if you cant it basically displays them all, and they are clickable, for instance i can click it and select delete. what component is this?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But that isn't a Swing component, it's a three-minute video.
 
Kip Bodey
Ranch Hand
Posts: 43
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im not sure if your being a smart ass or i really didnt explain myself well enough... lol ok her program, which is what the video is of, consists of a program that does what i need to do. i am trying to figure out what the thing that displays her list is... like is it a JScrollPane, or what. again im speaking about the componenet that holds the list in her program in her video... also curious about what is used at the bottom, is it some sort of menu bar or something?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't really want to watch a whole video to find out what your question is -- sorry about that. Three minutes is far too much to find out what you're asking. Couldn't you just post a picture of the thing you're asking about?
 
Kip Bodey
Ranch Hand
Posts: 43
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here is a picture of what i am trying to figure out sir
Untitled.png
[Thumbnail for Untitled.png]
the picture
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like a JList.
 
Kip Bodey
Ranch Hand
Posts: 43
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks i finally found something on youtube to help me out... i think its a jlist but added to a jscroll pane? well it seems to at least have the functionality i need so i think i will try to use it. thank you
 
Campbell Ritchie
Sheriff
Posts: 53769
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are JLists and there are scroll panes. The two are different and if you try to implement them both you will get confused. Start by implementing the JList then consider the scroll pane later. You can read about both in the Java Tutorials under “how to use lists” and “how to use scroll panes”.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!