post #1 of 1
Thread Starter 
Hey guys. working on this project atm. I'm sure I'll be asking more questions but for now I just need help with one. For my coursework I've been asked to create a email manager. Fun stuff I know. Well anyway I was given three files to start off with. Message data which held all the data. Email manager, the main program, it is the only one that is runnable. And Read Message. Using these I have to finish the email manager creating a Label message function and the ability to create a new message. Just there's one thing I don't understand... How it actually calls up the other auxiliary class

Code:
 public void actionPerformed(ActionEvent e) {
        if (e.getSource() == list) {
            textArea.setText(MessageData.listAll());
        } 

else if (e.getSource() == read) {
            new ReadMessage(idTextField.getText());
        } 

else if (e.getSource() == label) {
 new LabelMessages(idTextField.getText());
}

else if (e.getSource() == newMessage) {
new NewMessages(idTextField.getText());
}
else if (e.getSource() == quit) {
            MessageData.close();
System.exit(0);
        }
As you can see there are all my action listeners and stuff. The read message class opens by taking the information from the idtextfield (I think) which is exactly what I want but I do not want this too apply to new messages or label messages... So how could I get Label Message to open?

If you need any more details just ask! Thanks!
Dark Star
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 - Currently Overclocking ;) Gigabyte GA-EP45-UD3P HD 6950 OCZ Blade LC DDR2 PC29200 4GB (GOT) 
Hard DriveOSMonitorKeyboard
640GB for Storage and OCZ Vertex 2e 60GB Windows 7 Ultimate-Signature Edition 3 x 22" -BenQ G2222HDL Logitech G15 
PowerCaseMouse
Corsair TX850 HAF 932 Logitech G500 
  hide details  
Reply
Dark Star
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 - Currently Overclocking ;) Gigabyte GA-EP45-UD3P HD 6950 OCZ Blade LC DDR2 PC29200 4GB (GOT) 
Hard DriveOSMonitorKeyboard
640GB for Storage and OCZ Vertex 2e 60GB Windows 7 Ultimate-Signature Edition 3 x 22" -BenQ G2222HDL Logitech G15 
PowerCaseMouse
Corsair TX850 HAF 932 Logitech G500 
  hide details  
Reply