Windows Programmer is confused?
From: John Fabiani (jfabiani_at_yolo.com)
Date: 11/30/03
- Next message: Tor Iver Wilhelmsen: "Re: lines of code?"
- Previous message: MontereySoft: "Re: Bar codes / UPC Question/Help"
- Next in thread: znôrt: "Re: Windows Programmer is confused?"
- Reply: znôrt: "Re: Windows Programmer is confused?"
- Reply: Sudsy: "Re: Windows Programmer is confused?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Nov 2003 17:42:50 GMT
First let me say I'm used to programming in the windows environment with
Visual Foxpro. So moving to Java has me more than a little confused. My
biggest confusion at the moment has to do with frames. In my old world I
created forms (frames/windows) that display controls (widgets) and the
forms are called from a menu. I can make either SDI or MDI programs. MDI
programs allow the same form to open many times and they are independent of
each other.
For Java I find that I need to create a JDesktop and use JInternalFrame's to
emulate the windows programs I have created in the past. But I soon
discovered that my JBuilder IDE does not directly support creating Java MDI
programs. I'm new to the JBuilder IDE and may not know how to create the
required classes. Then I read in O'Reilly's Java Swing book the following:
?To be honest, in practice, standalone frames are often more useful than
internal frames.?.
That statement implies that I should change my thinking. But I can't figure
out how to emulate my windows programs without using JDesktop and
JInternalFrame. In fact, I have not figured out how to call a second
JFrame from a menu. The fact that JBuilder does not provide examples of
how to create JDesktop and JinternalFrame from the IDE tells me that
something is wrong.
So what is the correct way to construct a program that uses a menu to
display different windows? I.e. If your creating an invoicing program you
would need a customer screen, invoice screen, and a printing screen all
called from a menu. Would you use JDesktop?
I know this is long and thanks for reading it.
-- John Fabiani
- Next message: Tor Iver Wilhelmsen: "Re: lines of code?"
- Previous message: MontereySoft: "Re: Bar codes / UPC Question/Help"
- Next in thread: znôrt: "Re: Windows Programmer is confused?"
- Reply: znôrt: "Re: Windows Programmer is confused?"
- Reply: Sudsy: "Re: Windows Programmer is confused?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|