TitleBorder with Icon - Is it possible?

Hi,
I have a Title border for a panel. I need to include an icon before the title.. Is it possible? How?
regards,
tom

I have a Title border for a panel.I suppose you mean TitledBorder.
I need to include an icon before the title.. Is it possible?Yes.
How?Extend TitledBorder and override paintBorder. Refer to the source code of javax.swing.border.TitledBorder for guidance.
This anonymous inner class displays a pink circle alongside the title:        panel.setBorder
                ( new TitledBorder
                (new LineBorder (Color.BLACK),
                "     Test Border") {
            @Override
            public void paintBorder (Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height) {
                super.paintBorder (c, g, x, y, width, height);
                Color oldColor = g.getColor ();
                g.setColor (Color.PINK);
                g.fillOval (EDGE_SPACING + LEADING + TEXT_INSET_H,
                        EDGE_SPACING + TEXT_SPACING,
                        10, 10);
                g.setColor (oldColor);
        });In this example, which will work ok only with the default title placement (TitledBorder.LEADING) in left-to-right locale I have provided space for the graphic by the simple expedient of including leading spaces in the title String. A more generalized solution would probably require recoding the entire method and omitting the call to super.paintBorder (...). Haven't tried it though.
db

Similar Messages

  • ALV GRID with icon fields. When exports to Excel, icon fields are emtpy.

    Hi all,
    In our SAP system (6.0 ECC) we've noticed the following behaviour:
    In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
    We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
    It's possible to have tha same functionality in this new version like in 4.7?
    Regards.
    Edited by: Ole ES on Nov 17, 2010 6:05 PM

    Hi,
    Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
    I think the integrated Excel mode shows '@08@'.
    Best regards,
    Guillaume

  • Tree with Icons

    hi, i need to hava a tree with icons in apex
    is it possible?

    hi, First of all You have to create table .
    CREATE TABLE "APEX_PAGES"
    (     "IDENTIFIER" NUMBER(10,0) NOT NULL ENABLE,
         "PAGE_NO" NUMBER(10,0) NOT NULL ENABLE,
         "PARENT_PAGE_NO" NUMBER(10,0),
         "NAME" VARCHAR2(4000) NOT NULL ENABLE,
         "NAVIGATION" VARCHAR2(100) NOT NULL ENABLE,
         "IMG" BLOB
         CONSTRAINT "APEX_PAGES_PK" PRIMARY KEY ("IDENTIFIER") ENABLE
    then create form with report on table apex_pages.
    Please note : - P20_IMG is an form item name...
    use following sql query for tree with image :
    select PAGE_NO id,
    PARENT_PAGE_NO pid,
    '<img src="'||*APEX_UTIL.GET_BLOB_FILE_SRC*('*P20_IMG*',IDENTIFIER)||'" />'||NAME name,
    'f?p=&APP_ID.:'||page_no||':&SESSION.' link,
    null a1,
    null a2
    from APEX_PAGES
    Also u can highlight the current node ................
    select PAGE_NO id,
    PARENT_PAGE_NO pid,
    CASE WHEN page_no = :APP_PAGE_ID THEN
    '<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P20_IMG',IDENTIFIER)||'" />'
    ||'<b>'||NAME||'<blink>'||'<font color="red">'||' <='||'</font>'||'</blink>'
    ELSE
    '<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P20_IMG',IDENTIFIER)||'" />' || NAME END
    AS name,
    'f?p=&APP_ID.:'||page_no||':&SESSION.' link,
    null a1,
    null a2
    from APEX_PAGES
    Cheers !!!!!

  • How to Handle Data with Icons

    I'm trying to create a directory of showroom locations and the type of products that they carry. I need an efficient way to manage the data (like an Access database) but I need to represent the product categories with icons. My team has drawn the icons in Illustrator and I have considered using a utility to create a custom icon font, but those custom icon fonts are web-fonts only and it appears that they cannot be used in the database directly.  The final output needs to be in a printable format. Any suggestions on how to solve this? Do I need someone to write a custom script to run in InDesign?

    Hard to say without seeing the layout, but perhaps Data Merge would work-- you can place images using data merge. Another possibility is to use some sort of text symbol, then use Find/Change to replace with contents of the clip board after copying an icon.
    Or make your own font with a better utility: Indiscripts :: IndyFont

  • Print ALV with Icons

    Hi Experts,
    Im creating a ALV Report with icons and so far so good but it's printing the icons...
    It's it possible to print a ALV with the icons or it only prints the code of the icon?
    Thanks in Advance
    Best Regards,
    João Martins

    It is not possible in SAP, but you can do a screenshot (PrintScreen button) and the print the screenshot.

  • MacBook pro will not boot up. Blank screen with message File is possibly corrupted. Checksum does not match etc

    MacBook Pro suddenly will not boot up. Blank screen with message File is possibly corrupt. Header checksum does not match, etc

    Hi s.cheslik,
    It seems your MacBook Pro will not boot properly and it displaying an error message. Based on the information you have provided, it appears your MacBook Pro needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    Apple - Support - Service Answer Center
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • How to Setup Forward Error Handling in PI Scenarios. Can you help me with the same with screen shots if possible?

    Dear all
    How to Setup Forward Error Handling in PI Scenarios. Can you help me with the same with screen shots if possible?
    Thanks
    Regards
    karan

    Hello
    These are the following errors
    1. Trace level="1" type="T">no interface action for sender or receiver found</Trace>
    2. <Trace level="1" type="System_Error">Application-Error exception return from pipeline processing!
    3.
    <Trace level="1" type="T">Application Error at Receiver... => ROLLBACK WORK</Trace>  
    <Trace level="1" type="T">System Error at Receiver... => ROLLBACK WORK</Trace>  
    <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />  
    <Trace level="1" type="System_Error">Application-Error exception return from pipeline processing!</
    Trace level="3" type="T">No persisting of message after plsrv call, because of config</Trace>Trace level="3" type="T">Error of the prevous version:</TraceTrace level="3" type="T">Error ID APPLICATION_ERROR</Trace>
    tThere are repeating errors also.
    TThanks
    Regards
    kkaran

  • Problem with Icons

    Hi!
    I'm trying to make a chess game, and I'm having the following problem.
    I have a JLayeredPane that contains a JPanel with other 64 JPanels inside. The pieces are JLabels with Icons.
    The problem is that when I begin a new game, the chessboard appears empty, with no pieces whatsoever, even though those labels are in place.
    If I try to resize just for a bit the main frame, the pieces appear on their positions just like they should in the first place.
    I've tried everything, but they just refuse to appear until I resize the frame (I should add that the chessboard is big enough for the icons to fit, so it is not this .... ).
    Can anyone help?

    So here goes:
    I have an intro frame that has a new game button. When the Button is pressed, I create the main frame, I put in the JlayeredPane and all the other panels and pop up a JDialog message, in which I request certain info. This dialog has an OK button, which should add the labels (with the icons) to the panels on the chessboard.
    I don't think the layout creates this problem, because I've seen it working with exactly the same stucture. The only difference I could see was the dialog box. So I'm guessing this dialog is creating the problem.
    PS: I don't have the code here, I'll get back with that later on.....

  • Good file-manager for OpenBox? (with icons)

    I tried rox with the magickthumbnails and videothumbmails, but havent got it working yet.
    I am now trying thunar, but it has dull generic icons.  Everything looks like a piece of paper.  I'm sure it'd look good if I was running XFCE.
    Is there a standard/common file-manager for use with openbox?  Preferably one with icons for different file-types.

    DonVla wrote:
    hi,
    i also recommend rox. fast and the drag'n'drop functionality is brilliant.
    the default layout is truely ugly. but you can change everything.
    i've changed the rox icons by hand:
    in my ~/.gtkrc-2.0.mine:
    # rox-filer toolbar icons
    pixmap_path "~/.icons/panel_icons/icons_2"
    style "normal" {
    stock["gtk-close"] = {{"close.png"}}
    # stock["gtk-close"] = {{"exit.png"}}
    stock["gtk-go-up"] = {{"1uparrow.png"}}
    stock["gtk-home"] = {{"gohome.png"}}
    stock["gtk-refresh"] = {{"redo.png"}}
    stock["gtk-zoom-in"] = {{"add.png"}}
    stock["gtk-zoom-fit"] = {{"stop.png"}}
    stock["gtk-jump-to"] = {{"bookmarks.png"}}
    # stock["gtk-sort-ascending"] = {{"bottom.png"}}
    # stock["gtk-help"] = {{"help-icon.png"}}
    stock["rox-show-hidden"] = {{"filter.png"}}
    stock["rox-show-details"] = {{"view_tree.png"}}
    # stock["rox-select"] = {{"select-icon.png"}}
    widget "*" style "normal"
    it's quite self explanatory .
    vlad
    ps:
    and that's what it looks like:
    http://img206.imageshack.us/img206/2949 … 24aak4.png
    That's a pretty cool setup u got there. Is that conky in the top centre? If so, mind sharing your .conkyrc.
    What Icon theme are u using? is that panel-thingy AWN?
    Could u also elaborate this line < pixmap_path "~/.icons/panel_icons/icons_2" > ?

  • I chose a theme and would like my home page to be a blank tab, but show the theme with icons on it instead of a white page. What is the use of having a cool theme if you never see it. Is this a posibility?

    I chose the theme purple moon. I was hoping that the home page could be set up customized with icons of my most used websites and tool icons where you can see the theme, but the only think I can set it to is a blank white page.

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • How to display the selection screen with icons as well as with text element

    How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..

    Report zex33.
    type-pools: icon.
    selection-screen begin of line.
    selection-screen comment 1(20) text_001.
    parameters: p_werks type marc-werks.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_002.
    parameters: p_whouse(10).
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_003.
    parameters: p_auart like vbak-auart.
    selection-screen end of line.
    initialization.
      write ICON_PLANT  as icon to text_001.
    concatenate text_001 text-001 into text_001 separated by space.
      write ICON_WAREHOUSE  as icon to text_002.
    concatenate text_002 text-002 into text_002 separated by space.
      write ICON_ORDER  as icon to text_003.
    concatenate text_003 text-003 into text_003 separated by space.

  • HT201272 connection with itunes is not possible

    hello,
    because my device was dead, i got a new one. and i want with my old account to download my purchased apps.
    i go on device app store, purchased, but when i add my password i get a message that connection with itunes is not possible??
    how to solve this problem?

    Refer to this article"
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368

  • Mail stopped working. Now get blank screen with icons (delete, file, forward, etc) at top. Then goes blank. iPad 2 purchase 12/11

    Mail stopped working. Now get blank screen with icons (delete, file, forward, etc) at top. Then goes blank. iPad 2 purchase 12/11

    Try to reset your ipad and/or force quit the mail app
    Reset
    Hold down the sleep and home keys for about 20 seconds. When you see the silver apple, let go and let it reboot. No data will be lost.
    Force close an app
    Double tap the home button. When you see the app previews on the screen scroll sideways if needed to get the preview in question on the screen. Flick that preview up and off the screen to close the app. Single tap the home button or home screen preview to exit the mode.

  • JButton with Icon question

    In the Toolbar I have a JButtons. I created the JButtons with Icons.
    When I click on a button it is putting a dotted line right around the Icon. How can I get rid of that? Thanks.

    You're talking about the focus rectangle. If memory serves in the SwingSet demo there's an entire panel devoted to buttons and such. You can find something there to help you. The toggle in the example is labeled "Paint Focus", and it does what you want.

  • Treeview datawindow with icon - performance issue

    Hi all,
    i have a treeview dw and have set the "use tree node icon" property with 2 different icons (bmp) at the first level (when the level is expanded or collapsed)
    Then a different icon (ico) file is used for the second level
    Unfortunately, this is causing a huge performance issue when i run the application.
    If i disable the "use tree node icon" property, everything works fine.
    Is there any known issues on the treeview dw with icons? any work around?
    am using pb11.2
    thanking you in advance,
    -a

    First question is which jdev version you are using?
    I made a quick test and did not see a long busy state.
    Run your app with -Djba.debugoutout=console as java option. You get more output in the log window, but may be some hint about what's going on.
    Timo

Maybe you are looking for

  • SRM PO - how to check Shipment/Goods Receipt/Payment

    Dear Gurus, I have to find if there is a shipment or goods receipt or payment against a SRM PO. My question is can I get these details in SRM or I have to come to ECC to check. If they are in SRM, please let me know where. If I have to come to ECC to

  • Problem with serial number on single edition

    Hello, We bought a single edition with the account : [email protected] We did received well the serial key but unfortunately we used it on another account : [email protected] All was going well to get the ipa and zip files. We uplaoded the file on it

  • How do I remove dirt from the illuminated apple on the chassis?

    Hi all - Asking a fairly insignificant (with regards to functionality, though if you're obsessive over cleanliness like I am, not insignificant at all) question with regards to cleaning slight dirt buildup around the edges of the illuminated apple on

  • Audio and Video are not synced up ONLY when viewed in full screen....?

    Audio and Video are not synced up only when I view my project in full screen. I can watch it in the project viewer the audio and video play as they should. I have a presentation tomorrow and I can't figure this out. What am I doing wrong?

  • MDM for Managing Master data for PP & QM Modules

    We have studied the various offerings of SAP MDM for Materials, Suppliers, Financials These are definitely areas where we would like to automate using MDM  and thereby improve Quality, Turn around Time and eliminate errors, redundancy etc. In these