JCheckBoxMenuItem - border

Hi all,
I have a JMenu.
It has a menu item "JCheckBoxMenuItem".
I can select it. So I can see the check sign. I can also unselect.
But unfortunately the border of the CheckBox (square) does not appear.
I am implementing on XP and using
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
If I comment it out, like
// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
it works fine, than I can also see the border of the checkbox.
I am using Java version build 1.6.0_05-b13
How can I get it worked?
Thanks
A.

I found a workaround :-)
*1st just create the following file: MyCheckBoxIcon.java*
package menu;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Polygon;
import javax.swing.Icon;
// Created by Aykut Arslan, 2010-01-03
class MyCheckBoxIcon implements Icon {
    private final int width = 16;
    private final int height = 16;
    private Polygon polygon;
    public MyCheckBoxIcon() {    
      initPolygon();
    private void initPolygon() {
      polygon = new Polygon();
      polygon.addPoint(-width, 0);
      polygon.addPoint(-2, 0);
      polygon.addPoint(-2, height);
      polygon.addPoint(-width, height);
    public int getIconHeight() {
      return width;
    public int getIconWidth() {
      return height;
    public void paintIcon(Component component, Graphics g, int x, int y) {
          g.translate(x, y);
          g.drawPolygon(polygon);
          // following coordination sets the labelposition
          g.translate(-x-width+2, -y);
  }*2nd create the JCheckBoxMenuItem:*
Icon iconBorder = new MyCheckBoxIcon();       
JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem("Menu Item", iconBorder);now you can continue with adding "menuItem" to JMenu etc.
It works :-)

Similar Messages

  • Cell border selection problem

    I have a spreadsheet that is a week at a glance schedule for a dance school. There are three columns per day, each representing a different studio location. Each row represents a 15 minute block time. I have been trying to create a border for each class (class times vary from 45 minutes to 2 hours) while leaving the in-between lines blank. For each 45 minute class, I select the three cells in a column, scroll down the border selection tool and select the outside border icon, next select the type of line, then the weight, finally the color, and so on. Once I get about 50% done working my way across the spreadsheet, buggy things start to happen. For example, a horizontal line will extend across several columns, sometimes intersecting previously defined class blocks. If I try removing the errand lines, then all the frames that do require a border at that position get their border errased. I them have to go back to those cells to re-assign a border segment, but then the unwanted horizontal line will reappear in the blank cells again. Very frustrating. Also, in my opinion, there are some cell frame options that are missing in this program. I t would be nice to have a button to select the top and bottom of a frame or group of frames at the same time. At present, you have to first select the top border, format it, then the bottom border and format it. Same goes for left and tight border sections. You can't select the two outside edges to apply the same style/thickness/color. Excel's border formatting commands are much better in this regard.
    Title was edited by: Host

    Hi Jim,
    I played around with the border options today and although I didn't have the borders going where they were not wanted I understand your frustration having to set either all four or just one border at a time.
    Just as an option, would filling the sets of cells with a light colour for each class work better for you?

  • GridBagLayout and Panel Border problem

    I have 3 panels like
    A
    B
    C
    and the C panel has a Mouse Listener that on a mouseEntered creates a border around the same panel and on a mouseExited clears that border.
    When this border is created the A and B panels go up a little bit .. they move alone when the border is created.
    Is there any way to fix this problem? Is there any way to get the panels static?
    the code is close to the following:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseEvent;
    import javax.swing.BorderFactory;
    import javax.swing.border.Border;
    import javax.swing.border.TitledBorder;
    import java.awt.event.*;
    import java.text.NumberFormat;
    public class Game extends JFrame implements MouseListener
    JPanel game, options, top, down, middle;
    NumberFormat nf;
    public Game() {
    super("Game");
    nf = NumberFormat.getPercentInstance();
    nf.setMaximumFractionDigits(1);
    JPanel center = new JPanel(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.fill = gbc.BOTH;
    gbc.weighty = 1.0;
    gbc.weightx = 0.8;
    center.add(getGamePanel(), gbc);
    gbc.weightx = 0.104;
    center.add(getOptionsPanel(), gbc);
    Container cp = getContentPane();
    // use the JFrame default BorderLayout
    cp.add(center); // default center section
    this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    this.setSize(700,600);
    // this.setResizable(false);
    setLocationRelativeTo(null);
    setVisible(true);
    addComponentListener(new ComponentAdapter()
    public void componentResized(ComponentEvent e)
    showSizeInfo();
    showSizeInfo();
    private void showSizeInfo()
    Dimension d = getContentPane().getSize();
    double totalWidth = game.getWidth() + options.getWidth();
    double gamePercent = game.getWidth() / totalWidth;
    double optionsPercent = options.getWidth() / totalWidth;
    double totalHeight = top.getHeight() + middle.getHeight() + down.getHeight();
    double topPercent = top.getHeight() / totalHeight;
    double middlePercent = middle.getHeight() / totalHeight;
    double downPercent = down.getHeight() / totalHeight;
    System.out.println("content size = " + d.width + ", " + d.height + "\n" +
    "game width = " + nf.format(gamePercent) + "\n" +
    "options width = " + nf.format(optionsPercent) + "\n" +
    "top height = " + nf.format(topPercent) + "\n" +
    "middle height = " + nf.format(middlePercent) + "\n" +
    "down height = " + nf.format(downPercent) + "\n");
    private JPanel getGamePanel()
    // init components
    top = new JPanel(new BorderLayout());
    top.setBackground(Color.red);
    top.add(new JLabel("top panel", JLabel.CENTER));
    middle = new JPanel(new BorderLayout());
    middle.setBackground(Color.green.darker());
    middle.add(new JLabel("middle panel", JLabel.CENTER));
    down = new JPanel(new BorderLayout());
    down.setBackground(Color.blue);
    down.add(new JLabel("down panel", JLabel.CENTER));
    // layout game panel
    game = new JPanel(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.weightx = 1.0;
    gbc.fill = gbc.BOTH;
    gbc.gridwidth = gbc.REMAINDER;
    gbc.weighty = 0.2;
    game.add(top, gbc);
    gbc.weighty = 0.425;
    game.add(middle, gbc);
    gbc.weighty = 0.2;
    game.add(down, gbc);
    down.addMouseListener(this);
    return game;
    private JPanel getOptionsPanel()
    options = new JPanel(new BorderLayout());
    options.setBackground(Color.pink);
    options.add(new JLabel("options panel", JLabel.CENTER));
    return options;
    // mouse listener events
         public void mouseClicked( MouseEvent e ) {
    System.out.println("pressed");
         public void mousePressed( MouseEvent e ) {
         public void mouseReleased( MouseEvent e ) {
         public void mouseEntered( MouseEvent e ) {
    Border redline = BorderFactory.createLineBorder(Color.red);
    JPanel x = (JPanel) e.getSource();
    x.setBorder(redline);
         public void mouseExited( MouseEvent e ){
    JPanel x = (JPanel) e.getSource();
    x.setBorder(null);
    public static void main(String[] args ) {
    Game exe = new Game();
    exe.show();
    }

    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    public class Game extends JFrame implements MouseListener{
      JPanel game, options, top, down, middle;
      NumberFormat nf;
      public Game() {
        super("Game");
        nf = NumberFormat.getPercentInstance();
        nf.setMaximumFractionDigits(1);
        JPanel center = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.fill = gbc.BOTH;
        gbc.weighty = 1.0;
        gbc.weightx = 0.8;
        center.add(getGamePanel(), gbc);
        gbc.weightx = 0.104;
        center.add(getOptionsPanel(), gbc);
        Container cp = getContentPane();
        // use the JFrame default BorderLayout
        cp.add(center); // default center section
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setSize(700,600);
        // this.setResizable(false);
        setLocationRelativeTo(null);
        setVisible(true);
        addComponentListener(new ComponentAdapter(){
            public void componentResized(ComponentEvent e){
            showSizeInfo();
        showSizeInfo();
      private void showSizeInfo(){
        Dimension d = getContentPane().getSize();
        double totalWidth = game.getWidth() + options.getWidth();
        double gamePercent = game.getWidth() / totalWidth;
        double optionsPercent = options.getWidth() / totalWidth;
        double totalHeight = top.getHeight() + middle.getHeight() + down.getHeight();
        double topPercent = top.getHeight() / totalHeight;
        double middlePercent = middle.getHeight() / totalHeight;
        double downPercent = down.getHeight() / totalHeight;
        System.out.println("content size = " + d.width + ", " + d.height + "\n" +
            "game width = " + nf.format(gamePercent) + "\n" +
            "options width = " + nf.format(optionsPercent) + "\n" +
            "top height = " + nf.format(topPercent) + "\n" +
            "middle height = " + nf.format(middlePercent) + "\n" +
            "down height = " + nf.format(downPercent) + "\n");
      private JPanel getGamePanel(){
        // init components
        top = new JPanel(new BorderLayout());
        top.setBackground(Color.red);
        top.add(new JLabel("top panel", JLabel.CENTER));
        middle = new JPanel(new BorderLayout());
        middle.setBackground(Color.green.darker());
        middle.add(new JLabel("middle panel", JLabel.CENTER));
        down = new JPanel(new BorderLayout());
        down.setBackground(Color.blue);
        down.add(new JLabel("down panel", JLabel.CENTER));
        // layout game panel
        game = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.weightx = 1.0;
        gbc.fill = gbc.BOTH;
        gbc.gridwidth = gbc.REMAINDER;
        gbc.weighty = 0.2;
        game.add(top, gbc);
        gbc.weighty = 0.425;
        game.add(middle, gbc);
        gbc.weighty = 0.2;
        game.add(down, gbc);
        down.addMouseListener(this);
        return game;
      private JPanel getOptionsPanel(){
        options = new JPanel(new BorderLayout());
        options.setBackground(Color.pink);
        options.add(new JLabel("options panel", JLabel.CENTER));
        return options;
      public void mouseClicked( MouseEvent e ) {
        System.out.println("pressed");
      public void mousePressed( MouseEvent e ) {
      public void mouseReleased( MouseEvent e ) {
      public void mouseEntered( MouseEvent e ) {
        Border redline = new CalmLineBorder(Color.red);
        JPanel x = (JPanel) e.getSource();
        x.setBorder(redline);
      public void mouseExited( MouseEvent e ){
        JPanel x = (JPanel) e.getSource();
        x.setBorder(null);
      public static void main(String[] args ) {
        Game exe = new Game();
        exe.setVisible(true);
    class CalmLineBorder extends LineBorder{
      public CalmLineBorder(Color c){
        super(c);
      public CalmLineBorder(Color c, int thick){
        super(c, thick);
      public CalmLineBorder(Color c, int thick, boolean round){
        super(c, thick, round);
      public Insets getBorderInsets(Component comp){
        return new Insets(0, 0, 0, 0);
    }

  • How to add a JPanel with label and border line

    hi,
    I want a Jpanel with label and border line like this.Inside it i need to have components.Is there a resuable component to bring this directly??
    Any solution in this regards.???
    Label-----------------------------------------------------------
    | |
    | |
    | |
    | |
    | |
    |________________________________________ |

    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html]How to Use Borders

  • Hp deskjet 1510 does not print photo without border.

    I am using Hp deskjet 1510 printer and my operating system is windows 7 ultimate. when i tried to print photo with full pages of A4 size paper without border but it doesn't print without border. so i need assist to solve this issue.
    thanks.

    Hello there! Welcome to the forums @horda ,
    I read about how you are trying to borderless print on A4 size media and it's not working out so well. After checking the printer specifications (below), you can see that this model of printer does not support borderless printing.
    I hope that helps clear up your concern!
    Have a fantastic day
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Adding border text in Print Module

    I'd like to see the text annotation enhanced in the Print Module to be able to locate text along any border edge, using any system font. This would enable to add creative text to fine art prints.

    Macro Details wrote:
    This can easely acomplished with a script.
    Could you please elaborate a bit?
    Fiddling with the .lrtemplate print template file, I only managed to set a font size outside LR-proposed values (variable metadataFontSize), but couldn't find a way to change the font or placement.

  • Photoshop: Making a text box with color or border.

    How do you fill a text box in Photoshop?
    Answer: You CAN’T.
    Solution:  You CAN do anything you want in Photoshop -we know it’s GREAT - but the steps are not always so easy.  See below for solutions to making it seem that the text box is filled with color, bordered, semi-tansparent etc.
    In Photoshop, a text box is mostly about the text inside and less about the box that surrounds it.  In other words, the box is always transparent and all effects apply to the font shapes typed inside by the user.  Photoshop (CS4) can produce incredible, professional, amazing text images. No Doubt About It!
    A Photoshop text box can display one of two types of bounding boxes: 
    Its OBJECT bounding box is there for moving the whole text layer, rotating it, duplicating it and distorting.  Clicking once on the text layer pallet and selecting the move tool (v) will produce this bounding box.  The direct selection tool (a) won’t recognize it.  Note:  If you try to resize the box as an object, it also distorts/stretches the text inside.  This can make cool effects but usually you want the text to stay the way the font was designed.  See: Layers>Type>Warp Text.
    The TEXT bounding box is there for highlighting, re-typing and selecting the margins of the actual text/paragraph etc.  Selecting the text tool and clicking over existing text will produce this bounding box.
    Some features are accessible in either mode.
    The Photoshop text tool has two types of cursors:
    The NEW text box cursor looks like a text insertion cursor (often seen in word processing) WITH a dotted box around it.
    To produce the new text box cursor just select the text tool and move over to a new work area.
    The EDIT text cursor looks very much like the ordinary cursor people are familiar with (no dotted box). 
    To produce the edit text tool, hover the text tool over EXISTING text and the cursor changes to the simple insertion shape (without the dotted box).  A click now will put you into text editing mode, not new text box mode.  This drove me batty for a while because I was used to clicking anywhere inside an existing text box and the blinking cursor would pop in automatically - usually at the end of the last letter.  This doesn’t happen in Photoshop; if that NEW text box tool is active, it will try to place a new box anywhere you click sometimes overlapping another.
    When in this mode (edit existing text) you can carefully hover the arrow to the edges of the text box and resize the bounding box without altering the shape of the text itself.  This is how you make the text box larger or smaller to fit/accommodate your needs.  You can also highlight text, insert between words/letters.  Highlighted text is available for changing its font, color, size, cutting/pasting etc. 
    To get OUT of the EDIT text mode, click the check box on the tool column above or type enter (not return) or type cmd-return (MAC), ctrl-return (WIN).  If you want to cancel any changes to an existing text box click the ex-circle on the tool column or press the esc key (top left of keyboard-escape key)
    OK, THE MAIN POINT:
    To make an effect that looks like a text box that is filled, bordered, semi-transparent etc., you will have to create an object shape (box) and place it just behind (under) the text box.  Linking the two allows you to move them around easily.  The drawback is that, when you need a larger box, you’ll have to alter the size of both boxes and possibly re-center them to each other (I know it’s sort of dumb to have so many steps just to get a shaded text box or bordered one.)
    Begin by selecting the Rectangle shape tool and draw a shape on the screen of any size.  In the layers pallet a layer is created with two items (layer thumbnail and vector mask) Double click the one on the left the layer thumbnail).  Change its color to a light one such as baby blue or yellow.
    Now select the text tool and click once over that shape.  A text box is created exactly the same size of the rectangle (any shape will work too).
    Type some text into that box and change the font type, size and color to something you might use regularly.  Check to see that the text color is black (can be changed later).  The text automatically wraps around when you reach the edge of this box and fits well (inside margins can be altered by pixel later).
    Now link the two boxes to one another.  Shift-click each layer in the layers pallet to select both and choose the link button at the bottom of the window for layers or go to Layers>Link Layers.  Now when you move one it will move the other too!
    Using the paragraph tools you can center text, indent first line, and add space between paragraphs.  Except the first paragraph seems too close to the top of the colored rectangle; doesn’t it?  Photoshop won’t add extra leading (horizontal space) between the text box and the top of the first paragraph.
    There are two ways to fix this:
    1.     Select the text tool and click inside the existing text then hover the pointer just above the little box/tab in the top center of that rectangle and bring it down just a bit.
    2.     Or you could unlink the two layers (to unlink just click link again while one of the two layers is selected in pallet) and move the colored rectangle up just a bit.
    In the first instance it was not necessary to unlink the boxes.  This is the advantage because altering the colored rectangle without unlinking will distort your text as will altering the text box if you are not in object text mode (see intro.)
    Ok, some advantages:
    Now that you have this set up you can use the background box (colored rectangle) to make other effects.  Select it as a separate layer but you won’t have to unlink it.  To make the box semi-transparent change either the layer OPACITY or the layer FILL (found in the layer pallet).
    To create a border box:
    1.     Select the colored rectangle box and under Layers>Styles>Blending Options (or just double click in an open area of the layer pallet for that shape.)
    2.     Select Stroke, change:  Fill Type color, Color black, Size 4, Position inside, Blend Mode normal, Opacity 100%. Click OK/Apply
    3.     Back in the layer pallet, change the Fill to 0% and you will just have a border with attached text box.  You may have to alter the inside text box again depending on the thickness of that border especially if you made the Position to be inside to keep the sharpness of the rectangle.
    4.     Yes this will work with other shapes and even custom shapes.  Remember to draw the shape first and immediately place a new text box over it BEFORE any other alteration is done.  This ensures that Photoshop creates a text box exactly the same size/dimension of your chosen shape.  It even makes margins fit irregular shapes like triangles.
    5.     Try it!

    Toxic Cumquat wrote:
    How do you fill a text box in Photoshop?
    Answer: You CAN’T.
    Solution:  You CAN do anything you want in Photoshop -we know it’s GREAT - but the steps are not always so easy.  See below for solutions to making it seem that the text box is filled with color, bordered, semi-tansparent etc.
    In Photoshop, a text box is mostly about the text inside and less about the box that surrounds it.  In other words, the box is always transparent and all effects apply to the font shapes typed inside by the user.  Photoshop (CS4) can produce incredible, professional, amazing text images. No Doubt About It!
    A Photoshop text box can display one of two types of bounding boxes: 
    Its OBJECT bounding box is there for moving the whole text layer, rotating it, duplicating it and distorting.  Clicking once on the text layer pallet and selecting the move tool (v) will produce this bounding box.  The direct selection tool (a) won’t recognize it.  Note:  If you try to resize the box as an object, it also distorts/stretches the text inside.  This can make cool effects but usually you want the text to stay the way the font was designed.  See: Layers>Type>Warp Text.
    The TEXT bounding box is there for highlighting, re-typing and selecting the margins of the actual text/paragraph etc.  Selecting the text tool and clicking over existing text will produce this bounding box.
    Some features are accessible in either mode.
    The Photoshop text tool has two types of cursors:
    The NEW text box cursor looks like a text insertion cursor (often seen in word processing) WITH a dotted box around it.
    To produce the new text box cursor just select the text tool and move over to a new work area.
    The EDIT text cursor looks very much like the ordinary cursor people are familiar with (no dotted box). 
    To produce the edit text tool, hover the text tool over EXISTING text and the cursor changes to the simple insertion shape (without the dotted box).  A click now will put you into text editing mode, not new text box mode.  This drove me batty for a while because I was used to clicking anywhere inside an existing text box and the blinking cursor would pop in automatically - usually at the end of the last letter.  This doesn’t happen in Photoshop; if that NEW text box tool is active, it will try to place a new box anywhere you click sometimes overlapping another.
    When in this mode (edit existing text) you can carefully hover the arrow to the edges of the text box and resize the bounding box without altering the shape of the text itself.  This is how you make the text box larger or smaller to fit/accommodate your needs.  You can also highlight text, insert between words/letters.  Highlighted text is available for changing its font, color, size, cutting/pasting etc. 
    To get OUT of the EDIT text mode, click the check box on the tool column above or type enter (not return) or type cmd-return (MAC), ctrl-return (WIN).  If you want to cancel any changes to an existing text box click the ex-circle on the tool column or press the esc key (top left of keyboard-escape key)
    OK, THE MAIN POINT:
    To make an effect that looks like a text box that is filled, bordered, semi-transparent etc., you will have to create an object shape (box) and place it just behind (under) the text box.  Linking the two allows you to move them around easily.  The drawback is that, when you need a larger box, you’ll have to alter the size of both boxes and possibly re-center them to each other (I know it’s sort of dumb to have so many steps just to get a shaded text box or bordered one.)
    Begin by selecting the Rectangle shape tool and draw a shape on the screen of any size.  In the layers pallet a layer is created with two items (layer thumbnail and vector mask) Double click the one on the left the layer thumbnail).  Change its color to a light one such as baby blue or yellow.
    Now select the text tool and click once over that shape.  A text box is created exactly the same size of the rectangle (any shape will work too).
    Type some text into that box and change the font type, size and color to something you might use regularly.  Check to see that the text color is black (can be changed later).  The text automatically wraps around when you reach the edge of this box and fits well (inside margins can be altered by pixel later).
    Now link the two boxes to one another.  Shift-click each layer in the layers pallet to select both and choose the link button at the bottom of the window for layers or go to Layers>Link Layers.  Now when you move one it will move the other too!
    Using the paragraph tools you can center text, indent first line, and add space between paragraphs.  Except the first paragraph seems too close to the top of the colored rectangle; doesn’t it?  Photoshop won’t add extra leading (horizontal space) between the text box and the top of the first paragraph.
    There are two ways to fix this:
    1.     Select the text tool and click inside the existing text then hover the pointer just above the little box/tab in the top center of that rectangle and bring it down just a bit.
    2.     Or you could unlink the two layers (to unlink just click link again while one of the two layers is selected in pallet) and move the colored rectangle up just a bit.
    In the first instance it was not necessary to unlink the boxes.  This is the advantage because altering the colored rectangle without unlinking will distort your text as will altering the text box if you are not in object text mode (see intro.)
    Ok, some advantages:
    Now that you have this set up you can use the background box (colored rectangle) to make other effects.  Select it as a separate layer but you won’t have to unlink it.  To make the box semi-transparent change either the layer OPACITY or the layer FILL (found in the layer pallet).
    To create a border box:
    1.     Select the colored rectangle box and under Layers>Styles>Blending Options (or just double click in an open area of the layer pallet for that shape.)
    2.     Select Stroke, change:  Fill Type color, Color black, Size 4, Position inside, Blend Mode normal, Opacity 100%. Click OK/Apply
    3.     Back in the layer pallet, change the Fill to 0% and you will just have a border with attached text box.  You may have to alter the inside text box again depending on the thickness of that border especially if you made the Position to be inside to keep the sharpness of the rectangle.
    4.     Yes this will work with other shapes and even custom shapes.  Remember to draw the shape first and immediately place a new text box over it BEFORE any other alteration is done.  This ensures that Photoshop creates a text box exactly the same size/dimension of your chosen shape.  It even makes margins fit irregular shapes like triangles.
    5.     Try it! Or try using Indesign!
    There. I fixed that for you.

  • Problem with strange border-colors on windows 2000

    On windows 2000, I have the problem, that my JButtons, JComboboxes and so on are rainbow-colord (if I do not set a special Border to theser Components). What can I do (if possible, I would not set explicit borders to all Components; and for Popups-Dialogues, it is not possible to set spcial borders, is it?)
    Thank you for any help!

    I'm seeing the exact same behavior on my 8.1 Laptop.  I tried deleting the Skype tmp folder as suggested elsewhere, I also uninstalled and reinstalled Skype for Desktop and still can't hang up a call  and often can't answer a call either.  Makes Skype completely useless at this point.

  • Border style in PDF and HTML

    Hello All,
    I have a report that was using Border (TOP only), and it looked
    great in live previewer. However, when I ran it in the web
    using DESFORMAT=PDF, it showed a box around each record instead
    of just the TOP line, and no border at all for DESFORMAT=HTML.
    Hope someone has encoutered the same problem and had a solution
    for it.
    Thank you very much,
    Ashley N.

    One different between Windows and Unix is that Unix is case sensitive.

  • Spry collapsible panel - panel (link) border issue

    Hi folks. I'm new to spry and I'm inserting a spry collapsible panel into a web page in Dreamweaver CS4. It all works fine but i have this very ugly border around the panel tab (the link that you click to open the panel). In frefox its a dotted line and in safari its a blue border. I havent had change to check this in other browsers/platforms. (I'm using a mac) I've read that its an accessabilty thing? which can be overcome in a different way. I have to get rid of this border as it completely spoils the design of the site..
    Anyone know how to remove this?
    Thanks in advance :-)

    Hi, I asked that same question a minute ago, then I saw your solution you wrote to someone else previously.
    Works for me too!
    Thanks for solving it!
    Here is another question if you can help...
    I currently have  ">>read more" at the end of the text in my top content tab panel, so the user knows to click and read more in a lower panel.
    I want that ">>read more" text to disappear when it is clicked and lower content section is open.
    And then a "read less" to appear so user knows to click the top tab content to close the bottom panel.
    Can this be done using this Spry Collapsible technique?
    Thanks!

  • SWF Export, no font showing in Acrobat and zoom border problem (Acrobat & Reader) - Indesign CS6

    Hi Everyone,
    If anyone could help me on this that would be great, I've spent hours on the forums and manuals to no avail.
    I'm making an interactive PDF brochure in Indesign for one of our new products and I'm having issues (actual or perceived??!!) with the SWF export and PDF creation.  I'm placing animations and video in the INDD, exporting it as an SWF (with the text option as Flash Classic Text) and then opening the SWF (not importing to a word doc or anything, just opening the SWF) with Acrobat using the advanced options to import the video resources and to enable the content when the page is opened.  I then save the file as a PDF.  In the PDF everything works as it should, the animations, the buttons, the video plays and so on.  Great.. hmm not quite.
    The trouble I am having is that all the content of the SWF when viewed in Acrobat seems to be getting rasterised/flattened - is this correct?  After the SWF is opened, Acrobat indicates no fonts in the fonts tab in the document properties so when the SWF is zoomed in Acrobat, or the saved PDF in Reader, the font gets pixelated and the document is not searchable/text can not be highlighted.  The images are not selectable either - it is as if the entire page has been flattened to one image.  Is there a way to stop this so that the SWF opened with Acrobat retains the font and individual images like a normal PDF?  Do I have to open the SWF in Flash first to set some parameters or something?  Is there something I am doing wrong when exprting the SWF from Indesign?  I think I have tried about every possible export combination.  When I open the .HMTL (exported at the same time as the SWF from Indesign) in a browser, the same happens.  All the animations work but the text appears to be rasterised/flattened/not searchable.  Sorry if I'm not using the correct terminology.
    I have tried importing the SWF back into another new INDD and exporting that as an interactive PDF but then the video does not work.  I suppose I could try exporting all the individual animations as SWFs, importing them all and trying to get them to work with the video but I can see that will take quite some time and does not seem to be a guaranteed solution from what I have read on the forums - video playback being the issue.
    Another problem is that when the SWF, or saved PDF, is zoomed in Acrobat/Reader between approx 150% and 210% a thick white border appears in the document and the content is squashed into the middle creating a slightly pixelated and narrow page.  When I zoom out from the page I get a small white line on the right hand border at around 70% zoom.  Please see images.  Does anyone have any idea why this is happening and what I can do to fix it?
    On another, sort of related topic, my timing panel went blank yesterday and was not showing any animations in documents that it had been used to order and synch animations on page load as well as new documents.  The panel was blank.  I updated to V8.0.1 and the panel sprang back into life - hope that helps anyone else finding the same problem.
    I am not very familiar with Indesign/Acrobat/Flash so I guess all the above could be what I'm doing or I could be asking  really dumb questions - apologies from a newbie.
    Best,
    Emily

    Hi All,
    I have now pretty much solved all the issues by creating the SWF in Flash rather than Indesign.  I would advise anyone looking to create an interative PDF with animation and interactivity to go with Flash from the start.  While Flash is a little more involved to create the same effects as Indesign, the extra time taken will ensure a more controllable and better looking PDF in terms of text quality, scalability and so on.  Plus you will not spend days trying to get video to work along side imported SWF etc in Indesign.  One of the best controls in Flash is being able to set the stage.scaleMode for the document so the PDF still looks crisp when zooming, no white borders etc.  So, create the .fla, export to .SWF, open the .SWF with Acrobat, modify the advanced settings to enable start on page load and save as a PDF.  If you don't know Flash, I didn't a couple of days ago, watch a couple of tutorials on Youtube.. buttons, tweens, embedding video and you'll be ready.  Don't be put off by ActionScript, there are really handy Code Snippets in CS6 that do all the heavy lifting for you.
    Sorry Indesign!
    Best,
    Em

  • Xp: bug: jbutton: transparent + no border

    hi,
    we have tested our swing-application under win-xp and must see that the jbuttons doesn't be shown correctly. this problem does exist only under win-xp. in win9x, winnt, win2k it works perfectly.
    we use own designed buttons with transparent gif's and no borders. here is an example:
    (look+feel = system)
    ivjButNext = new javax.swing.JButton();
    ivjButNext.setName("ButNext");
    ivjButNext.setBounds(350, 5, 103, 42);
    ivjButNext.setOpaque(false);
    ivjButNext.setBackground(new java.awt.Color(0,100,255));
    ivjButNext.setForeground(java.awt.Color.black);
    ivjButNext.setIcon(new javax.swing.ImageIcon(getClass().getResource("but_1.gif")));
    ivjButNext.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("but_2.gif")));
    ivjButNext.setDisabledIcon(new javax.swing.ImageIcon(getClass().getResource("but_3.gif")));
    ivjButNext.setFocusPainted(false);
    ivjButNext.setBorderPainted(false);
    ivjButNext.setFont(new java.awt.Font("Arial", 1, 12));
    ivjButNext.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    ivjButNext.setText(resLocale.getString("next"));
    ivjButNext.setSelected(true);we get the following problems
    1. the buttons will not be transparent. we don't know if the gif not be shown correctly or the button-background.
    2. the border is still visible. the borderpainted/focuspainted-command doesn't work correctly
    thx for prof. answers
    oliver

    It is because XP laf doesn't have the same behavior as previous Wndows laf (skins!).
    if you want to have your own design change the UI for the buttons :
    JButton b = new JButton("Test");
    b.setUI(new BasicButtonUI());
    b.setBorder(BasicBorders.getButtonBorder()); // don't forget for buttons only
    JToggleButton tb = new JToggleButton("Test");
    tb.setUI(new BasicToggleButtonUI());If you want to set it for all buttons:
    try {
         UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch (Exception e) {
         e.printStackTrace();
    UIManager.put("ToggleButtonUI", "javax.swing.plaf.basic.BasicToggleButtonUI");
    UIManager.put("ButtonUI", "javax.swing.plaf.basic.BasicButtonUI");(don't forget to set also the border for the JButtons if you want it)
    Denis

  • How can I make a decorative page border in Pages?

    How can I make a decorative page border in Pages?

    Hi Janet,
    I suppose that you are asking how to include a decorative border of your design into a pages document. How you design that border is rather out of the range of these discussions. So, let's say that you have a graphic that approximates a picture frame and has the required dimensions to frame your content.
    If you want to have the graphic appear on every page, Drag or Insert > Choose, to incorporate your design in to the document. The position it as you want it, and then Arrange > Send to Background and Format > Advanced > Move Object to Section Master.
    If there is more than one section in your document, there may be more considerations, but if you do this at the outset in the creation of your document, the design of the first section will flow to subsequent sections.
    Regards,
    Jerry

  • Matte in Save for Web matte is adding a border

    I have an image that has a transparent background and a thick black border across the top.
    When I go to Save for Web and select a white matte, it adds a ~1px white border to the top of the image.  Why is it doing that and how can I get it to stop (other than adding white layers for the background).?
    And where is 4-up?
    It would be really nice if Adobe would list features they delete when listing "What's New".

    I tried nudging the straight black border up a pixel, but that didn't work. 
    And I'm not using "clip to artboard" so the placement on the artboard is irrelevant.
    I know what mattes are for, I have jagged lines and text within the image.  I prefer not to add a white object to the back of every graph, and I'd prefer not to have 20 artboards on this one page.
    I never saw a matte add pixels to straight lines before and never outside the boundaries of the image.  Surely that is not what Adobe intended.
    here's before:
    http://www.texasahead.org/economy/tracking/data/images/homes_old.png
    here's after:
    http://www.texasahead.org/economy/tracking/data/images/homes.png

  • Pop Up Ads on Border of Websites?

    Hello,
    I have pop up ads that repeatedly appear around the border of many websites. I have ad blocked installed, and that removes the images, but the large black "hide ad" bar still appears, and clicking that brings on more pop-ups.  I hae run a virus and malware scan, and that turned up nothing harmful, so really it's just a nuisance.  If anyone has a solution, I'd be forever greatful. A picture of the problem is below.

    You have installed the Downlite, aka VSearch, adware/malware. For more information and removal instructions, see:
    http://www.thesafemac.com/arg-downlite/
    Adware like Downlite is often found in groups - I've seen as many as 4 installed by one installer - so you'd be wise to search for any other adware using my Adware Removal Guide, and remove anything else you find.
    (Fair disclosure: The Safe Mac is my site, and contains a Donate button, so I may receive compensation for providing links to The Safe Mac. Donations are not required.)

Maybe you are looking for