Problem with setBorder in a buttonField custom

Hello world

I have a custombuttonfield and I FOCUS put border for NORMAL, ACTIVE, and DISABLED using:

field.setBorder (ButtonField.VISUAL_STATE_NORMAL, BorderFactory.createBitmapBorder,...);

The thing is that there is a scenario in which the button will not change until its border of development, he stays with the same active border when it is on focus. If I add just a button on the screen, it works fine, but if I add another component the focus state does not work. Is it something related to the method of paint used in the component that was added previously? The two components (button and customlabelField) are added to the manager (verticalfieldmanager) of the delegate.

Any help would be appreciated

Thanks and greetings

Can you post an example that demonstrates this behavior, here or in The Issue Tracker?

What model of Smartphone BlackBerry and the BlackBerry terminal software version you test on?  You can find this under Options, all on the BlackBerry Smartphone.

Tags: BlackBerry Developers

Similar Questions

  • Problem with sleep, cannot identify the customer in ALF

    Hello!
    I have primary and standby DB (10.2.0.1, OEL5.3 x 64 primer, sleep on OEL5.3 itanium)
    Almost everything is fine, but sometimes I have this problem:

    FAL [Server]: cannot identify the customer in ALF, null string provided

    [ORA-07445: exception encountered: core dump [< 0x3f4b370560 >] [SIGSEGV] [address not mapped to object] [0x403FE6D3A60] []]


    Piece of newspaper of primary alerts:

    Wed Mar 25 15:00:30 2010
    Thread 1 cannot allot of new newspapers, sequence 30980
    Private stream flush is not complete
    Currently Journal # 4, seq # 30979 mem # 0: /sdd/oradata/a10/redo04a.log
    Currently Journal # 4, seq # 30979 mem # 1: /sdc/oradata/a10/redo04b.log
    Thread 1 Advanced to record the sequence 30980
    Currently journal # 5 seq # 30980 mem # 0: /sdd/oradata/a10/redo05a.log
    Currently journal # 5 seq # 30980 mem # 1: /sdc/oradata/a10/redo05b.log
    Wed Mar 25 15:00:37 2010
    FAL [Server]: cannot identify the customer in ALF, null string provided
    Wed Mar 25 15:00:37 2010
    Errors in the /app/oracle/admin/a10/udump/a10_fal_957.trc file:
    [ORA-07445: exception encountered: core dump [< 0x3f4b370560 >] [SIGSEGV] [address not mapped to object] [0x403FE6D3A60] []]
    Wed Mar 25 15:00:47 2010
    ARC3: Standby redo log file selected for thread 1 sequence 30979 for destination LOG_ARCHIVE_DEST_3


    Piece of a10_fal_957.trc:

    ALF Redo shipping Client does not have a network connection
    Exception signal: 11 (SIGSEGV), code: 1 (address not mapped to the object), ADR: 0x403fe6d3a60 PC: [0x3f4b370560, cannot find s$]
    < 0x3f4b370560 >]


    The primary settings:

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    fal_client string a10sb
    fal_server
    log_archive_config string
    string log_archive_dest_3 = a10sb service
    log_archive_dest_state_3 string ENABLE
    log_archive_format string %t_%s_%r.dbf


    Piece of standby alert log:

    Media, recovery waiting for thread 1 sequence 30979
    Wed Mar 25 15:03:03 2010
    Pick up the empty sequence in thread 1, sequence gap 30979-30979
    FAL [client, MRP0]: error recovery 3113 archived redo log of the a10
    Wed Mar 25 15:03:04 2010
    Errors in the /app/oracle/admin/a10sb/bdump/a10sb_mrp0_15411.trc file:
    ORA-03113: end of file on communication channel
    Wed Mar 25 15:03:13 2010
    RFS [6]: Eve successfully opened journal 1: ' / sdd/oradata/a10sb/redo01a.log'
    Wed Mar 25 15:03:34 2010
    Online Redo Log recovery: thread 1 mem Group 1 Seq 30979 reading 0
    Mem # 0 0 error: /sdd/oradata/a10sb/redo01a.log
    # 1 MEM Err 0: /sda/a10sb/redologs/redo01b.log
    Wed Mar 25 15:05:03 2010
    Media, recovery waiting for thread 1 sequence 30980

    Sleep settings:
    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    fal_client
    fal_server string a10

    What is going on?
    Why "ALF redo shipping Client not establish Network Login" does it happen?
    And how I can fix without path?

    A big thank you!

    Dmitry

    FAL_CLIENT is an entry of tns for the current instance
    FAL_SERVER is an entry of tns for example where RSF fetch missing archive logs.

    Please provide both side sleep. Make sure you have them in file tnsnames.ora pending

  • Problems with call connected to the customer

    Hi all, long time administrator/user of the Service Manager/Infra, for the first time poster

    Came across something the other day and was just after some help/help where possibly seek to solve.

    We are currently on version 9.1.3. When installing more than 2 years ago I created a post template specific for the call connected to the customer (call screen set/IPK). I tested this on setup and I'm 100% sure used to work, but seems somehow its has stopped working. I tested it on 3 scenarios as shown below, and it only sends the confirmation message to the client when we use the customer portal;

    • Call created directly within vSM - send an e-mail to customer record
    • Mail sent to our servicedesk - send an e-mail to customer record
    • Created via the customer portal - sends an e-mail

    Could someone point me in the right direction that maybe why this happened and how I would go about solving of this? What is the feature in the MSM that allows it to be sent through the portal?

    Appreciate any feedback

    See you soon

    Each message model used in Workflow IPK rules should be specified as "IPK Workflow — Notification" message type.

  • Problem with the disconnection of the customer

    Hello, I installed vmware ESX 3.5.0 server build 158874 a vcenter 2.5.0 build 174768 2and vmware view 4.0.

    every day the client disconnect server vdm. I see this error on the vdm server:

    Event of VMware View ID 104

    (F69B60DFEE328A0C22DC2BF98D8970DF) Carrier 1 IOException. Remote address is zero: an existing connection was to be closed by the remote host

    I control the network for problem but nothig is false.

    any idea or suggestion to determine what is the probem?

    Thank you very much

    Hello

    Please look under Server connection

    -Configuration

    -Global Settings

    Here is the Session timeout point.

    Default value is 600 minutes, and after that the connection will be closed.

    So carry on thr time as you need.

    MCP, VCP

  • Problem with download of the COMMON customs tariff

    Hello

    I have a problem to download all the programs in the creative cloud for teams.

    Whenever I do to download nothing happens and it is displayed:

    AAM :/ / SAPCode = KCCC? productVersion = 2.0

    Hello

    A few questions:

    1. you are trying to download Adobe Creative cloud app or Adobe Apps after the launch of the cloud of creating Adobe?

    2. what operating system do you use?

    3. start please try this thread: http://forums.adobe.com/message/5459805

    Ankit

  • Problem with a Bitmap image in a ButtonField (get a 104 NullPointerException error)

    Hi, I'm a beginner in programming BlackBerry Apps, well...

    I tried to create a simple ButtonField customized with a bitmap inside, but I constantly get an error 104 eception: NullPointerException, here is my code to field custom buttond.

    import net.rim.device.api.ui.component.ButtonField;import net.rim.device.api.ui.Graphics;import net.rim.device.api.system.Bitmap;
    
    public class CustomButtonField extends ButtonField{  
    
      private Bitmap imagen;
    
      CustomButtonField(Bitmap imagen, long style){
    
          super(style);     this.imagen = imagen;                     }
    
      public int getPreferredWidth(){
    
                    return 60;        }
    
      public int getPreferredHeight(){
    
          return 60;        }
    
     protected void paint(Graphics graphics) {
    
          graphics.drawBitmap(0, 0, imagen.getWidth(), imagen.getHeight(), imagen, 0, 0);   }
    
       protected void layout(int width, int height) {
    
          setExtent(getPreferredWidth(), getPreferredHeight());
    
        }  }
    
    import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.system.Bitmap;
    
    public class PruebaScreen extends MainScreen{    
    
      private CustomButtonField boton;
    
      PruebaScreen(){
    
          Bitmap imagen = Bitmap.getBitmapResource("res/img/icon.png");     boton = new CustomButtonField(imagen, 0);     add(boton);
    
      }}
    

    I suspect that my problem is due to the method of painting or the page layout, I don't know... I hope someone can help me, thank you very much in advance.

    Check if your getBitmapResource returns any non-null Bitmap image.  Specify the path correctly may take a few tries ("' / res/img/icon.png '," img/icon.png", etc.")

  • Problem with pointstyle custom

    Hello, I want to create a pointstyle customized for my plots scattergraph. I want to create a rectangel with a black border.

    I have read the following of section http://zone.ni.com/devzone/cda/tut/p/id/10526 and that it really helps.

    But there is a little problem with the black border. The following diagram shows this problem, that the border is only on the 2 sides of my rectangel.

    This is my code in my tiny class.

    class BorderPointStyle of Ref: NationalInstruments::UI:PointStyle
    {
    public:

    BorderPointStyle (void)
    {}

    public: virtual void Draw (Object ^ context, PointStyleDrawArgs ^ args) override
    {
    Graphics ^ g = args-> graphics;

    Rectangle rect_b = Rectangle (0,0,7,7);
    Rectangle rect_i = Rectangle (0,0,6,6);

    System::drawing:pen ^ pen = New System::Drawing:Pen (Color::Black);
    g-> FillRectangle (gcnew SolidBrush (args-> Color), rect_i); Draw the innerarea

    g-> DrawRectangle (pen, rect_b) ;// draw the border

    }
    };

    Maybe someone has a resolution of my problem

    Hello-

    Your points are currently limited by the PointSize property.  You can change your code as follows:

  • problem with Internet connection sharing, error: connection ad - hoc has "no internet access" on the cell phone of the customer

    Original title: problem with Internet connection sharing

    my laptop running on Windows Vista Home Premium SP2 (this one has access to the internet by using the dial-up modem and will to act as a sharer of internet connection or as a host) and the client computer runs on Windows 7 Starter

    in a first step, I try internet connection sharing, I've set up an ad hoc network and I just changed my setting modem dial-up on the sharing tab, of course what I change, it of 'Allow an other network users to connect through this computer internet connection' and choose the on Home Networking connection wireless network connection , then my mobile client to connect to a special that I created and portable client connected to the internet via ICS
    then the problem came when I restart my laptop. When I tried to use ICS once again, my customer laptop really takes a long time to connect, he continues saying 'identification' side host and client. and after that "identify" is complete, it says ad - hoc connection, I create has "no network".
    so, I'm a person answer in this forum
    ' Obtain an IP address automatically is the wrong setting on the Ethernet connection. "  To return to the sharing tab and unshare the wireless connection.  Close all windows network, and then open them and re - share the wireless connection.  Who must configure IPv4 for the Ethernet connection properties for:

    IP address: 192.168.0.1
    Subnet mask: 255.255.255.0
    Default gateway: no
    "DNS server: none.

    I put this on my laptop of the host, and and I put the IP address on my laptop customer in 192.168.0.2 with the same default gateway as my portable computer host IP
    and made some progress in this case, when I try to connect host and the client is no longer to 'identify' phase, immediately connected laptop both but my mobile client can not connect to the internet and displays "No Internet access" on the ad hoc network, I have create

    I tried a lot of things but always completed my mobile client can not connect to the internet and displays the message "no Internet access.

    What makes me confuse is first, I try to share the internet connection everything works like a charm, I set up an ad hoc network, and then change the setting on my modem dial-up so he can share the internet connection, and voila, computer laptop client connected to the internet. I change even not all IP settings
    But why after I restart my PC, this problem comes...
    someone knows how to help me with this problem?

    Hey, Mimbs,

    You can try the similar thread to the next with a possible solution:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-networking/no-Internet-access-in-the-client-machine-when/77312e09-4385-41FA-A420-0c42be58e4e3

    Also for reference:

    http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows

  • Problem with download custom to CSV in APEX

    Apex: Apex 4.2

    Oracle 11g

    Listener of the apex.

    Hello I have a general problem with export to CSV using a custom process of pl/sql manual tabular.

    I can't use the native 'Download' option because it will not be exported my textbox objects to CSV

    So I have a custom download process that calls another page which has a prior to the process of the header as follows:

    
    

    HI INAMIK

    I think you need to update your code to place your fields exported with '. '.

    For column headings

    htp.prn('"Month/Year","Bonus","Actual Bonus Distributed","Date Distributed"'||chr(13));
    

    For data

    htp.prn('"' || x.MONTH_DATE|| '","' ||x.RVU_BONUS || '","' || x.SIX_MO_BONUS_ACT || '","' || x.BONUS_DIST_DTTM || '"' || chr(13));
    

    I hope that solves your problem

    Concerning

    Mahmoud

  • Problem with Microsoft account won't let me sync between desktop PC and laptop (Windows 8) custom settings

    Hello
     
    Synchronization of the custom (for example, my desktop background) settings does not work between my desktop PC and my laptop and vice versa (both running Windows 8). I use my Microsoft account (so no premises) on both devices and have already checked the relevant synchronization (which are lit) settings. In addition, I used the "microsoftaccounts.diagcab", however unsuccessfully fix tool:
     
    Troubleshooting completed, problems found:
    • Problem with the Microsoft account strategy: don't not fixed
    • Some settings have disabled sync: detected (which is false)
    • Customization have disabled synchronization (which is false)
    • You have reached the daily quota of the synchronization. The quota of synchronization fade gradually. Please try again later.
     
    However, as a matter of fact sync was working, after I had created and used a new account from Microsoft on both devices. so I suspect something to be a problem with my original Microsoft account. Could you please check this account on your site and let me know your results?
     
    PS My original Microsoft account (that I created there) is the same account that I used to connect to this forum. If you need more information, please let me know!
     
    Thanks in advance!
     
    Kind regards
    Victor Alberts.

    It worked perfectly for me:

    Follow these steps:

    1. Make sure that the synchronization of personal settings is enabled on all the PC associated with your account
    2. Go here and follow the instructions: http://skydrive.live.com/win8personalsettingsprivacy
    3. Wait a day or two
    4. Do this it fixes going in charms bar and selecting settings-> change PC settings.  On the accounts section, there is a link under your Microsoft e-mail account called 'Disconnect '.  If you click on it and follow the instructions create you a local computer account and then log off from Windows.  Once you connect with your local account, go back to the account settings and reconnect to your account.

    Solved all my problems of synchronization.

    I hope this helps for you also!

    Robin

  • Custom report model - problem with summary

    Hello

    I've created a report with the custom template.  Everything seems okay except that the 'Sum' section (marked in red below) containing the header entries.  I think, I might have placed the scripts in the wrong places bu tnot able to understand.  What I expect is, the total value of the 9,920.00 show with label - "Total: '."

    img 1.png

    Only under sections are filled in the template, the rest is blank.

    Line 1 a - model

    <tbody>
    <tr> <th>Receipt No.: <td id="rpt_no" colspan="2">#RECEIPT_NO# <th id="rpt_dt">Receipt Date: <td>#RECEIPT_DATE#
    <tr> <th>Description: <td colspan="4">#DESCRIPTION# </br> #CHQ_DD#
    <tr> <th id="tab_head">A/c.CODE <th id="tab_head" colspan="3">HEAD OF ACCOUNT <th id="tab_head_amt">AMOUNT
    <tr> <td>#ACCOUNT_CODE# <td colspan="3">#ACCOUNT_NAME# </br> #INSTALMENT# </br> #PARTICULARS# <td class="num">#AMOUNT#
    

    Line 2 - model

    <tr> <td>#ACCOUNT_CODE# <td colspan="3">#ACCOUNT_NAME# </br> #INSTALMENT# </br> #PARTICULARS# <td class="num">#AMOUNT#
    

    Front lines-

    <div class="report-1" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#">
    <table>
    <tr>  <th id="comp-name" colspan="5">&G_COMPANY_NAME.
    <tr>  <th id="comp-adr" colspan="5">&G_COMPANY_ADDRESS.
    <tr>  <th id="comp-adr" colspan="5">&G_COMPANY_PHONE.  &G_COMPANY_EMAIL.
    

    After the lines-

    <tbody class="uReportPagination">
          #PAGINATION#
      </table>
      <div class="CSV">#EXTERNAL_LINK##CSV_LINK#</div>
    </div>
    

    Please let me know how to solve my problem.

    Thank you and best regards,

    -Anand

    anand_gp wrote:

    And Yes, it is built in formatting of column sum-

    Who does not work with a named column template customized. You must calculate the sum in the report query and place the result in the report by using another conditional model.

    See the sample application I've created in your workspace apex.oracle.com.

  • Facing a problem with writing the custom for WLS identity assertion provider

    I am facing a problem with writing the custom for WLS identity assertion provider.

    Requirement:

    Asserter identity configured in WLS should get called when the following cookie is sent in a request by my application
    cookie name: OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I added the name of the cookie as a token of support and Active token in WeblogicCustomIdentityAsserter.xml

    < MBeanAttribute
    Name = "SupportedTypes.
    Type = "java.lang.String [].
    Writeable = "false".
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >
    <!-ActiveTypes attribute contains the subset of your mbean SupportedTypes who are active in the area. ->
    < MBeanAttribute
    Name = "ActiveTypes".
    Type = "java.lang.String [].
    Default = "new String() {& quot; OAMAuthnCookie_blr1234567.idc.oracle.com:7777 & quot ;}.
    / >

    Problem:

    Identity asserter provider is not invoked for the request that has the cookie named OAMAuthnCookie_blr1234567.idc.oracle.com:7777.

    I did some experiments with the cookie name, to see where the problem could be

    Identity asserter provider is triggered for the following cookies:
    OAMAuthnCookie_blr1234567.idc.oracle.com7777.
    blr1234567. IDC. Oracle
    blr12_XXX. IDC. Oracle.com

    and it does not work for cookie name - OAMAuthnCookie_blr1234567.idc.oracle.com:7777

    I think that the name of the token supports not the colon. I don't have control over the name of the cookie, two points will always be

    Tried it with giving the name of the cookie after the encoding of the colon

    < MBeanAttribute

    Name = "SupportedTypes.

    Type = "java.lang.String [].

    Writeable = "false".

    Default = "new String() {& quot; OAMAuthnCookie_blr2211441.idc.oracle.com & #58;. 7777 & quot ;} »

    / >


    But still does not work
    Am I missing something? Any help will be appreciated.
    Help, please!

    colon ': ' is an illegal character in the name of the cookie.

    RFC 2616, Section 2.2 says:

    token = 1 *.

    separators = "(" | ")" | " <" |="" "="">" | " @"

    | "," | ";" | ":" | " \" |<">

    | "/" | "[" | "]" | "?" | "="

    | "{" | "}" | SP | HT

    It is clear ":" a "separator" and thus not allowed in a token or a cookie name.

  • Hi, I have a problem with the download trial version of adobe after effect cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support

    Hi, I have a problem with the download trial version of adobe after effects cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support. What seems to be a problem? Thank you

    Please try after effects configuration required for Mac OS and Windows

    Concerning

  • Problem with edit &gt; Define Custom Shape

    I have a dialog box that appears and indicates "unable to complete the command set of custom shape because of a program error". Does anyone have the same problem?

    Thank you

    VB

    HI, I had the same problem with the latest version of PS. I fixed it in this way:

    1. familiarize yourself with the tool Panel.

    2. click hold in the lower part of it, when there is an icon with 3 points, and choose edit toolbar

    3 TheCustomize toolbar appears. In the column of Extra search tools the shape tool customized and drag and drop it into the column of toolbar

    3, tap done.

  • There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    Why?

    Please tell us what Adobe application you are trying to download. Please try creative cloud install app - https://helpx.adobe.com/creative-cloud/help/install-apps.html

Maybe you are looking for