Jump to content
Ghost Recon.net Forums

Recommended Posts

hey sorry it took me so long to reply but i need to make a simple(not complex) address book. It needs to be able to show the addresses and be able to input new addresses. I have most of it and all most all of the buttons and on screen stuff is set up i now just need to figure out how to make the buttons perform the functions that i want them to perform. I currently have a box with a scroll bar in left hand corner and a button underneath it that says add new address. on the right there is the input boxes to add all of the information such as name and all that other fun stuff. then right below it there are two buttons enter and cancel. i think all i really need now is help getting those buttons to work and fixing all the others little problems. this is confusing :wall:

Thanks for replying :D

Link to post
Share on other sites

You need to

import java.awt.event.*;

You will need to use this to perform the action.

private class ButtonListener implements ActionListener

{

public void actionPerformed (ActionEvent event)

{

// Perform what actions you want.

}

}

Then do this for your button(s).

button.addActionListener(new ButtonListener());

Each button will need its own class.

If you need something else let us know. I assume you are going to put the address information as an object and serialize it.

Link to post
Share on other sites

Sorry but i think i need one more thing, we understand what all we need now but we just need to know exactly how the buttons work, i have attached a picture of the project and we need to know how to get those three buttons within the box(Enter, Cancel and Add new address) to function properly.

Thanks

Link to post
Share on other sites

hey man thanks a ton for your help, I finally figured out what I am doing(I think) but i appreciate the help :thumbsup:

I tryed attaching the stupid thing to an email but it didnt work; i hate computers :wall:

anyway thanks again talk to you later

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...