border problem is not show on the right

Hello

I create two LabelField label1 and label2 and then I added the border both of them... and then I added

thesefields to HorizontalFieldManager...

Problem is that when I use the method of layout in LabelField (label1) and border on the right side of the LableField (label2) does not appear...

LabelField label1 = new LabelField ("IMEI")
{
protected void paint (Graphics g)
{
g.setColor (Color.WHITE);
Super.Paint (g);
}
protected void layout (int width, int height)
{
Super.Layout (width, height);
setMargin (new XYEdges (0,0,0,50));
}
};
Label1.setbackground (BackgroundFactory.createLinearGradientBackground (Color.Green, Color.Green, Color.Green, Color.Green));
Label1.setBorder (BorderFactory.createBevelBorder (XYEdges (2,0,2,2))) of new;

LabelField label2 = new LabelField ("dasd");

Label2.setbackground (BackgroundFactory.createLinearGradientBackground (Color.Green, Color.Green, Color.Green, Color.Green));
Label2.setBorder (BorderFactory.createBevelBorder (XYEdges (2,2,2,2))) of new;

HFM HorizontalFieldManager = new HorizontalFieldManager();
      
HFM. Add (Label1);
HFM. Add (Label2);

I don't know what the problem is, but you need to move this:

setMargin (new XYEdges (0,0,0,50));

out of the page layout.  The framework calls available when we want to know how much space to allocate to the device.  You have to set the margin before that date.

So get out there and make a

Label1.setMargin..)

as you define the border.

I see that your two BorderFactory calls are slightly different.  Is - it deliberate?

Tags: BlackBerry Developers

