Border problem

Hey all, I'm creating a customButtons using the basic model published by BB and I was wondering how to get rid of the border? I have spots of darker colours which generate a horrible color border when created, and I was wondering how to solve this problem.  I tried to create a border with custom XYedges, however this has no effect. What is the easiest way to solve the problem?

as always, thank you guys.

Maybe it's not the border.

It could be the focus or something that is painted in her object or paintBackground().

Try substituting the methods:

1 drawFocus

2 paint

3 paintBackground

And see if it has an effect.

E.

Tags: BlackBerry Developers

Similar Questions

  • 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?

  • Create a deep round border problem!

    Hello

    I have a FlowFieldManager with 2 fields inside. I want a rounded border. I tried with

    Border border = BorderFactory.createRoundedBorder(new XYEdges(3, 14, 3, 14), Color.WHITE, Border.STYLE_FILLED);
    ffm.setBorder(border);
    

    With the above code, I get a soft edge, but I want the curve on the left & right to be rounder. If I increase the value of left & right that is 3, the component is not visible properly. Components are installed using sublayout(), so the width and height of the Manager is stable.

    To resolve this problem, I think I had to use graphics.fillRoundRect (). I tried the following code:

    ffm = new FlowFieldManager(VerticalFieldManager.FIELD_HCENTER) {
                protected void paint(Graphics g) {
                    g.setBackgroundColor(Color.WHITE);
                    g.fillRoundRect(1, 3, getWidth(), getHeight(), 10, 5);
                }
            };
            ffm.add(txt);
            ffm.add(btn);
            add(ffm);
    

    With the above code, I see only a black area instead of the Manager of the ffm.

    Can someone point out where I'm going wrong and how to fix it?

    I can't wait to figure out this problem. Any help is appreciated.

    Thank you

    Try this

    protected void paint(Graphics g) {
            int oldColor = g.getColor();
            g.setColor(Color.BLUE);
                g.drawRoundRect(1, 1, getWidth(), getHeight(), 24, 24);
                g.setColor(oldColor);
                super.paint(g);
                }
    
  • 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

  • Table border problems...

    I'm embarrassed to ask this question, but I can't seem to find the answer to one of my books.

    I have a table of several row defined with borders and there are two problems:

    • When the new line is added to the current row in the table, the border between the two rows is doubled.  BORDER = "1" is fine on the edges; There is just this line dubbed boring between the lines.  I tried BORDER = "1,1,0,1", but that has not worked at all.

    The next roblem I wouldn't have noticed except for the fact that I'm going to put a background color on the lines:

    • When there is no data in the cell in the row, there are no borders.  This leaves a really funky screen - watch, because populated cells have the border, and not uninhabited cells: their border is white!

    Here is the definition of the table:

    < table align = "center".

    border = "1"

    BorderColor = 'blue '.

    cellspacing = "0".

    CellPadding = "2".

    width = "95%" >

    < tr = "lightblue" background

    Color = "black" >

    < td width = "125" >

    #StructData_Line.Common_Label #.

    < table >

    etc., through several cells

    < /tr >

    < /table >

    Any suggestions?

    Hello

    Another thing that surprised me is that CSS apparently can't stand the table on the page of centering?

    He supported by centering the table, you should try something like that.

    (i) create a class in your css like that,

    table.alignCenter {margin-left:auto; margin-right:auto;}
    

    (II) and in your coldfusion page call the defined class (in your)

    Tag)

    The attachment shows the latest version, which still has the double thickness between lines.

    Try adding,

    border: 1px solid black;

    in all your

    ,definitions of class in your CSS file like this,

    table
    {
         border: 1px solid darkblue;
         width: 90%;
         align: center;
         border:1px solid black;
         border-collapse:collapse;
    }
    
    td
    {
        padding: 5px;
        border:1px solid black;
    }
    
    td.td1175
    {
        width: 175px;
        border:1px solid black;
        background: lightblue;
    }
    

    HTH

  • Navboar border problem

    Hello
    I've created a navigation bar with the behaviors of overview and click. All the these work very well, with a minor problem. When I actually click the links a 1px dashed border appears around the button. All borders are set to zero, and yet it still happens. It seems to happen in all types of browser with slight variation.

    I'm sure it's a simple problem, but I paint a blank on how to solve this problem. Any tips?

    Thank you

    Maybe:

    "akgbob" wrote in message
    News:f4ndtc$9gs$1@forums. Macromedia.com...
    > Hello,
    > I have created a navigation bar with rollover and click behaviors. All of these work
    > fine,.
    > with a minor problem. When I actually click the links of a 1px dashed border
    > appears around the button. All borders are set to zero, yet this still
    > happens. It seems to happen in all types of browser with slight variation.
    >
    > I'm sure it's a simple problem, but I paint a blank on how to solve this problem.
    > Any
    > advice?
    >
    > Thank you
    >

  • Spry Menubar border problem

    I am new to CS4 and the Spry menu bar. I have successfully built a vertical menu, but can't get rid of the border on three sides of it:

    http://www.nhawley.com/menuproblem.htm

    If I use a pale background, the border becomes invisible, but this isn't really acceptable workaround.

    Any help would be much appreciated.

    In you spry bar menu css file to change this rule to read - border: none;

    /* Outermost menu container has borders on all sides */ul.MenuBarVertical{     border: 1px solid #CCC;}
    

    PZ

  • Publication in border problems.

    When I want to publish and I go into file > publish publish it remains greyed out.

    How can I activate it?

    Thank you.

    ... also, you saved your publication animate again? (e.g. file > save)

    You must save the project before you can publish.

  • Vsync satellite M30 problem

    I have the centrino 1.6 with 64 MB fx go5200 15.4 "widescreen m30. You can use the new nvidia drivers like 66,10 but only those modified that you can easily find on the net.

    The main problem is that you cannot change the refresh rate that he is stuck on 60 Hz. For this reason, rates of frame for all games are 60 Hz and very slow, even if you use the refresh rate overrides.
    There must be an option to disable similar to menu opengl vsync. I tried the 3rd party applications such as NVRefreshTool 2. 1A, but it didn't fix the problem.

    Anyone has a solution on this. By the way there is a solution on the net about this black border problem that some have. You must search for it.

    As far as I know that Toshiba display driver are supported as the those of Nvidia are not for laptops!

    Do you have this problem with a Toshiba driver held, too?

    What operating system and Service Pack you are using? For XP SP2 might occure problems with different drivers, so you need to update!

    CAMPino Bye

  • HP Photo smart 5510: printers and all UNITS

    After scanning, the background of the page came in gray and not in pure white.

    So I was running the printing software HP and doctor Scan. The gray background problem solved but new problem started. After scanning left and upper paper edge is done with a thick black border. This problem wasn't there before execution of the HP Print doctor and South American.

    I had re - run the same software, but this dark page border problem continues.

    Must enjoy getting the solution.

    Concerning

    RTP964

    Hi @RTP964,

    Welcome to the Forums of HP Support!

    I understand that you are unable to scan without border around the images. I'd be happy to help you and don't forget to come back to this thread and check "Accept as Solution", if I have successfully helped solve you the problem. If you want to say 'Thank you' to my effort to help, click on the "thumbs up" to give me a Kudos.

    I would ensure that the printer gets the right amount of power.

    I would like to do a hard reset to see if that will solve the problem.
    Let the printer and disconnect the printer cable and the wall socket for 60 seconds.
    Reconnect the power cable to the output of the printer and the wall, and not a surge protector.
    This ensures that the printer is full on and can help this situation.

    • Make sure that the printer is connected directly to a wall outlet. (do not use a hub or a surge protector) This ensures that the printer is full on and can help this situation.

    Make sure that the scan cover is closed so that the light can seep into the analysis.

    Also, please make sure that the "scanning area of any" selected in the settings of scanning, non-personalized.

    Please see the pictures below.

    If you're still having problems, please post a screenshot of an example of scanning and your scanning settings.

    Confirm that you are able to make a copy without it producing the border.

    Please reply to this message with the result of your troubleshooting. I can't wait to hear strings attached good luck!

  • Tags: spacing before and after

    I had h1 tags and h2 works very well (that is, with space remove before and after tags), using this code:

    H2 {color: #000000; padding: 0px; margin: 0px; do-family: century gothic; police-weight: normal; do-size: 17px ;}}

    H1 {color: #FF0000; padding: 0px; margin: 0px; do-family: century gothic; police-weight: normal; do-size: 20px ;}}

    But when I added a h3 tag using the same code:

    H3 {color: #FF0000; padding: 0px; margin: 0px; do-family: century gothic; police-weight: normal; do-size: 14px ;}}

    tag spacing normal H reappears after the h3 tag.

    Code for the table which follows the h3 tag is (in the case where it's sort of throwing objects off the power):

    < table class = "special" width = "804" cellpadding = "0" cellspacing = "0" style = "background-image: url(images/flag-exta.jpg)" "

    Only other change I made to the coding as the h1 and 2 labels worked without spacing between them has been to add css coding to solve a border problem, now solved:

    table. Special {border: 3px solid #999 ;}}

    table. Special td {border: none ;}}

    Can't see how more the question of spac h3 code in the table following the h tags or css coding of effects (if I delete the two codes that I still have the problem of space h3).

    Its replacement by " display:inline;' coding for" padding: 0px; margin: 0px; "makes no difference either.

    Appreciate a lot any guidance. Thank you.

    What is happening is that browsers are automatically insert a line break between two tables. Your h1, h2 and h3 are in a single table and the 'special' table is separate.

    Use tables for layout is not a very good idea, especially if a single text is involved. The 'special' table can be an exception.

    Without pulling your entire page, there are two ways you can solve this problem.

    • Remove the table that contains the h1, h2 and h3 headings and make the first line in your "special" table
    • Change the value of margin-top in the special class to margin-top:-1em; (less 1em).

    Also there is a mistake in your CSS online 79. There is a comma after "Times New Roman".

  • lightbox in DW cs6

    Hello

    I tried to make a gallery lightbox with the use of the widget. But when I insert the thing in my page (which uses a model by the way). Between the normal thumbnail background and photo. a strange border appears which is the same color as the background of the gallery.

    in live mode view the lightbox works but still these weird borders (although I don't customize the widget (like orange or more) it always appears with borders.i Preview in browsers, ie, firefox and google chrome. It also does not work correctly.)

    in firefox: the bottom of the Gallery is much smaller than the original and the thumnails are larger, so it's Gallery, as well as the images that say: flower, tree, and then boxes without text. so why is it text, and why is there not an image? in live mode view, there are images, but with this strange frontier

    so in google chrome: the height of the Gallery is correct but still no image displayed and this weird at the border again. When you click on the image it is a pop-up, but not with an image, not just a small box of photo.

    in IE: same problem as google chrome, but when you click on-> a new page with "cannot display page" appears.

    so a few questions:

    -How can I solve the border problem with this strange

    -How can I fix the problem with browsers?

    you could see my page at the: http://www.stichtingbidadari.nl/fotoalbum.html

    It would help a lot if you would look at it.

    I also tried with another tutorial to make the lightbox 2. It is very user friendly, but there is also the problem with displaying in internet explore

    not serious
    I made the changes you suggested andi tried to understand why the images are not displayed. but they refer to the map in live mode and the right image view, they are displayed.

    "Curiously html file:"Lightbox GalleryWidget_schoolreis.html ' is displayed correctly in chrome and firefox (except ie, the image is always in a new page loaded and not in a lightbox). (I save the lightbox in my root folder.)

    so, if I open the html code in chrome and firefox work, but why: if I drop and drag the light table of the widgetbrowser in place in my Web page, it does not work? I don't understand.

  • Border background printing problem

    Hello. Using MS Office Professional 2007 on Vista with the HP Deskjet F2180 printer. Problem is every time when you print a document with page border word, the bottom border is not printing. The other borders print well. Tried to adjust the sizes of margin and the border without success.  Any help would be appreciated. Thank you.

    Hi HP_User,

    I looked at the patch you mentioned in your post and it says ' accuracy margin print: solves the issue of the last line of text is cut for HP Deskjet D4200 ".  So, it looks like the fixed part of the margin of the patch is specifically for the D4200.

    Have you tried to disable bidirectional support?

  • T400 border display (warranty?) problem

    Hello

    I have a problem with a small gap at the border from the edge at the bottom right of my screen of ThinkPad. It is about 5 cm long and 1-2 mm wide. Seems to me that there is little missing glue. The laptop was bought a few days ago. If anyone has experienced the same problem or knows if a (relatively) little problem is covered by the warranty?

    T400 display away from the border on imageshack

    Thanks for the replies. I sent my computer laptop to a local service provider and if everything goes well it gets repaired (it seems that this problem is covered by the warranty). The only downside is that it takes about 2 weeks...

  • U2412M, border of screen problem

    Hello

    My Dell U2412m has this problem where the edges of the screen (I mean within the visible area, not the covers) displayed a configuration stripped during cold boots. To be precise, these border areas appear foggy/cloudy motive which disappears slowly after about 10-15 minutes of use, but come back every time I start the monitor. I had this problem for some time. Would appreciate any suggestions to get this rectified issue.

    Bakli

    The monitor passes the self-test and SUBMISSION (built-in Diagnostics), page 42?
    * If Yes, the monitor is not defective. Turn to the graphics card Driver graphics card, or wiring.
    * If not, get the monitor exchanged if still under warranty.

Maybe you are looking for

  • My iPhone does not load unless the cable is placed just to the right and the phone is still completely. Advice?

    Hey everybody. Since a few days, I have had a hard time charging my iPhone. It all started when my phone onto my computer. He suddenly began to vibrate, and the charging symbol flickered on and outside. Since then, I had to mess with the power cord p

  • Data allowance

    I'm with o2 UK network. I am there with heavy data in excess of 100MB per day. My use of the reports less than 100 MB per month. Something is clearly wrong. I guess the phone is a hemorrhage of data. I expect better than the alpha software!

  • HP 3125

    I have a HP 3125 with a bios password I forgot that the disabled system code is 72750261. Can someone help me get rid of the password of the bios so I can use my computer again?

  • Windows was not able to find any backup sets

    My hard drive crashed yesterday. I knew it was coming and made a full backup of the system using Microsoft Backup and Restore last thing before it crashed. I backed up on my external hard drive. I replaced the failed hard drive and reinstalled Window

  • My webcam does not work on my Asus k73e-bbr7

    My webcam worked perfectly well, I've had this laptop for about four months now with absolutely no problem.It works when I open LifeFrame and a few other things, but it won't work with Skype and some other programs, it says it is not a webcam detecte