• Post Reply Bookmark Topic Watch Topic
  • New Topic

Looking for a Java control that has similar functionality to Grid, Accordion, ListBox, CheckBox  RSS feed

 
JasonT Krause
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this is the right place to post this, but...

I am looking for a specific java control, or something close. I guess it could be described as a cross between a Grid, Accordion, and List/Check Box control.
Here is what it could look like:



Does anyone know where I can find controls like this? I think we are using Java Script for our current controls.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65768
131
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java or JavaScript? They have nothing to do with each other so we need to know which you are asking about.

Is this in a Swing app (desktop), or in an HTML page?
 
Campbell Ritchie
Sheriff
Posts: 53622
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

You could look through the different kinds of component (I don't think we usually call them controls) in Java® in this part of the Java™ Tutorials. Obviously most of those will be irrelevant to you, but what about lists, combo boxes, or trees?
 
Tim Holloway
Bartender
Posts: 18514
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the Swing/AWT/SWT forum, so it's the one you want to ask in if you're working with a stand-alone Java GUI application. And, yes, Campbell, I've been calling them "Controls" since before there even was a Java.

If you are trying to do this on a web page, you need to determine what web GUI framework(s) you are working with, because that will determine the answer. As well as which Ranch Forum to best ask the question in. If it's straight Javascript, you're on your own (although you can get help in our HTML/Javascript Forum) unless you decide to add a third-party javascript support library. If you're using something like the jQuery UI or dojo, then you may have other options for those libraries.

Likewise, if you are using a Java web framework, that also can have an impact. For example, the RichFaces extension tagset for JavaServer Faces provides a panelMenu control that should do what you want. If you're using something like Wicket, you'd likely have a completely different set of options to choose from.

Neither desktops nor HTML actually have an expanding-menu control in their core feature set, so no matter what platform you're using, you'd have to either use an extension (such as RichFaces) or do it the hard way and design/code/debug your own.
 
JasonT Krause
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Java or JavaScript? They have nothing to do with each other so we need to know which you are asking about.

Is this in a Swing app (desktop), or in an HTML page?

Sorry, this is for a JavaScript application. We are currently using http://jqueryui.com/.
 
JasonT Krause
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Welcome to the Ranch

You could look through the different kinds of component (I don't think we usually call them controls) in Java® in this part of the Java™ Tutorials. Obviously most of those will be irrelevant to you, but what about lists, combo boxes, or trees?

I learned that they aren't typically called "controls" after I posted . My background is in VB and VBA.
Are they more commonly referred to as "widgets"?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65768
131
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. I have moved this topic to the HTML/JavaScript forum as appropriate.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65768
131
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As you are already using jQuery, I would search for jQuery plugins that implement the widget you are looking for. There are tons (and I means tons) of select element replacements out there. You are likely to find the one you need by sifting through them. If not, then grab one that's close to what you need and start modifying it to meets your needs.
 
Tim Holloway
Bartender
Posts: 18514
61
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JasonT Krause wrote:
Campbell Ritchie wrote:Welcome to the Ranch

You could look through the different kinds of component (I don't think we usually call them controls) in Java® in this part of the Java™ Tutorials. Obviously most of those will be irrelevant to you, but what about lists, combo boxes, or trees?

I learned that they aren't typically called "controls" after I posted . My background is in VB and VBA.
Are they more commonly referred to as "widgets"?


I think they probably first got the name "control" back in the Smalltalk days, where they were the View Components of the Model/View/Controller architecture. The Wikipedia defines a GUI Widget as a "graphical control element" or a "control"

Others have their own definitions, but for me a "Component" is a general functional element, which may or may not be graphical. For example, I might use an email component.

A Widget - again, my usage - is usually a complex control (often a compound control), although the Wikipedia allows for non-GUI widgets as well. Not quite the same as my definition of Component, but stretching in that direction.

A Control is the term that is commonly used specifically for a UI data input/output component.

and that's my $USD 0.02.

However, now that you've confessed that you're using jQueryUI, I'm moving this thread to a more appropriate forum, since Swing/AWT/and SWT have nothing to do with the problem.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!