
-----------------------------------
crazy1010
Fri May 28, 2010 9:14 pm

Implementing event listeners
-----------------------------------
Hi, I'm creating a database program with a GUI front-end, required for project.
Was wondering how I would get event listeners to work in the program, for button, scroll bar, and list-selection input.
Already have the UI and back-end set up.

Oh, on side note, is my read/write methods alright? Have a predefined file to write to.

public void read () throws IOException
	{
		RandomAccessFile input = new RandomAccessFile (storage, "r");
		int reps = input.readInt ();
		for (int i = 0; i < reps; i++)
		{
			byte names

-----------------------------------
crazy1010
Sun May 30, 2010 9:46 am

Re: Implementing event listeners
-----------------------------------
Just bumping this, and describing the problem a bit more.
I've looked at the Javadoc explanation of Event/Action Listeners, and it isn't very helpful at all.
Just need a working example of their use, and I'm pretty sure I could figure the rest out myself.

-----------------------------------
[Gandalf]
Tue Jun 01, 2010 10:23 pm

RE:Implementing event listeners
-----------------------------------
Two important notes:
1. If you're having trouble understanding or getting the information you need from JavaDocs, the issue is often with a lack of understanding for more fundamental Java concepts (interfaces, etc.)
2. Have you tried looking for action listener examples on Google?  That's about as specific help as you can get, given that you haven't shown us your GUI code or described any issues.

Your I/O code looks right.
