Border not rendering properly on JPanel

This is just a general question to see if I'm the only one having this problem or whether it is just a bug.
I've got a Jframe with a couple of Jpanels within it. I want a border round one of the panels but for some reason the border only shows fully around 3 edges and only partly along the edge adjacent to the other JPanel.
I thought this might be a layering problem with the panel without the border being placed on top of the border itself but I've had a similar problem with some JTextField. I've got 3 JTextFields in a JPanel each having their own border but every now and again the border will disappear from around the bottom JTextField.
I realise this may well be a problem specific to my system or OS (Win 2000) but I thought I'd just check.
Thanks, Clarkie

Thanks for replying so quickly. Here is a cut down version of my code. I appologise now for using NetBeans as I believe this is frowned upon by many users of these forums.
* NewJFrame.java
* Created on 14 August 2006, 15:17
package ets;
import java.awt.*;
import javax.swing.*;
* @author  administrator
public class sscce extends javax.swing.JFrame
    /** Creates new form NewJFrame */
    public sscce()
        initComponents();
        this.setIconImage(new ImageIcon("images/redtick48x48.gif").getImage());
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents()
        java.awt.GridBagConstraints gridBagConstraints;
        panelCont = new javax.swing.JPanel();
        panelNav = new javax.swing.JPanel();
        panelBtnsAndImg = new javax.swing.JPanel();
        panelNavBtns = new javax.swing.JPanel();
        btnNav_client = new javax.swing.JButton();
        btnNav_job = new javax.swing.JButton();
        btnNav_inv = new javax.swing.JButton();
        btnNav_cert = new javax.swing.JButton();
        btnNav_admin = new javax.swing.JButton();
        panelLogout = new javax.swing.JPanel();
        panelMain = new javax.swing.JPanel();
        panelClientMenu = new javax.swing.JPanel();
        panelClientMent_title = new javax.swing.JPanel();
        labClientMent_title = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("ETS - Client Management System");
        setBackground(new java.awt.Color(255, 255, 255));
        setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH);
        setName("mainFrame");
        panelCont.setLayout(new java.awt.BorderLayout());
        panelCont.setBackground(new java.awt.Color(255, 255, 255));
        panelNav.setLayout(new java.awt.BorderLayout());
        panelNav.setBackground(new java.awt.Color(255, 255, 255));
        panelNav.setMaximumSize(new java.awt.Dimension(150, 150));
        panelNav.setPreferredSize(new java.awt.Dimension(150, 100));
        panelBtnsAndImg.setLayout(new java.awt.GridLayout(0, 1));
        panelBtnsAndImg.setBackground(new java.awt.Color(255, 255, 255));
        panelBtnsAndImg.setMaximumSize(new java.awt.Dimension(150, 32767));
        panelNavBtns.setLayout(new java.awt.GridLayout(0, 1));
        panelNavBtns.setBackground(new java.awt.Color(255, 255, 255));
        btnNav_client.setText("Clients");
        panelNavBtns.add(btnNav_client);
        btnNav_job.setText("Jobs");
        panelNavBtns.add(btnNav_job);
        btnNav_inv.setText("Invoices");
        panelNavBtns.add(btnNav_inv);
        btnNav_cert.setText("Certificates");
        panelNavBtns.add(btnNav_cert);
        btnNav_admin.setText("Admin");
        panelNavBtns.add(btnNav_admin);
        panelBtnsAndImg.add(panelNavBtns);
        panelNav.add(panelBtnsAndImg, java.awt.BorderLayout.NORTH);
        panelLogout.setLayout(new java.awt.BorderLayout());
        panelLogout.setBackground(new java.awt.Color(255, 255, 255));
        panelLogout.setMaximumSize(new java.awt.Dimension(150, 32767));
        panelNav.add(panelLogout, java.awt.BorderLayout.CENTER);
        panelCont.add(panelNav, java.awt.BorderLayout.WEST);
        panelMain.setLayout(new java.awt.CardLayout());
        panelMain.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        panelClientMenu.setLayout(new java.awt.GridBagLayout());
        panelClientMenu.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        panelClientMent_title.setLayout(new java.awt.BorderLayout());
        labClientMent_title.setFont(new java.awt.Font("Tahoma", 0, 36));
        labClientMent_title.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labClientMent_title.setText("Main Panel");
        panelClientMent_title.add(labClientMent_title, java.awt.BorderLayout.CENTER);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.ipadx = 5;
        gridBagConstraints.ipady = 15;
        panelClientMenu.add(panelClientMent_title, gridBagConstraints);
        panelMain.add(panelClientMenu, "card2");
        panelCont.add(panelMain, java.awt.BorderLayout.CENTER);
        getContentPane().add(panelCont, java.awt.BorderLayout.CENTER);
        jMenu1.setText("Menu");
        jMenuBar1.add(jMenu1);
        setJMenuBar(jMenuBar1);
        pack();
    }// </editor-fold>
     * @param args the command line arguments
    public static void main(String args[])
        Toolkit tk = java.awt.Toolkit.getDefaultToolkit();
        java.awt.EventQueue.invokeLater(new Runnable()
            public void run()
                sscce s = new sscce();
                s.setExtendedState(javax.swing.JFrame.MAXIMIZED_BOTH);
                s.setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton btnNav_admin;
    private javax.swing.JButton btnNav_cert;
    private javax.swing.JButton btnNav_client;
    private javax.swing.JButton btnNav_inv;
    private javax.swing.JButton btnNav_job;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JLabel labClientMent_title;
    private javax.swing.JPanel panelBtnsAndImg;
    private javax.swing.JPanel panelClientMent_title;
    private javax.swing.JPanel panelClientMenu;
    private javax.swing.JPanel panelCont;
    private javax.swing.JPanel panelLogout;
    private javax.swing.JPanel panelMain;
    private javax.swing.JPanel panelNav;
    private javax.swing.JPanel panelNavBtns;
    // End of variables declaration
}Also, I sometimes get a diagonal line going from the top left corner of a container to the first element when the JFrame is resized or reloaded from the Taskbar.
Thanks again, Clarkie