Similar Questions

  • Apps do not show in the right of the iTunes window

    Since the new iTunes when I plug my iPhone 6 (latest version of IOS) none of my apps in the right column show.  There is a small wheel that starts spinning but my 149 apps will not be displayed. The left side with all applications is perfectly.  This means that I can't move the autour apps because they will not be displayed - what am I missing or what could be the cause and how to fix this?  I can sync to my iPhone without problems of ants or errors.

    Thank you

    iPhone 6 s, iOS 9.3.1 latest version of iTunes

    This seems to be a problem for some users. What is solved for me (finally) was re-launch of iTunes and reset the iPhone (including while it was connected via USB to the computer).

    To reset hold down the buttons Home and Power until you see the Apple logo (15 to 20 seconds).

    Also note that you can move icons app directly on the device. Top and hold the button until the icon wiggles, and then drag it to its new location.

  • Pop-up window does not show in the right position in the sensitive design (was: place cursor object)

    Hello world

    I create a demonstration of the software using screenshots and leading edge.  There are pop-up windows in this product when the user places the mouse over a row of data and a popup appears at the mouse position with more information on these data.  I used

    SYM. $("myObject") .css ({"location": "absolute", "top":e.pageY, "left":e.pageX});})

    and it works fine until I set stage for 'sensitive' or I scroll to the bottom of the page to access the data rows.  When this happens, the popup appears in the distance of the mouse.

    I'm not a coder strong, but anyone know how I can get on board an animation to recognize the true position of the mouse on the screen and then specify the popup to appear there?

    Any advice would be appreciated.

    Thank you

    Randy

    Try the code in this example - Dropbox - mouseclick.zip. The phase shift is not supported in the code, let me know if that is necessary for your use case.

    DIA-

  • Not showing in the artists Split album

    10.11.5 OSX iTunes 12.4.1.6

    I imported the 4 songs from the same artist/album in iTunes. They are listed under recently added under a single album called something like Unknown Album. I selected all the 4 songs and clicked on to read information. I changed the artist and the artist of the album in his own name. I changed the album under his own name. I selected the right kind and added to the year. I filled that there are 4 tracks of the album, filled in that it was the CD 1 of 1 and has not checked all the boxes. I added album work and clicked OK.

    Recently added, all the 4 songs now show with the right information. I then went in and read the information on each piece individually and entered the appropriate track number and click OK.

    The album shows as expected under recently added, Albums and Genres. However, when I look at the album under artists, the artist is here 4 times, all showing the same album, with 1 song under each heading. When I look at the first entry, it shows 1 song that bears the number "1". The second album shows 1 entry that has the number '2' and so on.

    Any ideas on how to solve this problem?

    If you see unexpected songs groups when you browse an album - https://support.apple.com/HT204538 - 'songs from the same album may not be grouped as expected when you view them in display Albums in iTunes."

    The following sections provide additional solutions.

    Steve MacGuire alias turingtest2 - iTunes and iPod tips and tricks - grouping beaches in Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (old post on Apple Discussions http://discussions.apple.com/message/9910895#9910895)

    Quick response: select all the tracks on the album, file > info (or right-click > news > Details) and give them all a single "album artist", or check the indicator of "compilation" (as in https://discussions.apple.com/message/17670085#17670085).

    If they are several CD sets, you will also need to enter the appropriate information in the fields of number of disk.  If they are not a set of multiple CDs that you must always make sure any vacuum or disc number fields are properly defined.

    Another explanation of hhgttg27 August 2015 - https://discussions.apple.com/message/27784417#27784417

    If they won't even really check this August 2008 post by turingtest2 group temporarily change labels - https://discussions.apple.com/message/7904806#7904806 or http://www.samsoft.org.uk/iTunes/merge.asp - add a letter at the end of the name of the artist, close the read information, then open it again and remove the letter. This works often but I had cases where securities combined when a letter has been added but divorced when he was kidnapped again.

    If they are mp3 files are trying to change the version of the ID3 tag, which can cause iTunes to re - write the tags and clarify inconsistencies.  I use iTunes 7.5 (Yes, from 2007) so I can't tell you where it is in later versions.

    I had a case of grouping stubborn reality.  The tracks will be re-group in a way that has no meaning when I changed metadata.  Without going into details, I deleted tracks iTunes completely, then add the files and they are all grouped together correctly.

  • NB550D - battery icon does not always reflect the right balance of time

    I recently bought a NB550D and I must say that, first of all, I am very happy with it. It tends to be a bit slow, but I can live with that.

    However, my problem is that the battery icon may not always reflect the right balance of time. After a full charge, it can present 9 remaining hours but after a stop and restart it will be may show 75% and the remaining 3 hours. If I stop and restart it can show 75% and remaining 6 hours

    When I started the unit I enabled him to discharge completely (by means of) three times, as suggested by the seller in the store, but quite frankly it seems not a fall of difference!

    Any advice will be appreciated.

    Concerning

    Hello

    Like Tom, battery depands of working time on the use of the laptop.
    Battery time can always change.

    In addition, I would recommend calibrating the battery to ensure best performance.
    You must charge the battery until the led would turn to green (blue) and should unload completely the battery until the cell stops automatically.
    This process must be repeated several times.

  • In Mac Mail the contents of my email does not appear on the right side in mac maila

    In Mac Mail the contents of my email does not appear on the right side as it should. I checked all the settings, anyone ever had this problem before and going to knowwhat?

    Please, back up all data. Rebuild the mailbox.

  • New AOL e-mail: one quarter of the screen is blank on the right side, reducing the space for the e-mail subject line. Resize attempts do not work on the right side, so I can't expand the e-mail subject line

    The new AOL E-mail look, which yesterday began a quarter of the screen is blank on the right side, thus reducing the space for the e-mail subject line, which limits its usefulness. Resize attempts do not work on the right side, so I can't expand the e-mail subject line? Running XP pro and Mozilla Firefox 5. No problem with I.E.

    Thank you, these settings were already in place. AOL said now erase the cache, cookies and history... to solve, which worked. (I deleted the cache and a story time.)

  • "My Media" will not play on the right side of the screen

    I am currently working on a music video, and I'm trying to test - Watch clips from 'My media' to make sure they are what I want before putting them in the timeline at the bottom of the screen. The problem is that these clips are not displayed on the right side of the screen more. When I first load iMovie, they do, but then after that I look at some of my video in the timeline panel, right screen seems to be stuck on this and will play not the clips of "My Media", although I can hear the audio. It's very frustrating, because I'm basically at a point where I have to restart iMovie after each clip that I add to my video. Any help would be amazing.

    This is the first posting, I have seen with this problem. I can't duplicate although I do not see a hesitation before the video plays in the Viewer when I move the playhead on timeline to the media browser. I suggest you open iMovie, hold down the command and option keys and the removal of preferences in the window that opens.

  • I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help!

    I accepted the last update. Now, I can not display to the right of the main Itunes store, where top songs, etc would be. As the screen does not. Only on the HOMEPAGE of ITUNES STORE! Help! I've tried everything. Google it. Searched through itunes, etc. It MUST be a bug, because it started right after I accepted the 12.3.3 update on my laptop running Windows 7 32.

    I count on the part of the main screen, which is not. Its strange. PLEASE HELP ME! In addition to the main page of the Itunes Store, everything else works fine as before. Music from my library work screens, etc.

    I also have exactly the same problem since the last update. Tried to find a way to solve the problem but no luck. Someone please help!

  • Mouse pads do not respond to the right of the pad

    Is there another driver for my laptop to fix the mouse pad that is not responding on the right side of the mouse pad.

    If I use the left side of the mouse pad, it works and works so also on the right, until a few seconds the right stops working. I hope that makes sense!

    PC is a HP Compaq 15a003sa

    Hi all

    I fixed the problem with the mouse on this laptop.

    I have uninstsalled the Synaptics ps/2 driver mouse and then restarted laptop.

    After the start of microsoft mouse driver was automatically installed, and everything good with mouse now.

    For more information this laptop when new had windows 8.1 so the synaptics driver was OK.

    But with the new operating system of the synaptics mouse driver is not good for this laptop with windows 10.

  • After the system restore, the icons do not show on the desktop. How can I fix it?

    I uninstalled Google Chrome on computer Dell 1100 from my husband.  Shortcuts on the desktop then didn't work.  It seemed to me don't forget you must redo shortcuts after a restored system so I tried and the shortcut has not yet opened.  Then I did a system restore using 10/07/12 for the date of restoration.  After that there is now NOTHING on the screen/desktop other than her photo screen saver.  We followed the instructions found online to use the f8, keys, etc., and he has changed nothing.  Any other ideas?

    Hello

    Check out the link and follow the steps.
    Method 1:
    Check out the link and follow the steps.
     
    Your desktop icons are missing in Windows XP
    http://support.Microsoft.com/kb/330170
     
    Method 2:
    Follow the steps.
     
    Right-click on the desktop and choose "display icons. Check if the problem persists.
     
    Method 3:
    Check out the link and create a new user account and check if the same problem occurs after you have logged in to the new user account.
     
    How to create and configure user accounts in Windows XP
     
    If the problem does not occur in the new user account, then go to the link and follow the steps.
     
    How to copy data from a corrupted to a new profile in Windows XP user profile
     
    Method 4:
    Check out the link and follow the steps.
    Difficulty of broken desktop shortcuts and common system maintenance tasks
    http://support.Microsoft.com/mats/system_maintenance_for_windows/en-us
     
     
     
     

     
  • Windows7 when I migrated to the Working Group at the field of the firewall has crashed. And also it does not show in the services. In the firewall rules of incoming and outgoing traffic is missing.

    In my windows7 when I migrated to the task force to the area, crashed by the firewall. And also it does not show in the services. In the firewall rules of incoming and outgoing traffic is missing.

    Hello arjunpottekkad,

    It is disheartening to know that have problems you with the firewall. As I understand it the incoming and outgoing traffic rules are missing from the firewall.

    The question you posted would be better suited in the TechNet Forums . I would recommend posting your query in the TechNet Forums. You can follow the link to your question:

    Windows 7 IT Pro category

    Answer to us if you are having problems with the Windows Firewall or any other problem of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

  • Bridge does not open? Initially the 8.1 Win & problem had started. Have now earn 10 & still a problem with not to open the bridge?

    Bridge does not open? Initially the 8.1 Win & problem had started. Have now earn 10 & still a problem with not to open the bridge?

    Hi Matthew,

    If you use Bridge CC, update to the latest version 6.2. Adobe Bridge CC 6.2 version now available! Adobe content corner

    1. Please, do a right-click on the bridge on the desktop icon and select "Run as Administrator".
    2. If this does not help, reset the Bridge preferences and then try it.

    Steps: -.

    Start Adobe Bridge, and immediately press Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS down) until the dialogue box reset settings appears.

    Select all three options - reset preferences, reset Standard Workspaces and all miniature Purge Cache - and then click OK.

    Reference: troubleshooting errors, freezes | Adobe Bridge | Windows, Mac OS

    Let us know if it works.

    Kind regards

    Assani

  • I have some clips where does not show the audio waveform and others where the thumbnail to display the video does not show. THE possibilities of sight are checked in the Tools menu.

    I have some clips where does not show the audio waveform and others where the thumbnail to display the video does not show. THE possibilities of sight are checked in the Tools menu. Screen Shot2016-03-14 11_53_24.jpg I'm on a Mac Pro 2013. Latest version at all.

    Looks like without the audio element is a nested element.  You will need to restore the audio signal in order to see the wave forms.

    I have the same problem (sometimes):

    https://forums.Adobe.com/message/8527998#8527998

    Without rhyme or reason, as far as I can tell.

  • I have a Pavilion 6620f and it does not show me the type of motherboard. It lists only the DVT 2AB1

    I have a Pavilion 6620f and it does not show me the type of motherboard. It lists only DVT 2AB1 as the system board. How to find the right model MB?

    No, this isn't what I remember seeing at the same time. I downloaded a program called BeLarcx Advisor, he told me I have a FOXCONN 2AB1 DVT and I have an ATI Radeon 4200 in there.

Maybe you are looking for

  • F10 - create video DVDs from the recorded TV show

    When I try to create a DVD of a television recorded my Qosmio F10 program, I get the message next-"Media in the CD/DVD drive is not writable by Media Center"I know that the media is writable by the normal Windows but under Media Center Qosmio, it doe

  • NB100 Linux BIOS update

    OK, I found and downloaded the file to update the BIOS of Toshiba, I have not been able to find instructions on how to properly apply the update. For the Linux version, it is in the form of a .sh, however, is not a standard shell script. What is to b

  • empty pages

    Signature on Ebay and its use are ok but after using it for about 5 pages of research images disappear and the internet will slow down, and then freezes. I have to shut down the computer and restart before being able to sign out. I use El Capitan, an

  • HP Pavilion 15-p000su - how to install drivers on Windows 7 x 64? They do not exist.

    Hello I bought a HP Pavilion 15-p000su, with FreeDos. I installed Win7 x 64, but not driver for this model and operating system. There are only drivers for Win8. Product number: J2T31EA #AKS Could someone help me please? Specifications: AMD 8, QuadCo

  • Point of pinhole to the left of the touchpad on HP Pavilion. Is it supposed to be there?

    I need to know if the size of pinhole point is supposed to be on the computer next to the touchpad, or is it a default? What is its use? I have three days to return it if it is a fault.