Text on panel

hi all
iam having a class which extends panel , and i am painting few lines of text on it using drawString(...) method,now i want to read the text some how.b'cause i want put URL on the panel as one of line and open it when that line is clicked.please note i dont want to use altrenatives like using Labels or textcomponents etc, input on this will be helpful.

Why don't you save the line of text that represents the URL in a global variable and just use that variable when the user clicked on whatever you allowed them to click on to link to that URL?
If you don't understand what I'm trying to tell you, post the code so we can see where you need to make the adjustment to do what you wanted to do.
V.V.

Similar Messages

  • Text wrap panel blank.

    I'm have trouble with the text wrap panel. When I open up the panel there is no options. Just a blank panel

    http://forums.adobe.com/thread/526990

  • ID CS2 - Text Style Panel plug-in reinstall

    It says "cannot load outputmiscui.framework because it requires text style panel. please install text style panel plug-in and restart"
    i already have it on my computer, but i guess it is bad, so where would i find this plugin?

    The problem was the <jsp:root> tag. Removed this tag and modified <af:document> to the following so that namespaces are declared :
    <af:document xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:ui="http://java.sun.com/jsf/facelets">
    Page now renders properly using facelets.
    Message was edited by:
    mjc

  • How to align text in Panel Box to the center

    Hi,
    I would like to align the text in the Panel Box to the center. Here is my code snipplet:
    +<af:panelBox text="22" id="pb8"+
    titleHalign="center" ramp="highlight"
    background="dark"
    icon="/images/warningind_active.gif"
    showDisclosure="false"
    contentStyle="height: 50px; width: 100%; horizontal-align:center;">
    +<f:facet name="toolbar"/>+
    +<af:outputText value="Update RFC with Approval Info"+
    id="ot8"
    inlineStyle="font-size:medium; font-weight:bold;"/>
    +</af:panelBox>+
    But it didn't work. The text "Update RFC with Approval Info" is still align to the left by default.
    Any ideas?
    Thanks.
    -Mina

    You can't do it without panelGroupLayout. Try this way...
            <af:panelBox text="PanelBox1" id="pb1" titleHalign="center" ramp="highlight"
                background="dark">
                <f:facet name="toolbar"/>
               <af:panelGroupLayout id="pgl1" layout="horizontal" halign="center" valign="top">
                <af:outputText value="***centered***" id="ot1"/>
               </af:panelGroupLayout>
            </af:panelBox>

  • I would like make 3D text and panel that controls the bevel is missing. How can I fix this?

    I was making 3D text, and when I went to create a new project, I had written out my text and made it 3D but the panel that controls the bevel wasn't available anymore. How can I make this panel visible?

    Open the Customize window via "View > Toolbars > Customize" or via "Firefox > Options > Toolbar Layout"
    Click the "Restore Default Set" button.
    * http://kb.mozillazine.org/Toolbar_customization

  • Where is text properties panel?

    In Dreamweaver 8, when I highlighted a word or text, there was a properties panel at the bottom. In that panel I could set or change format, font, style, size, color, bold, italic, align left, align right, align center, justify, set a link, and set a target.
    In Dreamweaver CS4 I can not find that same panel. Is there a panel with all the items above? If so, how do I open it?

    Actually it is in the same panel, just slightly altered.  In that properties window you will see two buttons on the left side, one for HTML and one for CSS.  The CSS is what controls the style of the text you may have highlighted so those features are now there to create a separation between editing HTML and CSS.  This will be true for other elements as well such as table backgrounds.

  • CS4 Custom Metadata Panels : "Generic" : Ability to display block of predefined text in panels ?

    I am in the process of converting a number of CS3 custom metadata panels to the Adobe CS4 Suite using the "Generic" panel included with the current SDK. After reading though the documentation on the "Generic" panel, it seems that there is no easy way to define a block of predefined, non-editable text (a legal disclaimer for example) within a CS4 "Generic" panel.
    Note that this is text that is not actually embedded into an image or editable, but rather a block of predefined text that simply displays within the panel itself.
    When creating CS3 custom panels, a predefined text block was easily displayed using a combination of the "width:", "height:" and "static_text:" parameters.
    Has anyone been able to replicate this using the CS4 "Generic" panel?
    Thanks in advance for your time and effort...

    James,
    Alternative: XMP FileInfo SDK page 40, the attribute description= displays static text as a mouse-over tooltip operation on a single field.
    This applies to custom XMP properties in a custom namespace. The standard in-the-box XMP properties description= cannot be modified via a custom .xml schema definition as far as I can determine. (I tried, and mine were ignored.)
    Regards,
    Carl Rambert

  • Can I use a photo as the color for my text swatches

    I want to create a set of letters (Lake in Wood Camping Resort) that use a photo of the campground as their swatch, instead of a solid color.  Can I do this?  If yes, how?  I am a novice at INDESIGN so need all the help I can get.
    My thought would be to place text over the photo, using a large open font, that only shows stroke, no color in the swatch.  So you could "see thru the Letters into the campground)  then, delete the photo but still have the font contain the colors of the photo.  Am I dreaming or is this possible?  I have fiddled around with it but to no avail.  Thanks for any advice, recommendations, Cathy

    There was a good discussion about this in ID forum
    1. Place image
    2. Draw white box to cover image
    3. Place text on top
    4. Set opacity of text (effects panel) to 0. Text dissapears
    5. Group with white box from step 2
    6. With group selected choose Knock Out Group (effects panel)
    This preserves live text.

  • Adding user-defined number of text fields.

    Okay I am having problems, obviously. I am developing a program where the user will enter X and Y values and the program will calculate the relational data. However, I can't even get a start.
    First of all, the user defines the number of pairs of points they want to define. For example, they have 20 points, each with its own X and Y, so they click on 20 and then okay in the first window.
    The next window will then take their answer and display X and Y text fields for as many points as they defined. However, I can't figure out any way to do this.
    Feel free to run the program, the problem lies in the method setTextFields(). Help please!
    import javax.swing.*;               //FOR SWING COMPONENT CLASSES
    import java.awt.*;                  //FOR CONTAINER CLASS
    import java.awt.event.*;            //FOR EVENT HANDLING
    public class RegressInput extends JFrame
        private JComboBox listJComboBox;        //COMBO BOX TO HOLD HOW MANY PAIRS OF DATA POINTS THE USER HAS TO ENTER
        private JButton answerButton;           //BUTTON TO CLICK AFTER SELECTING PAIRS OF DATA POINTS
        private JPanel textFieldTopPanel;       //TEXT FIELD TOP PANEL
        private JPanel textFieldBottomPanel;    //TEXT FIELD BOTTOM PANEL
        private JPanel textFieldPanel;           //TEXT FIELD PANEL   
        private CardLayout cardSelector;        //DECLARE CARD LAYOUT OBJECT   
        private JPanel cardDeck;                //DECLARE CARD PANEL OBJECT
        public RegressInput(String title)
            super(title);               //CALL SUPERCLASS CONSTRUCTOR
            //CREATE A CONTAINER
            Container container = getContentPane();
            //INSTANTIATE CARD LAYOUT OBJECT
            cardSelector = new CardLayout();
            //INSTANTIATE PANEL OBJECT
            cardDeck = new JPanel();
            //SET LAYOUT OF CARD DECK PANEL TO CARD LAYOUT
            cardDeck.setLayout(cardSelector);
            //DEFINE LABEL FOR FIRST CARD
            Label question = new Label("How many PAIRS of data would you like to enter?");
            //BUTTON TO SUBMIT NUMBER OF POINTS TO PLOT
            answerButton = new JButton("OK");
            listJComboBox = new JComboBox( getArray() );//USE getArray() METHOD TO SET ITEM LIST OF THE COMBO BOX
            listJComboBox.setMaximumRowCount(10);       //SETS THE VISIBLE NUMBER OF ITEMS TO THE USER
            Label xValues = new Label("X Values");      //LABEL FOR X values
            Label yValues = new Label("Y Values");      //LABEL FOR Y values
            //BUILD CARD DECK
            JPanel comboBoxCard = new JPanel();     //CREATE FIRST CARD
            comboBoxCard.add(question);             //ADD question LABEL TO FIRST CARD
            comboBoxCard.add(listJComboBox);        //ADD listJComboBox TO FIRST CARD
            comboBoxCard.add(answerButton);         //ADD answerButton TO FIRST CARD
            textFieldTopPanel = new JPanel();       //CREATE TOP PANEL OF SECOND CARD
            textFieldTopPanel.add(xValues);         //ADD xValues Label TO SECOND CARD
            textFieldTopPanel.add(yValues);         //ADD yValues Label TO SECOND CARD
            textFieldBottomPanel = new JPanel();    //CREATE BOTTOM PANEL OF SECOND CARD
            textFieldBottomPanel.setLayout(new FlowLayout(FlowLayout.CENTER,10,10));    //SET LAYOUT FOR BOTTOM PANEL
            textFieldPanel = new JPanel();          //CREATE PANEL FOR SECOND CARD
            textFieldPanel.setLayout(new BorderLayout(10, 10)); //SET LAYOUT FOR SECOND CARD
            textFieldPanel.add(textFieldTopPanel, "North"); //ADD textFieldTopPanel TO NORTH
            textFieldPanel.add(textFieldBottomPanel, "South");  //ADD textFieldBottomPanel TO SOUTH
            cardDeck.add(comboBoxCard, "Step 1");       //ADD FIRST CARD TO DECK
            cardDeck.add(textFieldPanel, "Step 2");     //ADD SECOND CARD TO DECK
            container.add(cardDeck);                    //ADD CARD DECK TO CONTAINER
            //DEFINE BUTTON HANDLER OBJECT
            ButtonHandler buttonHandler = new ButtonHandler();
            //ADD ACTION LISTENER FOR BUTTONS
            answerButton.addActionListener(new ButtonHandler());
        }//END RegressInput() CONSTRUCTOR
        //METHOD TO CREATE AND RETURN AN ARRAY OF VALUES FOR JComboBox
        private String[] getArray()
            //CREATE ARRAY TO HOLD 30 VALUES
            int numbers[] = new int[29];
            //CREATE int IN ORDER TO START THE ARRAY AT 2 INSTEAD OF 1
            int number = 2;
            //ASSIGN VALUES FROM 2 TO 30 TO numbers[] ARRAY
            for(int count=0; count < 29; ++count)
                numbers[count] = number;        //SETS EACH INDEX TO number
                number++;                       //INCREMENTS number
            }//END for LOOP
            //CREATE pairs[] ARRAY TO HOLD 30 STRINGS
            String pairs[] = new String[29];
            //ASSIGN VALUES 1 TO 30 IN STRING ARRAY FOR COMBO BOX
            for(int count = 0; count < 29; ++count)
                pairs[count] = "" + numbers[count];
            }//END for LOOP
            return pairs;//RETURNS pairs[] ARRAY FOR THE LIST ITEMS IN listJComboBox
        }//END getArray() METHOD8
        //RETURNS THE ITEM SELECTED BY THE USER FROM THE JComboBox
        private int getValue()
            //ASSIGNS STRING VALUE OF THE JComboBox TO A WRAPPER
            Integer v = new Integer((String) listJComboBox.getSelectedItem());
            //ASSIGNS WRAPPER VALUE TO int
            int value = v.intValue();
            //RETURN VALUE OF SELECTED ITEM
            return value;
        }//END getValue()
        private void setTextFields()
        {//HERE LIES THE PROBLEM! WHAT GOES IN THIS METHOD????
            for(int count = 0; count < (2 * getValue()); ++count)
        }//END setTextFields()
        //BUTTON EVENT HANDLER CLASS
        private class ButtonHandler implements ActionListener
         //PROCESS EVENT
            public void actionPerformed(ActionEvent e)
                //WHICH BUTTON CAUSED THE EVENT?
                if(e.getSource() == answerButton)
                    cardSelector.last(cardDeck);
                    cardDeck.setSize(600,600);
                }//END if STATEMENT
            }//END actionPerformed()
        }//END ButtonHandler CLASS
    }//END RegressInput CLASSHere is main:
    import javax.swing.JFrame;
    public class TestSharpStats
         public static void main(String[] args)
            //DEFINE FRAME OBJECT
            RegressInput window = new RegressInput("Hi");     //SETS TITLE BAR
            window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      //CLOSES WINDOW
            window.setSize(400, 600);    //SET FRAME SIZE
            window.setResizable(true);  //PREVENTS USER FROM RESIZING WINDOW
            window.setVisible(true);     //SETS window TO VISIBLE
        }//END main()
    }//END TestSharpStats CLASS

    muit-post: http://forum.java.sun.com/thread.jspa?messageID=4442652

  • Text wrap options have disappeared

    Dear All,
    The options in the Text wrap panel have suddenly disappeared and the "show options" selection is completely greyed out...Text Wrap is completely blank.  I'm working with Adobe InDesign CC.  Any suggestions?  The options were there yesterday, but gone today!
    Small Town Gal

    Doesn't sound like it's the right folder. You need to be in your user library, ~/library/ or hard drive/<your user name>/library/. I'm not a Mac user so I can't really guide you through the steps to get there beyond what's in the help tpoic and the tread information in the prefs post. You need to be very careful reading the path information -- there are very similar, but different paths listed for the two files.

  • Can the text wrap tool options be reinstated?

    I may have inadvertenly hit some keyboard code to remove the options, though I certainly don't remember doing so. There are no options displayed at all, only a box that can be checked or unchecked to use the text wrap on the master pages only. I have tried it both ways, and checked the master pages for possible boxes, but there is nothing. Has anyone else ever encountered this? I appreciate your help! Thanks so much -

    What version of ID are you using? What OS?
    Your description is a littel vague but it sounds like you've opened the Text Wrap panel flyout menu and all you see is the option to limit wrap on a master page object to other text on the master page. Is the panel itself blank?
    If that's the case, see Replace Your Preferences

  • Text Wrap Options Don't Appear

    Hello,
    Weird thing happened to me today. I can't use my text wrap panel. None of the options are appearing. What am I doing wrong? I've restarted the program and restarted my computer. Please help.
    Thank you,
    Dani
    NM

    Try restoring your preferences:
    http://forums.adobe.com/thread/526990

  • Text wrap with EPS graphic files

    I'm using ID CS3 v5 with Mac OS Leopard 10.5.6.
    I am trying to use the TEXTWRAP panel with an EPS graphic that has been imported into the text.
    When I select the graphic and go to the text wrap panel none of the options are available to me - if I hover the cursor over any of the 5 options it changes to a NO ENTRY sign.
    Does anyone know what I am doing wrong?

    I too am trying to get various InLine (graphic) objects…
    -- to flow with text (got it!), AND
    -- have surrounding text wrap around them as they move (no luck so far).
    It seems like this should be easy, but I too have failed to be able to figure it out.
    I do know that objects that are NOT inline can easily have text flow around them, but I'm sure hoping that InLine objects can too.
    Can anyone tell me (us) if InDesign can do what I'm/we're asking, and if so, HOW?
    I'm using ID CS4 on a G5 iMac running Tiger.
    Thanks in advance for any replies!
    Edly

  • Address Book - adding text to each entry

    Hi,
    Is it possible to add a text file/panel to the basic address form?
    Thanks

    Welcome to Apple Discussions.
    Probably not in the manner you envision. That is what the Notes: area in each Address Book contact record exists for.

  • How do I place external content in a Collapsible Panel

    I figured out how to add a tooltip to a collapsible panel
    today, but I am having trouble getting content to load in the
    content portion of the panel from another HTML file.
    I have created a loader.gif animation that I would also like
    to appear in the content panel while the content is loading.
    This, like the tooltips, is way above my skill level and any
    help would be appreciated. I am starting from using Spry 1.6's
    built in features in Dreamweaver CS3 and trying to expand on them
    with help using the other spry js found here in the Labs.
    Link to
    collapsible panel page I am working on
    Currently I have all the content panel text in panels. I
    would like to copy the content to another file so it can load only
    when the panel tab is opened.

    Check out this example.
    http://labs.adobe.com/technologies/spry/samples/utils/update_content.html
    its about updateContent which allows u to place content in
    your div.
    U could create a little function for it to load content in
    your divs.
    Example of load indicator + function setup:
    the indicator div
    <div id="indicatorMessageBoxId"><img
    scr="imagehere.gif" /> Please wait loading content </div>
    The function (place in <script> tags and place it in
    header (dont forget to include SpryData.js)
    function updateContent(ele,url){
    //U call this by using the command:
    updateContent('ID_toLoad_contentIn',url_of_new_content');
    document.getElementById('indicatorMessageBoxId').style.display =
    ""; //this will show the indicator loadimage box
    Spry.Utils.updateContent(ele, url, function() {
    document.getElementById('indicatorMessageBoxId').style.display =
    "none"; }); //this will hide the box when loading file is done
    u can attach this function on your collapspannel by adding a
    onclick="updateContent('myId','data/page.html');" to the
    element.
    Hope this helps :)

Maybe you are looking for

  • Performance issue on a virtual cube

    Hi BW gurus, I am working on Consolidation virtual cube and the query performance thru that cube is very bad. I know that we cannot build aggregates or partition on a virtual cube ..what should be my approach then..... Your suggestions will be apprec

  • Goods receipt not ticked in production order converted from sales order req

    Hi all, In MTO scenario, where requirement trigger from Inquiry -> Quotatation -> Sales Order -> Plan Order -> Production Order, goods receipt indicator in production order was not checked if requirement is triggering from sales order, however it is

  • ADC port from VGA?

    My brother's Sawtooth G4 has a NVIDIA GeForce2 MX graphics card in it and because it's a Sawtooth the ADC port on it doesn't work but the VGA does. Is there a way I can get an adapter that will let me connect my CRT Apple Studio Display that has the

  • Media Offline problem...

    I'm having a problem with getting the dreaded red bar saying my media is offline. Seriously... I've read through past posts and still can't resolved my problem. I captured the media several days ago and have been working on/saving the project very co

  • Tlftextfiled in textarea as3 component problem?

    i customize as3 textarea component (in source : fl.control.TextArea) i chnage textField in source to tlfTextFiled and i cand see RTL text in textArea component, but i have a problem , and i can not see affect my change in Direction please help me to