Similar Messages

  • The drop-down menu is not rendered properly with iframe where a pdf is embedded

    I want to embed a pdf in a webpage, where the drop-down menu needs to be displayed on the top of the pdf. I am using iframe to embed the pdf.
    The drop-down menu is not properly rendered (border-radius and box-shadow) in Firefox at http://mysite1.webege.com/test.html.

    *[https://bugzilla.mozilla.org/show_bug.cgi?id=779435 bug 779435] - the drop-down menu is not rendered properly with iframe where a pdf is embedded
    It is usually best to attach a minimal test case to the bug report.<br />
    In that case the code doesn't get lost if the page is removed from the server.

  • Command links are not rendering properly in panel collection toolbar facet

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Command links are not rendering properly in the toolbar facet of panel collection

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • TaskMenu is not rendering properly using rendered attribute withSecurityCxt

    Hi All,
    I am trying to use this code rendered="#{!(securityContext.userInRole['ZPM_ENT_MARKETING_BUDGET_MANAGER_DUTY'])}" in the itemNode UI component of my Budget_taskmenu.xml. But UI is not rendering it properly.
    I have checked the same code in the backing bean and it is returning true and false as per expectation but at UI level my menu is not coming properly (it is coming as #{null} in place of name in menu).
    But same piece of code is working fine in my .jsff file where I am doing the same check in rendered attribute.
    rendered="#{!(securityContext.userInRole['ZPM_ENT_MARKETING_BUDGET_MANAGER_DUTY'])}"
    Any Suggestion.
    Regards,
    Sarvesh Kaushik

    Hi Frank,
    Thanks for your reply.
    But I found the actual root cause of the issue.
    There is nothing wrong in the expression rendered="#{!(securityContext.userInRole['ZPM_ENT_MARKETING_BUDGET_MANAGER_DUTY'])}".
    The actual issue with my code was one label name was wrong bcoz of which menu was not rendering properly.
    Thanks and Regards,
    Sarvesh Kaushik

  • MyFaces schedule component is not rendering properly.

    Hello everybody.
    I am trying to use the Tomahawk schedule component with Jdeveloper 10.1.3.2. It is not rendering properly.
    The schedule entries and the header line are mising for weeks.
    I removed the default-render-kit-id element from the faces-config.xml. Nothing changed.
    Used versions:
    - Jdeveloper 10.1.3.2
    - myFaces 1.5.1
    - tomahawk 1.5.1
    Any suggestions?
    Thanks.

    Hi,
    did you post this question on the MyFaces open source list?
    Frank

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • Why are previews in Bridge blurry (not rendering properly)?

    Why are previews in Bridge blurry (not rendering properly)?
    I found a simple answer to this question: control click on the thumbnail and select "purge cache for selection"
    After years of intermittently having this problem, this solved the issue. I had just finished a fresh install of main sys hd (new hd) and first time opening bridge encountered this issue again after not having the problem for a few years.
    Hope this helps others.  

    Why are previews in Bridge blurry (not rendering properly)?
    I found a simple answer to this question: control click on the thumbnail and select "purge cache for selection"
    After years of intermittently having this problem, this solved the issue. I had just finished a fresh install of main sys hd (new hd) and first time opening bridge encountered this issue again after not having the problem for a few years.
    Hope this helps others.  

  • Crystal report not rendering properly on Mozilla ?

    Hi,
    We are using VS2008,CR2008 on server 2012. In Chrome & IE CR working properly.
    But when I am using Mozilla with updated version not rendering properly.

    This is an old version of this issue that might give some insight:
    *[http://stackoverflow.com/questions/19768144/crystal-report-v10-5-toolbar-not-visible-on-firefox-but-visible-on-ie-and-chrome]
    also (but I am not sure what version you are using): " CR 10.5 is one of the versions that was not updated to support IIS7." from [http://www.experts-exchange.com/Database/Reporting/Crystal_Reports/Q_28350929.html]
    It might be ideal to ask a developer in stackoverflow.com or file a bug with webcompat.com for expert investigation for crystal reports. I am sorry I could not be more helpful.

  • PDFs not rendering properly with hpeprint or AirPrint

    Both my iPhone 4 and my iPad 2 connect to my LaserJet Pro 400 color MFP M475dn (connected via ethernet cable to an Apple Airport Extreme) and print most things just fine. However, when I use either hpeprint or Apple AirPrint options to attempt to print, PDFs are NOT rendered properly... the graphic logos appear ok on a PDF document, but text is a complete, incomprehensible mess. I have the latest firmware and software. Any ideas? Despite all the latest firmware and software, could it be a driver issue?Thanks in advance.

    Hi CTU_Agent, 
    Your LaserJet Pro 400 color MFP M475dn is a commercial product. I suggest posting in the forum for HP Business Support for a better chance at finding a prompt solution.
    You may find the commercial Laserjet board here.
    http://h30499.www3.hp.com/t5/Printers-LaserJet/bd-p/bsc-413
    Hope you find the help you need;
    RobertoR
    Remember ▼
    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • Stylesheet not rendering properly on child site

    I have a stylesheet in the Style Library of a parent publishing site.  A Master Page in a child site is using the stylesheet, but the styles are not rendered properly.  I copied the same stylesheet and used it in an ASP.NET web form Master Page
    and the styles rendered properly.  I then created a basic HTML page and used that stylesheet and it worked out fine.  Why won't it work in SharePoint 2013?  Is there a clash with the default styles and can I disable the default styles?
    Thanks,
    Mike

    Hi,
    To use an External Stylesheet, you can reference it as what the links below suggests:
    http://techtrainingnotes.blogspot.jp/2012/05/adding-javascript-and-css-to-sharepoint.html
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/Understanding-SharePoint-CSSLink-and-how-to-add-your-custom-CSS-in-SharePoint-2010.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Fonts not rendering properly. Am I missing something?

    I have PS Elements 10 for Mac. I've been trying to figure out why my text is not rendering properly. I type out a word and although caps lock is OFF, the text shows up in all caps. Also, the spacing between letters is wide. I've been trying to search through help and options, but can't find anything. Does anyone have any suggestions on what could be wrong?

    At the far left of the options bar is a tiny triangle. Click it and choose Reset Tool from the popout menu.

  • Transitions not rendering properly - corruption

    My transitions are not rendering properly when I try layering two. It was working fine before, now suddenly it is not. I am using FCP 6 and I have Slick FX add ons. The add on was working fine before. I've tried trashing the FCP preferences but to no avail.
    See here for a sample -
    http://metrosi.com/Picture3.png
    Any other suggestions? Please help!
    Jennifer

    Seems that the problem is with specific Slick FX transitions. Ones under Slick FX Transitions - 3D.
    Things tried....
    Tried using the Rotate transition in another location, same issue. Looked ok in the timeline prior to rendering.
    There is a Slick FX transition in the timeline that appears to be rendering properly...Cylinder. Put another in a different part of the timeline and it rendered fine (Spin Zoom)
    Tried another 3D one (Spherize) -looks fine in the timeline before rendering...rendered fine.
    Tried another 3D one (Tube) - did not work.
    Tried adding Rotate in after adding others...still not working.
    Turnstile not working also (opened a new sequence and tried adding it)
    Twist not working either.
    So...not sure what to do about it!

  • Graphs not rendering properly

    I am using Discoverer 4i with Oracle Applications 11i
    Hosted on Linux Redhat
    All my graphs that come with Oracle BI Intelligence workbooks are Not rendering properly on the client side (Graphs come as .gif from the server). The[b] graphs display in dark green and black color (and not readable).
    e.g.
    Customer Intelligence (responsibility) -> Customer Intelligence Overview
    Supplier Performance (responsibility) -> Supplier Performance
    Any idea why / fix for this issue?
    Thanks in advance for your help.

    For Your Info: I found the fix on Metalink Note ID: 341637.1

  • I had designed a Web App and tested on Firefox 18, 19, 20 and now when i'm checking it on 21 version it's not rendering properly. Now tell me what should i do.

    I had designed a Web App and tested on Firefox 18, 19, 20 and now when I'm checking it on 21 version it's not rendering properly. Now tell me what should i do.

    Hi charlesmoizeau, why do you want to install Firefox 18? To be compatible with a particular website or add-on? There might be a better workaround, but without the details, it's hard to say.
    See this help article: [[Install an older version of Firefox]]. And be aware that Mozilla discloses [https://www.mozilla.org/security/known-vulnerabilities/firefox.html security flaws] after each new release.

Maybe you are looking for

  • APP - Vendor Exception

    hi all, i would like to know how to configure APP so that the company can make automatic payment to all vendor but not certain vendors based on the vendor number. I am at the learning stage so if there are scenario could you please bring it up with a

  • [unixODBC][Driver Manager]Data source name not found, and no default driver

    Hi, I'm running Red Hat Linux 5, MySQL and BOXI 3.1 I try and schedule a report in the CMC and the report fails with the error A database error occured. The database error text is: {Driver Manager} Data source name not found, and no default driver sp

  • Jdeveloper not working all of sudden

    My jdeveloper stop working. I tried restart machine, reinstall Jdev. no help. Here is the error I got: 500 Server Error The following error occurred: [code=CANT_CONNECT] Could not connect because of networking problems. Contact your system administra

  • Portal 10.1.4 seeded Page link Item type - Getting it to open in new window

    I've been working on creating a new portal and am having some difficulty with Page Links. I am using version 10.1.4 out of the box. When I create a page link to another page and click on it, the page always takes over the current window. Under normal

  • 64 bit serial driver with 32 bit VISA causing problems?

    I'm running LabView 2012 on Linux (kernel 3.10) on an x86_64 machine. I think that VISA is not playing nicely with my 64-bit serial driver. I have a few instuments connected through an NPort serial to ethernet converter. Instruments which output data