🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
5 messages
5 total messages Started by sasha Mon, 06 Dec 2004 14:45
MDI application
#746
Author: sasha
Date: Mon, 06 Dec 2004 14:45
15 lines
1446 bytes
Hi. I need to design MDI application. I created public class ChildFrame 
extends JInternalFrame and in my main form i added such code:

   //Construct the frame
   public MDIForm() {
     enableEvents(AWTEvent.WINDOW_EVENT_MASK);
     try {
       jbInit();
//      ChildFrame frame;
       frame = new ChildFrame();
       this.getContentPane().add(frame);
       frame.setVisible(true);

But i've got very strange MDI-application :-) Does anybody can tell me 
(or show link) how can i build windows-like MDI application in JBuilder?
Re: MDI application
#747
Author: Lori M Olson [TeamB]
Date: Mon, 06 Dec 2004 15:22
50 lines
2615 bytes
sasha wrote:

> Hi. I need to design MDI application. I created public class ChildFrame 
> extends JInternalFrame and in my main form i added such code:
> 
>   //Construct the frame
>   public MDIForm() {
>     enableEvents(AWTEvent.WINDOW_EVENT_MASK);
>     try {
>       jbInit();
> //      ChildFrame frame;
>       frame = new ChildFrame();
>       this.getContentPane().add(frame);
>       frame.setVisible(true);
> 
> But i've got very strange MDI-application :-) Does anybody can tell me 
> (or show link) how can i build windows-like MDI application in JBuilder?

Make sure you set your Look & Feel to the Windows (platform default) 
Look & Feel, or it will continue to look strange.

You need to learn about MDI applications in Swing.  JBuilder will help 
you design menus for your frames, and panes for your dialogs, but you'll 
have to learn how to wire them together too.  You need a good Swing 
book.  This is a good online resource:

http://java.sun.com/docs/books/javatutorial/jfc.html

Start here for some basic MDI information:

http://java.sun.com/products/jlf/ed2/book/HIG.Windows4.html

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: MDI application
#748
Author: sasha
Date: Tue, 07 Dec 2004 14:31
5 lines
1386 bytes
Thanks. I've read this article, borland help for JInternalFrame class 
and Sun's JInternalFrame manual, but I have one more problem: i cant add 
autoscrolling in jDesktopPane :-( I tried to insert jDesktopPane into 
jScrollPane and this did't help :-( How can i make the behaviour of MDI 
conteiner similar to windows MDI-container form?
Re: MDI application
#749
Author: Lori M Olson [TeamB]
Date: Tue, 07 Dec 2004 16:19
31 lines
2122 bytes
sasha wrote:
> Thanks. I've read this article, borland help for JInternalFrame class 
> and Sun's JInternalFrame manual, but I have one more problem: i cant add 
> autoscrolling in jDesktopPane :-( I tried to insert jDesktopPane into 
> jScrollPane and this did't help :-( How can i make the behaviour of MDI 
> conteiner similar to windows MDI-container form?

You need to search Google for answers, too.  In two minutes I found two 
different solutions.

http://www.javaworld.com/javaworld/jw-11-2001/jw-1130-jscroll.html
http://jscroll.sourceforge.net/

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Re: MDI application
#750
Author: sasha
Date: Tue, 07 Dec 2004 17:05
1 lines
1074 bytes
Thank you. I thought SWING have some standart mechanism.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads