Removing filled box with text

Hi,
I have a script, which makes a filled box and writes there text. I want that at the script end it would remove it. Script runs on a program. Program has some scripts. So if I'll use other scripts I'll have that filled box, which at that time I'll won't need.
I have in:
     public void onRepaint(Graphics g)
          //code
     )The code:
               int x = 18;
               int y = 108;
               g.setColor(BLACK);
               g.fill3DRect(14, 108, 219, 214, true);
               g.setColor(GREEN);
               g.drawString("script", x, y += 15);I need that in:
public void onFinish() {}It would remove it. Can you solve this problem, please?
Edited by: rikits on Jul 26, 2008 5:42 AM

Yes, but none of that code is yours is it?
Take a brief read through the Java Tutorial and you'll know how to do it too.

Similar Messages

  • I need to know how to put a photo in a box with text under photo, so they all will move in page

    I need to know how to put a photo in a box with text under it, so they move together in a page of text.

    The Acrobat SDK might be a starting point.
    From there, perhaps a plug-in (built with C+).
    Perhaps with a licensed release of a PDF Library (this could be $$).
    The viable and cost effective alternative is use the tried and true.
    Authoring in an appropriate authoring application with appropriate tag management.
    Example:  Adobe InDesign; Adobe FrameMaker or MS Word with PDFMaker (comes with install of Acrobat).
    This way you place "Alternative Text" when mastering content in the authoring file.
    Going the route and with some look-see (research) you may find programmatic approaches to placing the alt txt in the authoring file.
    Note: as discussed in the Matterhorn Protocols there is no programmatic method that provides a fully accessible PDF (specifically, that is an ISO 14289-1, PDF/UA-1 compliant PDF).
    Regardless, here you have a sub-forum for discussions on Acrobat usage.
    Consequently discussions on/of 3rd party software is rather out of scope eh.
    Be well...

  • Fill Shape with text

    I'm trying to Fill Number 9 with text but I always get this :
    I want to have the circle inside without text !
    Someone Can help me ?
    Sorry Im newbie  :/

    I know you know a lot more about the internals than I do, Chris, and I hate to be argumentative, but I'm just not seeing the difficulty...
    Consider that the text placement code as written today can deal with the following (hastily drawn path).
    And as Paulo points out, Photoshop clearly already knows what's "inside" and what's "outside" a complex path.
    Emil makes a good point about the readbility suffering if one has to follow it across breaks in the figure...
    Still, who's to say whether someone wouldn't come up with a good use for this.  Bottom line is this - here you have a user expecting Photoshop to do something that's expected, and it's falling short because of the implementation and not allowing him to express his creativity the way he wants....
    This exercise DID bring one new idea to mind possibly for hhtun...  Try using a stencil font!
    -Noel

  • Is there a way to place a photo/graphic inside a text box with text?

    Have a nasty pricelist to do, 200+ pages. Listings top to bottom, lines everywhere.
    I've figured out a workflow that would make my life 1000 times easier if I can do like I can do in a DIV on a website, put a photo (in this case an Illustrator file) into the background of a text box. I can then use the inset feature to push the text down off the top edge a bit, leaving the heading which are part of the Illustrator file, untouched as text flows.
    I can find nothing on a google search about doing this. It's either use 2 boxes, one graphic, one text, or not at all.
    Anyone know of a way? An Extension to ID maybe?  I'm using CC2014 mac.
    Oh ID pro's, can this be done at all?

    Bummer.
    It's a bit tricky but you could anchor the background image behind the text. So:
    An illustrator file and some text:
    Cut the background, place your cursor at the beginning of the text, and Paste:
    Open Anchored Objects Options and choose Above Line with enough negative Space after to position the background:
    The downside is it gets difficult to edit the text because the anchored image gets in the way, so you would have to use Story Editor to easily make text edits:

  • Need help with how to shrink DIV boxes with text in them

    Hi,
    I am coming up the learning curve with Dreamweaver CS3.
    Within a container section, I have enclosed text with DIV
    tags, creating a CSS ID to add color to the background, and then
    applied other class styles to the text. Result is that now the text
    is enclosed by the background color applied to the CSS ID box.
    What can you do to tighten-up the box around the text? Tried
    playing with the BOX properties but the background shrinks leaving
    white space between the BOX area and adjacent DIVs (how do get rid
    of the white space??) and the text stays in the same spot, the box
    showing sometimes only partial text.
    What I want is to create is rows of links/text, each row with
    a different colored background, the box tightly wrapped around the
    text, and no white space between the boxes. How do I do that?
    Help is greatly appreciated, as a newbie I can get 90% there
    but the finer details still escape me. Thanks for your help.

    Hi,
    I am coming up the learning curve with Dreamweaver CS3.
    Within a container section, I have enclosed text with DIV
    tags, creating a CSS ID to add color to the background, and then
    applied other class styles to the text. Result is that now the text
    is enclosed by the background color applied to the CSS ID box.
    What can you do to tighten-up the box around the text? Tried
    playing with the BOX properties but the background shrinks leaving
    white space between the BOX area and adjacent DIVs (how do get rid
    of the white space??) and the text stays in the same spot, the box
    showing sometimes only partial text.
    What I want is to create is rows of links/text, each row with
    a different colored background, the box tightly wrapped around the
    text, and no white space between the boxes. How do I do that?
    Help is greatly appreciated, as a newbie I can get 90% there
    but the finer details still escape me. Thanks for your help.

  • How do I align check boxes with text in the form?

    I'm most of the way there but I am stuck fixing the formatting misalignments.
    1. What controls the little checkboxes? What's the best way to align them with the text?
    2. Part of the form is controlled by some form-specific css and  part is getting inherited from the body. What's the best approach to make sure they match?

    Thanks Liam. I haven't done a site for a while so I'm a little rusty but I did finally figure it out using Firebug. At first I couldn'tfind the applicable CSS but when I tuurned on the element selector in Firebug, well, Bob was my uncle.
    The site is based on a Twitter Bootstrap template modified for BC. Since the few changes to the css only apply to that one page, do you think there is any reason not to leave them embedded just on that page given that they will not apply anywhere else. I don't want to change the Bootstrap css but I could create a mystyles.css. Is there any reason to do so?

  • I want to reference a cell from another table and fill it with text

    I I have several tables that update each other with data from the previous one. These tables are identical and follow each other by date. In each table is a cell (B1) where a persons name goes. the cell (B2) references another cell from a previous dated table. Some days, consecutively, no name is entered in to cell B1. I want cell B2 to always refer back to the most recent table with a name is cell B1. How can this be done?
    I have written this formula (applied to cell B2 of this example) already: IF(Day 1::B1="","",IF(Day 1::B1≥"",Day 1::B1))  but it only references the previous days table and stops there. Some days nothing is inputed into cell B1 causing causing the following days table cell B2 to show "0".
    Monday, April 1
    Driver
    Driver for Today
    David
    Previous Driver (Last person to drive vehicle)
    Tuesday, April 2
    Driver
    Driver for Today
    Previous Driver (Last person to drive vehicle)
    David
    Wednesday, April 3
    Driver
    Driver for Today
    Mike
    Previous Driver (Last person to drive vehicle)
    David
    Thursday, April 4
    Driver
    Driver for Today
    Previous Driver (Last person to drive vehicle)
    Mike
    Friday, April 5
    Driver
    Driver for Today
    Previous Driver (Last person to drive vehicle)
    Mike
    Saturday, April 6
    Driver
    Driver for Today
    Carl
    Previous Driver (Last person to drive vehicle)
    Mike
    Sunday, April 7
    Driver
    Driver for Today
    David
    Previous Driver (Last person to drive vehicle)
    Carl

    "I am having trouble getting the formulas you suggested to work. I am not sure where the problem is coming from. Could you look at the following spreadsheet and tell me where I am going wrong? The following pic shows Day 1 and AUX tables. In Day 1 cell B1 a Drivers name is entered. As you can see by the formula that you gave the B2 is for "Product" not the drivers name "David"."
    Hi br,
    The formulas provided above apply directly to the set of tables shown with them. In each of these tables, the target cell, containing the name of the driver for that day is cell B2 on the table for that day.
    For Day 1, the driver is Huey, found in cell B2 of Table 1, and the cell reference to retrieve the information from that cell is =Table 1::B2
    The formula in B2 of Aux uses INDIRECT to build that cell reference from the fixed text string "Table ", the calculated value ROW()-1, and the text string "::B2"
    ROW() returns the number of the row in which the function sits. In B2, that's row 2, and ROW() returns 2. -1 subtracts 1 from that value, leaving 1. In B2, ROW()-1 returns 1.
    The ampersand is the concatenation operator. It joins the value before it to the value following it. The result is a text string. in the INDIRECT part of the formula, there are two & operators, one after "Table ", the other after ROW()-1.
    "Table " & ROW()-1 & "::B2" with the result of ROW()-1 as the value between the two text strings.
    "Table " & 1 & "::B2"   =   "Table 1::B2"
    INDIRECT( ) takes that text and converts it to the cell address that it represents.
    B2: =IF(LEN(INDIRECT("Table "&ROW()-1&"::B2"))<1,"",INDIRECT("Table "&ROW()-1&"::B2"))
    The first instance on the string in the formula is a test to see if there is anything in the target cell. If not, the formula returns a null string. If there is at least 1 character there, the second instance of INDIRECT is called on to return the name to B2 of the table Aux.
    Compare your formula below:
    B4: =IF(LEN(INDIRECT("Day 3"&ROW()-1&"::B2"))<1,"",INDIRECT("Day 3"&ROW()-1&"::B2"))
    As shown, this is the formula in B4 of your Aux table. In Row 4, ROW() returns 4, and ROW()-1 returns 3.
    So the three elements of the cell address constructed in INDIRECT are "Day 3", 3, and "::B2"
    The cell being addressed is "Day 33::B2", cell B2 on the table named Day 33.
    The error results from there being no table with that name.
    The fix (to the table part of the reference) is to change the first text string to "Day " (including the space after the word Day).
    The fix to replace Product with the driver name is to change "::B2" to ::B1"
    To fit the names of your day tables and the location of the driver's name on each, your formula in B2 should read:
    B2: =IF(LEN(INDIRECT("Day "&ROW()-1&"::B1"))<1,"",INDIRECT("Day "&ROW()-1&"::B1"))
    Regards,
    Barry

  • Issue with 'text box' in rtf sub template for peoplesoft XMLP

    Hi all,
    i have a weired problem using 'text Box' in a sub template. I am calling a sub template from my template. In my Sub template i have a text box ( i am using text box bcoz i want to justify the text not to the page margin but starting from a specific column.not sure if there is any other way with which i can do the same !!) . When i process the report (using application engine program) i get the below error
    Message Log entry:
    [052311_071441208][oracle.apps.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    psxmlp://SUB_BMX2<Line 63, Column 191>: XML-22031: (Error) Variable not defined: '_MR'.
    @Line 63 ==> </xsl:stylesheet>
    [052311_071441216][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:618)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at com.peoplesoft.pt.xmlpublisher.PTFOProcessor.generateOutput(PTFOProcessor.java:74)
    Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: '_MR'.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
         ... 13 more
    [052311_071441218][oracle.apps.xdo.template.FOProcessor][ERROR] End Memory: max=64MB, total=11MB, free=1MB
    PeopleTools 8.49.27 - Application Engine
    Copyright (c) 1988-2011 PeopleSoft, Inc.
    All Rights Reserved
    Processing started
    data extraction for EMPLID:1000646332 EMPL_RCD:0 EFFDT:2009-12-28 and EFFSEQ:6
    CFilem::LoadDefn(RDCRHIUTEECKNDZN2SPSRQ) : read 1 chunks
    UnchunkStuff : read 1 chunks for nCharDataLen 10520 chars
    CFilem::LoadDefn(RDCRHIUTEECKNDZN2SPSRQ) : after decode & decompress: 35330 bytes
    Calling XMLP
    Processing Report Defn:TR_BMX2
    Error Executing XMLP.Error generating report output: (235,2309) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:51952 Statement:1163
    Called from:TR_LATAM_CONTRACTS.ContractsXML.OnExecute Name:ExecuteXmlp Statement:16
    Called from:TR_LAMCNTRCT.MAIN.GBL.default.1900-01-01.Step04.OnExecute Statement:20
    Process 442706 ABENDED at Step TR_LAMCNTRCT.MAIN.Step04 (PeopleCode) -- RC = 22 (108,524)
    Process %s ABENDED at Step %s.%s.%s (Action %s) -- RC = %s
    It works fine when i remove the text box from my sub template. I tried to put the text box directly in the main template and it worked fine !! it is erroring out only when i use the text box in sub template !!
    Template file:
    <?import:psxmlp://SUB_BMX2?>
    <?choose:?>
    <?when: .//LETTER_CD=”PA4”?>
    <?call: BA101?>
    <?end when?>
    <?otherwise:?>
    Invalid Letter Code. No Sub Template Call defined for this Letter Code.
    <?end otherwise?>
    <?end choose?>
    Sub Template:
    <?template:BA101?>
    Testing without text box.
    Testing with text box
    there is a text box with text here .. cannot be copied from word !!
    <?end template?>
    i got the below error when i tried to 'preview' the report from my report definition.
    Error generating the report output: During calling method PTFOProcessor.generateOutput, the XDO engine throws an exception:NULL. (235,3101) (235,2309)
    Error occurred during the process of generating the output file from template file, XML file, and the translation XLIFF file.
    Any help would be greatly appreciated.
    Edited by: Naveen Kumar on May 23, 2011 4:31 AM

    misunderstood =/
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    it's in output but what is data in database ?
    sorry but without knowing about source data for forming the xml i haven't ideas about your problem
    in db it's "TM " or "™" or ... ?
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    Something like XAE or "K" after PAY Value in the xml tag and continued the text value.  (Tag value is not getting copied exactly here - i am sorry for that )
    that's ok. i need to see the problem not the data as is
    Expected (output):  "Here it needs to produce the "PAY TM" (Here "TM" should be super scripted to "PAY" Value in tag).
    as super scripted in xml?
    as idea - you can have <PAY_TXT>PAY TM</PAY_TXT> and in publisher set TM as super
    Designing XSL Subtemplates - 11g Release 1 (11.1.1)

  • Creating boxes around text....

    Hi,
    I'm hoping there is a better solution to this problem then what I've using.
    I would like to be able to create a box around text that is able to resize when increasing/decreasing font.
    My working solution is to create a text box with text then use direct selection tool to select the anchors and convert that into a shape, either a rectangle or rounded rectangle. This isn't bad since it allows an equal amount of space around the text but it does have problems. If the font size increases or decreases, the box remains the same. I have to use the Area Type Option to resize the box. Also, if I wanted to do this for lots of boxes then I have to select all of the individual anchors which will be time consuming.
    Is there a simpler solution?
    Thanks.

    Use the Selection Tool (Black Arrow) to select the text and then add a new Fill via the Appearance Panel.
    Move the new fill below the Characters item in the Appearance Panel
    With that fill highlighted choose Effect > Convert to Shape > Rectangle

  • Re: Closed Path with Text

    I hope this is a simple enough question and someone can help me out!
    I created a closed path with the pen tool. Then I filled it with text using the 'Text Area Type Tool'. Now I would like to use the closed path as a Shape (in order to fill with color) and I'm not able to reverse it from a Text Shape.
    Is there a way to copy the Text Shape and convert it back to a regular path Shape?
    Thanks so much for your help! I have a bunch of these Text paths that I would like to fill with color.
    ~Owen

    With the Group Selection Tool (the white arrow with the + sign next to it), drag over a portion of the path enclosing the area text, or click on the path, to select the path without selecting the text itself. You may then copy and paste (or paste behind, etc.) and then fill or stroke the path.
    Peter

  • I have created a .pdf form with text boxes, but the recipients are unable to fill in their answers.

    How can I distribute a form with text boxes so that the recipients are able to type into the boxes?

    This forum is for the Adobe FormsCentral (formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask PDF related form questions in the Acrobat forums: http://forums.adobe.com/community/acrobat/forms
    I'll move your post to that forum so you don't need to retype it. They can help you out...
    Randy

  • EDGE and HTML dynamic text in a "box" with scroll bar

    I'm new to EDGE, a win7pro master collection cs5.5 suite owner. I'm mainly in the Film/Video post production field (mostly AE, PPro, Pshop, IA) but have been branching into web design the last couple of years.  I use Dreamweaver, Fireworks, Flash. While I'm a expert user with all the Film/video apps, I would say I only have intermediate ability with the web apps. While I understand a lot of programing logic bulding blocks I'm not a coder.
    So since we're told "flash is dead",  my interest in Edge is to try to do some of the things that I can currently do in flash in  EDGE. I was excited when Edge first came out but lost interest when it became obvious that Adobe was not going to offer Edge and Muse to "suite owners" but only in their force feeding of the "Cloud". Better known as the "golden goose" for adobe stockholders and a never ending perpetual hole in the pocket for users. Anyway....
    I spent the last couple of days doing some of the tuts and messing with the UI. It's matured a lot since I was here last.
    I've been working on a flash site for a sports team where one of the pages is a player profile page where college recuriters and other interested parties can view recuriting relavent info/stats about players. This is how it works. While on the "Team" page a users clicks on  a button labled "Player Profiles" . (Animation) A "page" flies in and unfurls from the upper right corner (3d page flips effect created in AE played by flash as a frame SEQ). Once it lands filling most of the center of the screen there is a bright flash. As the brightness fades we see the "page" is a bordered box with a BG image of a ball field(End). (Animation) from behind the border in fly small pictures (player head shots with name and jersey number). They stream in and form a circle like a wagon train and the team logo zooms up from infinity to the center of the circle(End). As the user mouses over a player's pic it zooms up a little and gets brighter (like mouseover image nav thumbs for a image slider). If the user clicks on a player's head shot it flips over and scales up to become a text box with a scrollbar. The content of the box is a mix of images, static and dynamic text fields populated from data in an "player info data base" XML file, and some hyperlinks. It's all kept updated dynamicaly with current stats, info and images from the XML file. There is also a "PDF" button that allows the user to open/save/print a PDF of the player's profile (the PDF's are static files for now but the choice of which pdf to retrive is dynamicaly supplied via the XML file.
    So.... Is Edge now able to do something like this?  Would it need to be a collection of small animations? could these be "assembled" and connected as an asset in dreamweaver ?
    I thought I would approach this from the end (ie click on an image and display a box with dynamic TEXT fileds. ) since that is the most important part, ie displaying the dynamicaly updated profile info.  Sooooo....
    Can Edge display a scrolling text box with Images, static text, and html dynamic text in it??
    Joel

    The code is in composition ready. Click the filled {}

  • Creating a background fill in a text box

    Hi there,
    I am using CS4 and want to make text boxes with backgroud (e.g., white). I know I can add a white box but is there a easier way?
    Thanks!

    Yes. Make sure you're using Area Type, then select the Area type bounding box and assign a fill color. Use the Direct Selection tool so you select only the type box, not the type itself.
    You can also create a background color with Point Type by adding another fill attribute to the type, in the Appearance palette, then using "Effect>Convert to Shape" to convert it to a rectangle or oval. You can then move it behind the "Character" level in the Appearance panel and  assign it a color. This method allows the flexibility of defining margins around the text.

  • Error With Text Boxes in Acrobat 9 Pro

    I have a number of 9 Pro installs that are experiencing problems with text boxes.  The will enter text then attempt to save the changes and Acrobat will crash.  Other errors we have been receiving are  "invalid annotation object" and "R6025 pure virtual function call"  any advice would be appreciated.

    In the properties of the callout comment you can change the fill color.

  • The text box with place holder text in my master is uneducable in my template. How can I fix it?

    I'm very new to InDesign.
    I just created a master based on a page design I liked by drawing its page icon in the layers panel up to the master icon at the top of the panel. Later I applied the master to a blank page in the same document by selecting the page in the layer panel and option clicking on the master page icon. It worked and I can fill the photo frames but the text areas are uneducable. When I go to the layers panel and open the layer with the text it's blank, however when I open the same file in the master, it's filled with text boxes.
    How can I add text boxes with placeholder text that is editable?

    Master pages themselves can't be a template, but any file in which the master page is used can be a template, just by saving as such. Templates can contain much more information, though, than just master object placement, including styles (very important), color swatches, and multiple pages. You can even have content on the document pages in a template file, and if you are doing placeholder text, it might make more sense to put it on the live document page than it does to put it on a master page.
    Master pages are best suited to content that will appear on multiple document pages.

Maybe you are looking for

  • HT2292 I'm receiving an error message when installing iTunes on a Windows 7 64-bit setup.

    I saved the executable and selected to run as administrator but still received an error. The HRESULT is 0x80070BC9.

  • How can I use iCloud calendars for third party webapps?

    Hi, I thought of having my calendar on a page, where I also type in my AppleID and then be able to read (and write) new calendar-entries. Is that possible? If so, how?

  • Windows 7 will not boot on new Satellite C660-195

    Hi, I have just purchased a Toshiba Satellite C660-195 with Windows 7 pre-installed. This morning I have switched it on and it came up with a black box with x:windows\system32\drvload.exe in it. This box then disappeared and Startup Repair kicked in.

  • Most effective way to clear HD?

    I've run into some financial difficulties and need to sell my Mac. However, because I've used it as a company computer, I need to be able to sell it in a condition where there is no possibility of information retrieval. I'm aware there are many ways

  • Correspondance can't be printed

    in fb03 menu, I go to environment/correspondance, it shows the correspondance type Z001, after I click continue, it says the official receipt was requested, but when I go to SP01, there is no spool generated, how to print this official receipt( corre