Pocket PC Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!





Go Back   Thoughts Media Forums > POCKET PC THOUGHTS > Pocket PC Developer

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2008, 08:44 PM
Pupil
Join Date: Mar 2008
Posts: 12
Default layout managers and j2me

hello,

Currently using jsr-62 or CDC/PP for Pocket PC. I have a couple of java beans (different dialogs) that are plugged into the ppc app. The ppc app is a frame that calls the dialogs(beans). The dialogs are using primarily GridBagLayout as the layout mgr. However, the dialogs and their components are not fully displayed or viewable on the PPC. The dialogs are maximized to screen size rather than w/in the frame of the PPC app.

Is there are way to show the dialogs w/in the frame of the ppc app or not maximized as though setSize(Toolkit.getScreenSize) has been used?

Here's a sample of the code in the PPC app:
Code:
PPC_app extends java.awt.Frame
{
PPC_app
{
// constructor
}
dlgAccount1 = frmAccountSearch.dlgAccount(this, true);
}
any help is appreciated.

Last edited by wrappingduke; 05-24-2008 at 10:41 PM.
 
Reply With Quote
  #2 (permalink)  
Old 06-02-2008, 08:08 PM
Pupil
Join Date: Mar 2008
Posts: 12

wondering if there's a method that can be used to show a window(i.e. dialog) within a frame (much like an MDI form). That is, all windows are shown w/in the frame's border or title bar.
Here's what I have attempted but to no avail:
fficeffice" />>
Code:

 java.awt.Dimension screen = getDefaultToolkit.getScreenSize();
java.awt.Insets frameInsets = this.getInsets();  // frame's insets
// set bounds of child (window)
window1.setbounds(frameInsets.top, frameInsets.top,
   screen.width - frameInsets.top -2, screen.height - frameInsets.top -2);
>
any help is appreciated
 
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 10:34 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7