Problem with background

Can someone explain what's wrong with the background >

Import net.rim.device.api.system.Bitmap;
Net.rim.device.api.ui import. *;
Net.rim.device.api.ui.component import. *;
Net.rim.device.api.ui.container import. *;
Net.rim.device.api.ui.decor import. *;

SerializableAttribute public class WhaleApp extends UiApplication {}
Public Shared Sub main (String [] args) {}
PAP WhaleApp = new WhaleApp();
theApp.enterEventDispatcher ();
}

public WhaleApp() {}
pushScreen (new SearchScreen());
}
}

final SearchScreen class extends form {}
Private UiApplication _app.
public SearchScreen() {}
Super();
LabelField lbl = new LabelField ("Blah");
Add (LBL);
_APP = UiApplication.getUiApplication ();
Manager manageLayout = new FlowFieldManager (FlowFieldManager.FIELD_HCENTER);
PopUp LocationScreen = new LocationScreen (manageLayout);
_APP.pushGlobalScreen (popUp, 1, UiEngine.GLOBAL_MODAL);
}
   
Protected Sub paintBackground (Graphics g) {}
super.paintBackground (g);
Bitmap bgBitmap = Bitmap.getBitmapResource ("bubblesweee.png");
this.setBackground (BackgroundFactory.createBitmapBackground (bgBitmap));
}
  
public boolean onClose() {}
Dialog.Alert ("Goodbye!");
System.Exit (0);
Returns true;
}
}

See this knowledge base article:

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

Tags: BlackBerry Developers

