Blank - take some space

Hey,.

I was wondering how do an empty field to occupy little space. Say I want to another field to 50 pixels down from the top. I need a field to 50 pixels at the top who do nothing. Basically, I need a field that I can set a size (both vertical and horizontal). All the basic fields have this ability, or do I have to write a custom?

Kind regards.

I'm afraid you'll have to make your own.  Something along the lines of:

class EmptyField extends Field {
    int _width;
    int _height;

    public EmptyField(int width, int height) {
        super();
        _width = width;
        _height = height;
    }

    public EmptyField(int width, int height, long style) {
        super(style);
        _width = width;
        _height = height;
    }

    protected void layout(int w, int h) {
        int actWidth = Math.min(_width, w);
        int actHeight = Math.min(_height, h);
        setExtent(actWidth, actHeight);
    }

    protected void paint(Graphics g) {
        // nothing to do
    }

    public int getPreferredWidth() {
        return _width;
    }

    public int getPreferredHeight() {
        return _height;
    }
}

Tags: BlackBerry Developers

Similar Questions

  • duplicate in WMP 12 files, are they binding or they take disk space?

    duplicate in WMP files, are they binding or they take disk space?

    I have duplicate files and triple in WMP
    I tried the options for this clean, they do not and some are not copied into itunes, they double before copying them to itunes
    all these multiple copies take disk space or that they are links to my music library?

    Hello

    Thanks for choosing Microsoft Community!

    If I understand correctly, you have for the songs duplicate entries in Windows Media Player.

    Please answer these questions:

    What are the options have you tried to remove duplicate entries from Windows Media Player?

    When you move digital media files on your computer, the file name and file path information remain unchanged in your library. Then when you select a file to play to its new location, a new entry is created in your library, if you select the option automatically added to your library when played. As a result, your library can quickly contain a large number of entries, duplicate or invalid.

    Let us try the following methods:

    Method 1: Try the following article, if you have not yet tried:

    Remove items from the Windows Media Player library:

    http://Windows.Microsoft.com/en-us/Windows7/remove-items-from-the-Windows-Media-Player-library

    Method 2: See the following article:

    Open the troubleshooter in the Windows Media Player library:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-library-Troubleshooter

    Method 3: See the following steps:

    a. exit Windows Media Player.

    b. Click Start, run, type Player, %LOCALAPPDATA%\Microsoft\Media , andclicknext OK.

    c. Select all files in the folder, and then click delete on the file menu.

    Note: You don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    Method 4: Clear the cache of database Windows Media Player files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. Click Start, run, % LOCALAPPDATA%\Microsoft, and then click OK.

    c. Select the folder Media Playerand then click delete on the file menu.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    Hope the helps of information. Don't answer if you need assistance, we will be happy to help you.

  • After migration, iPhoto again takes massive space on the hard drive? My system is showing iphoto and photos with more than 100 GB of space each. I once picture is merged uses always massive GB of space? Thank you.

    After migration, iPhoto again takes massive space on the hard drive? My system is showing iphoto and photos with more than 100 GB of space each. I once picture is merged uses always massive GB of space? Thank you.

    # Multimedia files are hardlinked.

    (141516)

  • Is it possible to install Boot Camp and use window only with an external hard drive, so it doesn't take much space on my Mac?

    Is it possible to install Boot Camp and use window only with an external hard drive, so it doesn't take much space on my Mac?

    No. Windows cannot be installed on an external drive, or start from a.

  • Microsoft visual c++ redistributable (multiple) take much space, can I uninstall it?

    I need to free up some space, why is there so much of these?

    Hello

    Uninstall of Microsoft visual c++ redistributable could face some problems with most of the applications. Microsoft Office applications might stop working.

  • I'm trying to free up some space on my laptop and I noticed that there are a lot of files of programs uninstalled still on it, I was wondering if there is a good free program to install.

    Hi am trying to free up some space on my laptop and I noticed that there are a lot of files of uninstalled programs still on it, I was wondering if there is a good free program to install to get rid of these files or is there any other easy methods I try I wound appreciate the help thanks

    Where are all these files of uninstalled programs located?

    Usually, when you uninstall a program, all files other than the game save files, customizers, or similar are deleted automatically, and those who are 'left' files are usually readily identified you can manually delete directory.

    You can also see if free Revo Uninstaller will help-->

    http://www.revouninstaller.com/revo_uninstaller_free_download.html

    The same page includes a download button for the free trial of the 'Pro' of Revo Uninstaller version (currently $19,62 if you buy it).  Version Pro is said to "Extended searching for leftovers - more advanced scanning algorithms" compared to the free version.

  • Computer takes some time to connect to the internet after sleeping

    Hi, I expect to ask for help with this. When my computer wakes sleeping internet connection takes some time to connect. It's not terribly long (takes like 30 seconds or more) but it is noticeable and annoying. Before when the computer was asleep you might wake only, click Windows Live mail and he would begin to receive messages. Now, if you do this, you get an error message and must quit WLM and restart WLM, so that the computer has enough time to connect to the internet. As before if you clicked on IE after the computer is awake, it would take a couple seconds to connect to the homepage, but now we must wait and wait for it to connect. One thing happened recently is our old modem is dead (it was like half a dozen years or so) so a new modem was connected. No software has been installed, it is possible that the new modem is trying to use the old settings of modems or something? Any help would be appreciated, thanks.

    ComboFix easily your system trash can.  I only watched it once (I'm not a malware specialist) and quickly left alone!

    Also, I see some malware infections who jokes every day with network connectivity.  You can try a restore of the system to a point before the problems started - but then IMMEDIATELY to several antivirus scans to make sure you are always clean.  Here's a list of some free her: http://www.carrona.org/malware.html

    In addition, if you are ready to erase and reinstall WIndows - remember to backup all your stuff first.  If you do a clean installation of Windows, I would also say to wipe the hard drive (use DBAN or KillDisk - both are free w / an internet search).  Don't forget that you have recovery discs this will eliminate also any recovery on the hard drive partition.

    I'm not 100% sure on the key office - but wait that you can talk to someone at the Activation Center and explain that 2 other copies have been deleted.

  • What takes my space?

    What takes my space? I have g500s lenovo with avast antivirus, with almost 1 TB of space. In the last months, I noticed that my space has been consumed. Out of my 1 TB 900 GB of space has been used. I do not have the dowload photos, I keep my whole sparkling brosor of cleanliness, I maually remove my my documents downloads recycling bin office and old games I play regularly, as I hate too much space. I tried to use CCcleaner and System cleaner, but they say that I only have 1 GB worth of junk. NEED HELP PLEASE

    Hello

    This free program allows you to see what is taking place.

    http://www.Jam-software.com/treesize_free/

    Here's how to understand Treesize Screenshots:

    http://www.Jam-software.com/treesize_free/screenshots.shtml

    _________________________________________________

    Also, be sure to see how much space system restore is help and if necessary change:

    "How to change the maximum disk space used by the Protection of the system and system image in Windows 8 and 8.1"

    http://www.eightforums.com/tutorials/4691-system-protection-change-maximum-disk-space-usage-Windows-8-a.html

    _________________________________________________

    You can clean your hard drive using these two methods.

    "Delete files using Disk Cleanup"

    http://Windows.Microsoft.com/en-us/Windows/delete-files-using-disk-cleanup#delete-files-using-disk-cleanup=Windows-8

    Using the free CCleaner program:

    http://www.Piriform.com/CCleaner

    In NO case use the registry cleaning Option in CCleaner

    ________________________________________________

    Download, install, update and scan your system with the free version of Malwarebytes AntiMalware:

    http://www.Malwarebytes.org/products/malwarebytes_free

    See you soon.

  • Police take more space in the web browser when it is published in space seen in Muse

    Hello

    I have a problem with the space occupied by the text block when it is published in a web browser, the police take more space in the web browser space seen in Muse.

    When I compare the two images, the dimensions are the same, the difference is the space occupied by the police, in the muse, it is more condensed than in the web browser. Why? How can I avoid this in order to get the correct result in the web browser in Muse?

    Thank you.

    police in muse.PNGpolice in web browser.PNG

    You certainly can't avoid it! Each browser uses its own text engine and makes the fonts in its own way. You can only anticipate this behavior and choose your text blocks and policies accordingly. This, incidentally, causes me never (!) use justified text on the web, as you well obviously.

  • In Lr CC, which takes less space drive in the cloud: .jpg or raw? [was: in Lr CC...]

    In Lr CC, which takes less space drive in the cloud: .jpg or gross of it does not matter because it is an intelligent overview anyway?  Thank you.

    Hi Bill Riccobono,.

    Greetings.

    If by LR CC the cloud, you mean mobile LR, LR mobile Yes does not store the file original raw or jpeg, rather those who found smart which are downloaded.

    Smart insights are very small and are not recommended for printing purposes.

    Concerning

    Rohit

  • Hi all. How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Hi all. I am new and on a free trial right now.

    How can I manage the preferences that LR do not take up space on my MAC hard drive and works only on the external hard drive?

    Monthly payment included cloud storage?

    Peut I manage backups? And how?


    -Amir

    Hi amireos,

    Yes, you can create your workflow where you can keep all your images on the external hard drive and the Lightroom catalog file as well.

    If you start with Lightroom and then use the Destination location as external hard drive when you import your image of the external source such as a camera or SD.

    If you already have your Images on the Mac HD drive, then play all your Image on the external hard drive first and then import images directly from there.

    Finally, you can change the location of the Lightroom Catalog as well.

    Default location: folder on the Mac Drive HD, there is folder called Lightroom that you can move on the external drive too (however catalog Lightroom can't memory space as its only import previews of the images is not the real image and full)

    Once you move the file catalog Lightroom external hard disk, then you need to browse the catalog file when you launch Lightroom only once.

    See thread: LR catalog moving on external hard drive

    Let us know if it helps.

    Kind regards

    ~ Mohit

  • When you import photos into Lightroom 5 take disk space?

    I store all my photos on the D drive on my PC, Lightroom 5 is installed on the C drive. When I import my pictures in my library using the Add option should they take place on the C drive and D drive? They appear to do, but I thought that they would not be using the Add option rather than move or copy. Can someone please advise?

    Thank you very much

    Stephen Cooper.

    Where your LR catalog?  If it is on your C drive, additional space only on C should be for the information added to the catalog and previews, which must be low, unless you generate 1:1 previews, which can be larger and take more space.

  • Launch OPA take some time

    Hi all

    We had a strange problem in the form of launch for the OPA using Siebel data adapter. The form of launch of the OPA takes a lot of time about 15 to 20 minutes sometimes. But if we bounce broker SR of Siebel this time reduced from 5 to 8 seconds. After awhile of use continuous we3 once again see the sunrise in time interval and is only after the rebound of broker SR reduced this time looking at the newspaper think Siebel becomes slow and it takes enormous time to send back the response from the web service.

    Thank you
    Kunal Sharma

    This must have something to do with Siebel, starting the inbound web services. When you start web determinations with data previously seeded Siebel. OPA must remind a web service entering siebel to get the data.

    If the incoming web service does not correctly, this can take some time.

  • He said "extraction... it may take some time" for 2 days. Is this normal? What should I do?

    He said "extraction... it may take some time" for 2 days. Is this normal? What should I do?

    No, it has long been the point of no return. Download again using anotehr browser / method such as described here:

    Direct download links for Adobe software

    Mylenium

  • what takes my space in my computer?

    I have defraged and used disk clean but have always no more room! I have 114 g' low s.i. load a lot of movies but I deleted more then half but I have STILL no more space left .i have even deleted the old files... I don't know what could occupy all my space, help please!

    If you use this amount of space on a Windows XP computer - it is * your * stuff taking up by.  Windows XP with * sorts * installed applications take about 10 GB of space - usually not much more.  The 'all kinds of applications' would include office suites, graphics suites, video editing suites, etc.  Is more likely, whatever it is above the mark of ~ 10 GB * your * stuff.

    How much space is your hard disk have TOTAL and FREE now?

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...
    (These instructions will be different depending on the version of IE that run you.)

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/index.html

    Those who can help you discover visually where all space is used.

    Some people have had difficulties getting installed JDiskReport / work - so a bit more about it here:

    JDiskReport requires Java work.  Here are the steps I would take to get it installed.


    (Save it somewhere obvious and easy to find - such as your desktop).
    (The name of the file is jre-6u26-windows-i586 - s.exe.)
  • Download and save the latest JDiskReport: JDiskReport R1.3.2
    (Save it somewhere obvious and easy to find - such as your desktop).
    (The file name will be jdiskreport-1_3_2 - win.exe.)
  • Restart your computer and log in.
  • Double-click the file jre-6u26-windows-i586 - s.exe (Java).  (Installation, (Yes if requested), fence, etc.)
  • Once it's done installing, restart your computer and log in.
  • Double-click on the jdiskreport-1_3_2 - win.exe (JDiskReport).  (Next, Next, Install, finish, close the Readme If it opens.)
  • Once it's done installing, restart your computer and log in.
  • Run from the shortcut on your desktop.

Maybe you are looking for

  • No support for Windows 10 for Satellite U920T?

    Does anyone has improved a Toshiba U920T to Windows 10? I only ask because this model is not listed in the list of Toshiba Tempro of models that can be upgraded. So I'm stuck with Windows 8.1? My part no is PSUL1E-00D00JEN. SER No.: ZC128613H

  • Toshiba 40TL938 - remote control inactive when CI + card is in use

    I don't know if anyone of you has what happened, but I have a TV 40TL938 max 30 minutes of CI + card insertion become inactive on the remote control, or it takes 2-3 commands by pressing a key. If I remove the card, remove the plug and then turn on t

  • HP dv5 1002nr: mobile caps and the number key at the same time blink once

    I was doing some updates on the computer when the power of the battery is dead and when the power cord I had a black screen and the caps and digital key will appear to blink once at the same time. I upgraded the operating system about 1 months ago fo

  • accidentally deleted device to icloud

    So I recently got my iphone stolen from me and I was going to use find my IPhone on www.icloud.com to find the location of it. It was the first time something like this happened to me so I didn't really know what to do. I clicked the button which rem

  • Name of the file with the worksheet

    Hi, I have save data with 'Write to spreadsheet' and I know I can save in a file created with a path or create a new. I need name and create a file for each day of automaticlly. If it is Monday, the file name will be Monday and save the data of the N