Nancy:
The task isnt hopeless but it also isnt trying to make docs (healthcare practitoners of all types) into information systems engineers (you are doing far better than I as a clinical laboratorian, for example) but rather sufficiently oriented to engage in productive dialog with such engineers. The key practitioner contribution lies in the conceptual content and how it is used in cognitive processing and how to describe this to their counterpart engineers; the reverse process involves getting information systems engineers in biomedical health informatics sufficiently aware to the background biomedical conceptual matrix that they know how to engineer (define,design, code, test,validate) systems that do what practitioners need. We've got some pretty talented participants in hardhats, WV and the VA and their associated suppliers. Historically the M community (with example by Octo Barnett to begin it all) has been an unusually innovative and collaborative bunch whose real story is yet to be told but just keep learning all you can and pushing to do the things we've all set out to contribute to and dont try to turn everytone into a comprehensive genius. We'll have a lot of fun and produce more than others can imagine and we can take tim out to celebrate one of these days! But dont Give UP!

On Tue, 12 Jul 2005, Nancy Anthracite wrote:

You know, Greg, it may be just as hopeless getting us docs on board with this
ideal computer professional behavior as it is getting doctors in the US
military to act like line officers.  Sometimes it is just easier to give up!

However, I admire that you are at least trying to straighten us up!

On Tuesday 12 July 2005 04:44 pm, Kevin Toppenberg wrote:
Isn't if funny how we like things to not just to do
the job, but to also be "beautiful"?  If your code
gets the job done, then its OK with me.. :-)

Kevin

--- Gregory Woodhouse

<[EMAIL PROTECTED]> wrote:
Perhaps the worst thing is that back in the main
Triton class, I have
code like this.



         void setConnected(boolean isConnected) {
                 l_connected = isConnected;
                 if (l_connected) {
                 mi_login.setEnabled(false);
                 mi_logout.setEnabled(true);
                 } else {
                         mi_login.setEnabled(true);

mi_logout.setEnabled(false);
                 }
         }

         boolean isConnected() {
                 return(l_connected);
         }

All this does is toggle the "connected" state, and
enables/disables
menu items accordingly. I really, really don't like
this design.

===
Gregory Woodhouse
[EMAIL PROTECTED]

"Nothing is as powerful than an idea
whose time has come."
-- Victor Hugo

On Jul 12, 2005, at 5:49 AM, Kevin Toppenberg wrote:
I've done very little with java, so let me feel my

way

here.

I assume that function public LoginDialog is the
constructor for class LoginDialog.  I see Frame

passed

as a parameter to the constructor, but I don't see
that you use it.  What is it doing?

Kevin


--- Gregory Woodhouse

<[EMAIL PROTECTED]> wrote:
Well, here's some code I wrote to implement a

login

dialog (not that
I'm all that proud of it -- I think it's ugly).

You

can see that this
is exactly how the reference passed to the
constructor is used.


import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;


public class LoginDialog extends JDialog {

         private JButton l_loginButton;
         private JButton l_cancelButton;
         private Container l_content;
         private Triton l_application;

         public LoginDialog(Frame parent) {
                 super(parent, "Login", true);
                 l_application = (Triton) parent;

setDefaultCloseOperation(DISPOSE_ON_CLOSE);
                 l_content = getContentPane();

                 l_loginButton = new JButton("Log
in");

l_loginButton.addActionListener(new

ActionListener() {
                         public void
actionPerformed(ActionEvent ae) {
                                 signIn();

setVisible(false);

                                 dispose();
                         }
                 });

                 l_cancelButton = new
JButton("Cancel");

l_cancelButton.addActionListener(new
ActionListener() {
                         public void
actionPerformed(ActionEvent ae) {

l_application.setConnected(false);

setVisible(false);

                                 dispose();
                         }
                 });

                 JPanel p = new JPanel();
                 //p.setLayout(new

GridLayout(2,1));

                 EmptyBorder empty = new
EmptyBorder(0, 0, 0, 10);
                 p.setLayout(new

GridBagLayout());

                 p.setBorder(new EmptyBorder(new
Insets(5, 5, 5, 5)));

getContentPane().add(BorderLayout.CENTER, p);
                 GridBagConstraints c = new
GridBagConstraints();
                 c.insets = new Insets (2, 2, 2,

2);

                 c.anchor =

GridBagConstraints.WEST;

                 JLabel name_label = new
JLabel("Login Name");
                 name_label.setBorder(empty);
                 c.gridwidth = 1;
                 c.weightx = 0.0;
                 p.add(name_label, c);
                 JTextField name = new

JTextField();

                 c.gridx = 1; //position
                 c.weightx = 1.0;
                 c.fill =
GridBagConstraints.HORIZONTAL;
                 p.add(name, c);
                 JLabel password_label = new
JLabel("Password");
                 c.gridwidth = 1;
                 c.gridx = 0;
                 c.gridy = 1;
                 c.weightx = 0.0;
                 p.add(password_label, c);
                 JPasswordField password = new
JPasswordField();
                 c.weightx = 1.0;
                 c.gridx = 1;
                 p.add(password, c);
                 setSize(300,200);
                 c.weightx = 0.0;
                 c.gridx = 0;
                 c.gridy = 2;
                 p.add(l_loginButton, c);
                 c.gridx = 1;
                 c.gridy = 2;
                 c.weightx = 0.0;
                 c.fill= GridBagConstraints.NONE;
                 p.add(l_cancelButton, c);
         }


         protected void signIn() {

l_application.setConnected(true);

         }

         protected void signOut() {

l_application.setConnected(false);

         }
}

===
Gregory Woodhouse
[EMAIL PROTECTED]

"The whole of science is nothing more than a
refinement
  of everyday thinking."  -- Albert Einstein


On Jul 11, 2005, at 5:15 PM, Kevin Toppenberg

wrote:
I wonder if the reference to the JFrame is for a
messaging system.  In Borland/Windows, a GUI

object

has both an 'owner' (one responsible for

utimately

=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar
happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest
in dual core and dual graphics technology at this free one hour event
hosted by HP, AMD, and NVIDIA.  To register visit
http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

--
Nancy Anthracite


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to