Similar Questions

  • Menu Spry, problems with background images in Internet Explorer

    Hello

    Looking for help from someone more qualified than me with some menus spry.  I have problems with background images don't show is not for some of my items menu in Internet Explorer.  Safari and firefox seem to accept it's ok.

    Here is a link to the menu: http://www.scottbrownwebdesign.com/beta/HTML/index.html

    and here is a link to the spry .css: http://www.scottbrownwebdesign.com/beta/HTML/SpryAssets/SpryMenuBarHorizontal.CSS

    I know that these are the elements that have the drop down or the side of the arrows.  I can't have two background images that I can?

    Thanks in advance,

    -Scott

    My first thought...

                         display: inline;          f\loat: left;          background: #FFF;
    
    Try declaring the background-image here as well... where it says not to mess with unless you know what you are doing.
    
    I'm just guessing though. If I had more time I'd look into it further but I do not.
    
  • Border problems with background image

    Hello

    I have a problem with my background image. I have fillings of browser size the original value and activated scale option in the middle. The image has a resolution of 1920x1080px. But when I now change the size of my browser I get a white border on the left or on the right size.


    Small to large size of Office Office:

    https://DL.dropboxusercontent.com/u/84237067/kleinzugross.PNG

    Large size of small office desktop:

    https://DL.dropboxusercontent.com/u/84237067/grosszuklein.PNG

    Hope you understand me, my English for this specific part is not perfect it.

    Greetings

    Marcel

    I checked out the site but don't see any white space on the page with large screens, I think that you have already solved the problem?

    Thank you

    Sanjit

  • CS4 problem with background colors

    Hello

    I've recently upgraded to Dreamweaver CS4 from CS3. Since the upgrade I have a problem with the background colors for the divs layout. I can't make them appear.  I use a PC and use any programming on this other than xhtml and css work. I created a div named "main_content" so that I could change the background color. The div is written in xhtml as usual and color is listed in the CSS file as appropriate and the CSS file is attached to the html page and it's normal, but no color appears.

    For clairity, this is how it is implemented.

    < div id = "main_content" > content goes here < / div > <! - main_content - >

    In the CSS file is written like this.

    #main_content {background-color: #e1e1d6;}

    }

    It has always worked before, including at - it a bug or something in CS4 that I have to work around?  I would appreciate help with this problem.

    Thank you

    quicpic

    It should work. Are you sure there aren't any typos or a bad path to the css file? Can you post the whole code? It works, if you use the CSS dialogue window? If so, are there differences in the code?

    - Alex

  • Problems with 'background' JFrame focus when adding a modal JDialog

    Hi all
    I am trying to add a modal JDialog to my JFrame (to use for the data entry), even if I have problems with the JFrame "focus". Basically, at the moment my program starts the JFrame and JDialog (loading program) very well. But then - if I move to another program (say, my browser) and then I try to go back to my program, it only shows the JDialog and the main JFrame is nowhere to be seen.

    In many ways the functionality I'm looking for is that of notebook: when you open the Find/Replace box (even though it is not modal), you can switch to another program, and then when you switch again Notepad the two main frame and "JDialog" - esque box is always on display.

    I tried to make it work for a couple of hours, but can't seem to. The closest I got is to add a WindowFocusListener for my JDialog and I hide it via setVisible once triggered windowLostFocus() (then my plan was to implement a feature similar in my class JFrame--though with windowGainedFocus - to redisplay the JDialog, i.e. once the user switches to the program). Unfortunately, this doesn't seem to work; I can't seem to get any window or window focus listeners actually pull all methods, in fact?

    I hope that this kind of sense lol. In short, I'm looking for the Notepad CTRL + R-esque functionality, but with a modal box. With regard to a 'short ': code list

    Main.Java
    // Not all of these required for the code excerpt of course.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.GraphicsEnvironment;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.ComponentAdapter;
    import java.awt.event.ComponentEvent;
    import java.awt.event.FocusEvent;
    import java.awt.event.FocusListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.event.WindowFocusListener;
    import java.awt.event.WindowListener;
    import java.beans.PropertyChangeEvent;
    import java.beans.PropertyChangeListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    import javax.swing.UIManager;
    import javax.swing.plaf.basic.BasicSplitPaneDivider;
    import javax.swing.plaf.basic.BasicSplitPaneUI;
    
    public class Main extends JFrame implements ActionListener, WindowFocusListener, WindowListener, FocusListener {
    
         static JFrame frame;
         private static int programWidth;
         private static int programHeight;
         private static int minimumProgramWidth = 700;
         private static int minimumProgramHeight = 550;
         public static SetupProject setupProjectDialog;
    
    
         public Main() {
    
              // Setup the overall GUI of the program
              // ...
              
         }
    
         private static void createSetupProjectDialog() {
              // Now open the 'Setup Your Project' dialog box
              // !!! Naturally this wouldn't auto-open on load if the user has already created a project
              setupProjectDialog = new SetupProject( frame, "Create Your Website Project", true );
    
              // Okay, for this we want it to be (say) 70% of the progamWidth/height, OR *slightly* (-25px) smaller than the minimum size of 700/550
              // Change (base on programWidth/Height) then setLocation
              int currProgramWidth = getProgramWidth();
              int currProgramHeight = getProgramHeight();
              int possibleWidth = (int) (currProgramWidth * 0.7);
              int possibleHeight = (int) (currProgramHeight * 0.7);
    
              // Set the size and location of the JDialog as needed
              if( (possibleWidth > (minimumProgramWidth-25)) && (possibleHeight > (minimumProgramHeight-25)) ) {
                   setupProjectDialog.setPreferredSize( new Dimension(possibleWidth,possibleHeight) );
                   setupProjectDialog.setLocation( ((currProgramWidth/2)-(possibleWidth/2)), ((currProgramHeight/2)-(possibleHeight/2)) );
              }
    
               else {
                   setupProjectDialog.setPreferredSize( new Dimension( (minimumProgramWidth-25), (minimumProgramHeight-25)) );
                   setupProjectDialog.setLocation( ((currProgramWidth/2)-((minimumProgramWidth-25)/2)), ((currProgramHeight/2)-((minimumProgramHeight-25)/2)) );
               }          
              
              setupProjectDialog.setResizable(false);
              setupProjectDialog.toFront();
              
              setupProjectDialog.pack();
              setupProjectDialog.setVisible(true);
    
         }
    
    
         public static void main ( String[] args ) {
              Main frame = new Main();
              frame.pack();
              frame.setVisible(true);
              
              createSetupProjectDialog();
         }
    
            // None of these get fired when the Jframe is switched to. I also tried a ComponentListener, but had no joy there either.
         public void windowGainedFocus(WindowEvent e) {
              System.out.println("Gained");
              setupProjectDialog.setVisible(true);
         }
    
         public void windowLostFocus(WindowEvent e) {
              System.out.println("GainedLost");
         }
    
         public void windowOpened(WindowEvent e) {
              System.out.println("YAY1!");
         }
    
         public void windowClosing(WindowEvent e) {
              System.out.println("YAY2!");
         }
    
         public void windowClosed(WindowEvent e) {
              System.out.println("YAY3!");
         }
    
         public void windowIconified(WindowEvent e) {
              System.out.println("YAY4!");
         }
    
         public void windowDeiconified(WindowEvent e) {
              System.out.println("YAY5!");
         }
    
         public void windowActivated(WindowEvent e) {
              System.out.println("YAY6!");
         }
    
         public void windowDeactivated(WindowEvent e) {
              System.out.println("YAY7!");
         }
    
         public void focusGained(FocusEvent e) {
              System.out.println("YAY8!");
         }
    
         public void focusLost(FocusEvent e) {
              System.out.println("YAY9!");
         }
    }
    SetupProject.java
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowEvent;
    import java.awt.event.WindowFocusListener;
    import java.awt.event.WindowListener;
    import java.io.IOException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    
    public class SetupProject extends JDialog implements ActionListener {
    
         public SetupProject( final JFrame frame, String title, boolean modal ) {
              // Setup the JDialog
              super( frame, title, modal );
              setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );
    
              // Bad code. Is only temporary
              add( new JLabel("This is a test.") );
    
              // !!! TESTING
              addWindowFocusListener( new WindowFocusListener() {
    
                   public void windowGainedFocus(WindowEvent e) {
                        // Naturally this now doesn't get called after the setVisible(false) call below
                   }
    
                   public void windowLostFocus(WindowEvent e) {
                        System.out.println("Lost");
                        setVisible(false); // Doing this sort of thing since frame.someMethod() always fires a null pointer exception?!
                   }               
              });
    
         }
    
    }
    Any help would be very greatly appreciated.

    Thank you!
    Tristan

    Set the image as the owner of the dialog box when you create the dialog box:

    JFrame frame = new JFrame();
    ...
    frame.setVisible( true );
    
    JDialog dialog = new JDialog(frame);
    ...
    dialog.setVisible( true );
    
  • Problem with background Images and scrolling

    I had to face for a while to get background pictures are working properly. Here's what I do:

    VFM VerticalFieldManager = new VerticalFieldManager();

    Card of bitmap = Bitmap.getBitmapResource ("MyImage.jpg");

    Background bg = BackgroundFactory.createBitmapBackground (map);

    vfm.setBackground (bg);

    This works, but has entrapment. First of all, he painted only as much as you have fields too much room, so I have to add empty fields just to occupy vertical space. However, on a page with something like a listField, where the height is variable, this can lead to what the background image are starting to repeat and to allow scrolling.

    What I want to do is to block all the scrolling and have the training exactly fill the screen with no scrolling or white empty places.

    I'll just on this wrong? Would really love to help...

    Hello

    Hope this will help you.

    class LoginScreen extends MainScreen {    //Manager        private VerticalFieldManager _manager;
    
        LoginScreen() {        //Set Background image            _manager = (VerticalFieldManager)getMainManager();            Background bg = BackgroundFactory.createBitmapBackground(Bitmap.getBitmapResource("back.png"));            _manager.setBackground(bg);
    
       }}
    

    Add this manageron your screen don't add any component in this handler.

    You add fields in the Manager of the other, and adds that the Manager on the screen.

    Let me know if this solves your problem or not.

  • Problem with background since the change of head.php file

    Hey everyone, I urgently need help with a small problem I have on my site.

    Today, I spotted on my Web site www.elaundry.com.au that my logo had a link to this topic. I could not find where to change it in the backend of the site so downloaded the file head.php from my server, open in dreamweaver and added a < a href > < /a > tag around the image of the logo in this file. When uploading to the server, it has deleted black background which crosses the site completely. I really need restore it to black as soon as possible. Anyone know the problem? I don't change any php just added to it.

    I have since deleted the < a > < /a > to head.php to see if it suits it, but there was no joy!

    Thanks in advance!

    Refer to your style sheet, but also with JS and other resources refer to your hard drive:

    "file:///Macintosh HD/Users/toni-mareebishop/Downloads/styles.css ".

    Correctly configure you the site in Site Manager before working on these files?

  • serious security problem with background app refresh (i5 - ios9.2)

    Just discovered that my iphone 5 (ios 9.2) do not listen to update background app at the level settings or individual app phone.

    In my case, "Whatsapp' application is able to bypass this setting (which is defined to restrict the level of the phone or app) but it is still able to download the messages as long as the phone is attached to wifi

    Please note: this is not a bug in whats app - it's a bug with ios 9.2 - that I can confirm with my phone and tested.

    I really hope that apple engineers are aware of this and put a fix as soon as possible.

    Another drawback of this is, it drains dough at least 30-40% more per day!

    Say to Apple.

    http://www.Apple.com/feedback/iPhone.html

  • Problems with background due to the error screen change "this feature has been disabled. For more information, contact your administrator"

    When I try to change my wallpaper, I get a message indicating that the feature has been disabled.  Why is this and how can I solve this problem? It says to contact the system administrator for more details.

    Hi Sara Myers,.

    (1) have you been able to change the wallpaper earlier?

    (2) do you use the computer as an administrator?

    You can follow the steps given by Daniel Martín in the link below, dealing with a similar issue

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/restricted-access-to-wallpaper-changes/065faa71-cbb3-435e-839a-0720a72c3548

    (The steps described in the link above works fine for Windows Vista as well)


    Important
    this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
    How to back up and restore the registry in Windows

  • Problem with background at different resolutions [was: help dreamweaver CC!]

    I am new to Web design, I tried to make my own web page using sensitive design (bootstrap, css, etc.), the site is already the case for a large number of resolutions and it works fine in the preview of the browsers, but say for example I see the iPad website with a resolution of 1024 x 768 , the site is displayed correctly, but if I scroll down on the sides, I can see the rest of the background, and as you know is not very elegant... So what can I do to allow users to see everything they need to see? I tried to give the background of different sizes in different resolutions, but it worked because when I arrived at higher resolutions the CSS queries, I created in lower resolutions are not stayed I left their... Can anyone give me a tip?

    [Edited by moderator subject line]

    Try to change the width of the images in the percentages as in

  • Problem with background grid, easy fix?

    Hey guys, I use PS for years, and this question has never happened before

    The basic grid of transparency would always be the size you choose in the settings, and it would be himself (to stay in a grid of small box) resize as you zoom front and rear etc, but now for some strange reason, it remains the same size when you zoom :/

    as you can see below once I have to zoom before the grid resizes not more, I work a lot in pixel art, and this question makes it harder to work at this zoom level, is there a few small adjustments I have accidentally enabled or disabled? : /

    The only other thing I can think of that may be the cause is that I recently updated my display driver that I didn't done in ages, but I don't see how this can affect something simple this problem?

    1.JPG2.JPG

    Cheers for any help guys

    [Ah ok, well well no worries I thought about it after a play with the parameters after the fold this first mentioned, but I went in 'GPU' > advanced settings and drawing mode has changed basic normal, now it back once again:] must change when I updated my display driver.

    Bravo guys

  • Problem with background application.

    Hi all

    I develop background application, which always runs in the background. If the application then restart my app starts to reboot. But for some unknown reason, to leave you my request. But I am unable to know the reason why is output.

    Can someone help me please in this?

    -Shekhar.

    On the device, tap L G L G

    Or, you can download the appliance event log using javaloader.

  • Having a problem with my computer I try to restart and get BSOD saying internal error Planner video background

    Original title: Blue Screen of Death (BSOD)

    Hello im having a problem with my computer I try to reboot and I get BSOD saying internal error Planner video background

    Here is my mini dump file:

    https://onedrive.live.com/redir?RESID=60FEBF11B9A3D76! 4807 & authkey =! AGKWUp-ndI0XBgE & ithint = the file % 2cdmp

    and here is my system info:

    https://onedrive.live.com/redir?RESID=60FEBF11B9A3D76! 4810 & authkey =! AFloWJarqiE83QM & ithint = the file % 2cnfo

    im hoping that this will let you know what is wrong or not

    RW

    This phenomenon was linked to your video driver (atikmpag.sys) /DirectX.  I would completely remove the current driver and install the latest driver available.

  • Problem with adding a background - please help!

    Hi all

    I try to create my first BB app and run into a few problems with the addition of a background image on my screen.  I try to activate the background on my request without using the class BackgroundFactory I need this works for older BB models.

    I use EncodedImage so that I can to scale the context in which any size of BB.  I am aware of the loss of the aspect ratio, this isn't a problem for me.

    Here is my code:

    The background image.
    backgroundImage = EncodedImage.getEncodedImageResource("img/image.png");
           
    int currentWidthFixed32;
    int currentHeightFixed32;
    int requiredWidthFixed32;
    int requiredHeightFixed32;
    int scaleXFixed32;
    int scaleYFixed32;
           
    Get the dimensions of the current image in fixed-point number
    currentWidthFixed32 = Fixed32.toFP (backgroundImage.getWidth ());
    currentHeightFixed32 = Fixed32.toFP (backgroundImage.getHeight ());
           
    Get the dimensions of the image necessary in fixed-point number
    requiredWidthFixed32 = Fixed32.toFP (Display.getWidth ());
    requiredHeightFixed32 = Fixed32.toFP (Display.getHeight ());
           
    Calculate the scale factor
    scaleXFixed32 = Fixed32.div (currentWidthFixed32, requiredWidthFixed32);
    scaleYFixed32 = Fixed32.div (currentHeightFixed32, requiredHeightFixed32);
           
    Resize the image
    backgroundImage = backgroundImage.scaleImage32 (scaleXFixed32, scaleYFixed32);
    Imagearriereplan = backgroundImage.getBitmap ();

    Display display = new MainScreen();

    VerticalFieldManager verticalFieldManager = new VerticalFieldManager)
    VerticalFieldManager.USE_ALL_WIDTH |
    VerticalFieldManager.USE_ALL_HEIGHT |
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.NO_VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.NO_VERTICAL_SCROLL) {}

    Override the paint method to draw the background image.
    {} public void paint (Graphics graphics)
    Draw the background image, then paint.
    graphics.drawBitmap (0, 0, backgroundBitmap.getWidth (), backgroundBitmap.getHeight (), Imagearriereplan, 0, 0);
    Super.Paint (Graphics);
    }
    };
    Add the handler to the screen.
    mainScreen.add (verticalFieldManager);
           
    VerticalFieldManager vfm2 = new VerticalFieldManager)
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.VERTICAL_SCROLL);
           
    verticalFieldManager.add (vfm2);
           
    The LabelField will be visible through the transparent image.
    LabelField labelField is new LabelField ("is a label");.
    ButtonField buttonField = new ButtonField ("asdf");

    Add the fields to the Manager.
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);

    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf2");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf3");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf4");
    vfm2. Add (buttonField);
    labelField = new LabelField ("this is a label");
           
    Tap on the screen.
    pushScreen (mainScreen);

    I want the "image.png" to act as a 'real' background, however, when I run the above code, the image.png appears in the form of the background, but when I scroll down, the background scrolls as well, and I see a white space.  I want to have "image.png" would you like the background permanently and add another manager who would be scrolling if scrolling is required.

    What I'm doing wrong here?  Why I can't see the vertical scroll bar and why the background is not scrollable?

    Any help is appreciated!

    See you soon!

    Make sure that you set the FullScreen.DEFAULT_MENU property - this will give you the default system menu items.

    You add your menu items by substituting makeMenu().

  • Problem with the background and the development

    Hi people!

    I have a little problem with my request, in this application, I have a background (bitmap) and 6 icons (bitmap) focusable.

    OK all going well but the problem is when I move the focus and the first and the last icon gets a white Home > _

    I don't know how to explain it better, but is simple, for example im on the first icon from the left and move to the left, another time and this Dungeon icon the focus but the focus changes to white, on the last icon is the same movement as the focus to the right (the last icon is on the right) and the focus change again in white... , where to move the focus icon back to normal.

    Usually, the icons have image development, I added this to the bitmapfield and eliminated the blue accent.

    protected void (_g, Boolean _on Graphics) drawFocus {//do nothing}

    Hello

    Replace your inside your BitmapField drawFocus() method (free and Ocupado) as below:

    protected void drawFocus(Graphics _g, boolean _on)
    {
         paint(_g);
         invalidate();
    }
    

    Concerning

    Bika

Maybe you are looking for