How do i make a transparent box to place around some existing text?

How do i make a transparent box to place around some existing text?

Where? When? What? Sorry, you have not told us anything about your system or what program you mean nor any other details, so nobody can know anything. Ask in the forum for whatever program you are referring to.
Mylenium

Similar Messages

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

  • How can I make a gray box or gray screen in Pages over a few lines of text?

    How can I make a gray box or gray screen in Pages over a few lines of text?

    Thanks. Almost what I was looking for.
    While that makes for a gray over the lines, it still does not form a box.
    Any other suggestions to form a solid rectangular gray box?

  • How do you make images transparent in inDesign?

    How do you make images transparent in Adobe InDesign CS5.5?

    Dittco wrote:
    It IS possible: Select the image. Open effects (Window > Effects). Switch from "normal" to "multiply". Viola! White background is gone.
    That only works with a white background. In addition, it introduces a transparency effect, with its associated problems.
    With a rather light background: Select the image. Open clipping path (Object > Clipping Path > Options). Select Type > Detect Edges; use Threshold and Tolerance to get as close as possible to the edge of your image. This may be difficult because of a too low resolution image, or too much fringe on the edge -- if all fails, use the Inset Frame value to force the mask "into" the image. Click OK, and the background is gone.
    But that's not the only way: you can always create a clipping path manually, and then you are in total control, not limited by transparency side effects, auto-edge detection, and busy backgrounds.

  • How do I make a photo box

    When insert my photos into theme preset photo boxes my photos don’t fit the proportions of the box and get cropped. Part of the photo cannot be seen. I see how one can make a text box in Keynote, but how can one make a photo box that is different then standard dimensions within the themes? Or is it possible to change the proportions of the ones already created within the themes?
    Thank you!
    Pasquale M.

    Never mind. I fiured it out. All I have to do is remove the mask.
    Thanks for looking,
    PM

  • How we can make CQ dialog box movable on page like sidestick?

    Hello All,
    How we can make CQ dialog box movable on page like sidestick.
    Should we have to use any property for that.
    Please tell me if any onw know this ticks.
    Thanks a ton in advance...
    Regards,
    Satish

    You could use dialogMode property configured under cq:editConfig node.
    dialogMode : floating
    http://dev.day.com/docs/en/cq/current/developing/components.html
    This should make your component dialog float and be movable.
    - Ashish

  • How do i make a transparent background in Photoshop Elements 13

    how do i make a transparent background in Photoshop Elements 13

    Open the picture file
    Use one of the selection tools to select the foreground
    Place the selection on its own layer (Layer>New>Layer via copy or CTRL+J) - this will be Layer 1
    Delete the background layer
    If you want to save it, use a file format which supports transparency, e.g.PNG

  • How can I make a check box active ONLY if another check box is activated?

    How can I make a check box active ONLY if another check box is activated?
    I have an editable PDF for a client, which contains text fields and check box fields.
    There are three main check boxes (let's call them A, B and C) that the user is required to choose from, and I have given all three the same name in the Name tab of the General tab menu but different export values in order that ONLY one of the boxes can be checked at any time. Ticking one will deactivate another if it is already checked, etc.
    However, I then have a further two check boxes which I wish to become available ONLY if the second one of the above three boxes is checked. Other than that I do not wish the user to have access to them.
    I'm guessing it requires some kind of Action Script or Javascript, which is not my forté! Any help would be much appreciated.
    Regards
    Tony

    See Disabling (graying-out) Form Fields by Thom Parker. It covers both Acrobat and LiveCycle forms.

  • My iPad has to be really really close to the router for it to have internet. How can I make it so I can go around the house with it?

    My iPad has to be really really close to the router for it to have internet. How can I make it so I can go around the house with it? My iPad has been like this for a couple of months, and it has really irritated me. My friend came over and he had to download iTunes for something on the computer. He needed my iPad, he tried it and it wasn't really near the router.

    I'd begin by reviewing the following:
    http://support.apple.com/kb/TS1398

  • How can I make a color box indicator transparent?

    All, I would like to make a color box, which is part of a cluster in an array, transparent programmatically.  Instead of appearing transparent, it shows up with a LARGE "T" inside the color box, with a white background.  Because it is part of a cluster within an array, it will not work to use a property node... and because I would like to programmatically change the color, having it permanenty transparent (as proposed on another discussion topic) will also not work.  Can someone please help me turn a color box transparent programmatically?
    Thanks.
    Anthony

    The problem is that arrays of clusters cannot be passed into property nodes as falkpl has previously said. The attached jpeg shows how you would programmatically break the arrays into cluster, into elements, and then manipulate that color box to a transparent one. The T within the white color box indicates transparent though. If you were to attached that to a color attribute then you would see that object disappear (well I guess not since it's transparent )
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    color box.JPG ‏21 KB

  • How can I make a transparent square box swf file in flash cs4?

    Hi,
    I have one picture imported into flash cs4 and would like to make a rectangle box which should be transparent. Finally I will save it as .swf file for later use. But the box should be transparent (without any background). How can I do that? Please do help.
    Thanks.

    Hi just a shot in the dark..
    Have you fiddled with movieclips and the alpha property?
    Best regards
    Peter

  • How can I make my email boxes smaller, so that all the stuff does not show after I have opemed it?

    The email that I am reading is very large with a lot of stuff that I do not need to see. How can I make my box smaller?

    ''hhennes [[#question-1047185|said]]''
    <blockquote>
    The email that I am reading is very large with a lot of stuff that I do not need to see. How can I make my box smaller?
    </blockquote>

  • How can I make the annotation box show in the printed word version on the pages app?

    I want to insert annotation box on the side of the text. But I found that i cannot do that, and the annotation box disappear on the printed version of my document. How can I make that appear on my printed verison? Thank you!

    You are referring to Comments and Apple has removed the old method from Pages 5.
    If it is important to you go back to using Pages '09 which should still be in your Applications/iWork folder.
    Peter

  • How Do i make a 3D Box in Motion?

    I know motion isnt really a 3D program but can i still make a 3D box?? How Can I..?

    As I haven't chimed in on the old box question recently,
    http://idustrialrevolution.com/component/option,com_sobi2/sobi2Task,sobi2Details /catid,3/sobi2Id,14/
    Log on to get the project
    Peter
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • How can I make images transparent in my documents?

    I've got InDesign CS5.5 and like to save my banners, etc. that I create as a jpeg but when I try to use them on something else it has a white background.  How can I make sure the backgrounds are transparent?

    I didn't know that about the png in CS6.  Thanks for letting me know.
    Unfortunately, I don't have Photoshop.  I just recently purchased Photoshop Elements.  I haven't really done much on it as I have other projects I need to work on. Do you know if I would be able to convert in that program?
    Wish I could afford a newer version of InDesign but I can't.

Maybe you are looking for

  • Having problems trying to run a sql script using the command prompt.

    I place my script at the root c: open run SQL Command Line. I connected to the database using connet userid/password Then I tried to execute the script by doing @test_add_comments I am getting the error message. SQL> @test_add_comments SP2-0310: unab

  • Follow up on prior issue and service

    Where do I go to give feedback on product and/or customer service experience?

  • Problem in Reloading JSP Page

    I am having list of users in parent window(1st JSP Page), user selects one user and presses edit button, the details of the selected user is populated in the pop-up window (using java script), now user modifies the details and presses the save button

  • Data archiving and data cleansing

    hi experts, Can any one tell me step by step guide for Data archiving and Data cleansing of SAP-ISU Object. what is the difference between  Data archiving and Data cleansing . Thanx & Rgds

  • "HISTORY DATA"tab in address menu on customer overview page

    Hi, In sap crm 6.0 system after you confirm the customer and go on to the customer overview page under the address menu, there is a  tab "HISTORY DATA" which gives the details of all the addresses stored for the customer till date. In sap crm 7.0 sys