Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Moving JList Objects To and Fro with Buttons(Trying to figure out correct methods for moving things from list to list.)
Moving JList Objects To and Fro with Buttons [message #1695076] Mon, 11 May 2015 20:28 Go to next message
Anthony Wall is currently offline Anthony WallFriend
Messages: 1
Registered: May 2015
Junior Member
Hey guys! I'm a new WindowBuilder user, with a very modest Java coding background. I've been trying, with little avail, to create and interface that allows you to move items between one list and another using simple "add" and "remove" buttons. I know how to add an "action" event handler, but that's pretty much as far as I've gotten. Can anyone help a novice such as I?
Here's my code so far:
JButton addButton = new JButton(">>");
		addButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				// OH GOD WHAT DO I DO?!?!? //
			}
		});
		panel.add(addButton);
Re: Moving JList Objects To and Fro with Buttons [message #1695243 is a reply to message #1695076] Wed, 13 May 2015 02:24 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
This would be a question better suited to a general Java/Swing forum. This forum is for questions specific to WindowBuilder.
Previous Topic:ClassCastException in WB XWT
Next Topic:WindowBuilder in 4.5RC1 RCP package
Goto Forum:
  


Current Time: Sat Nov 17 18:57:16 GMT 2018

Powered by FUDForum. Page generated in 0.02123 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top