🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1278

JBorder question

#1278
From: Sven Goetgeluck
Date: Tue, 23 Dec 2003 12:44
61 lines
2857 bytes
Hi , I have a jpanel were i put some buttons on it ,
when using the application in jdk 1.2 the border is gone but weh using the
application i'll get an border wich is very annoying
because the panel height is equal to buttons heigt and with the border
around the buttons are half smaller
what can be the problem??

i'm using jbuilder 3


public class VideoControllPanel extends JToolBar {
  JButton menubarplayButton = new JButton();

  ResourceBundle recources ;
  ResourceBundle images ;
  public VideoControllPanel() {
    try  {
      jbInit();
    }
    catch(Exception ex) {
      ex.printStackTrace();
    }
  }



  private void jbInit() throws Exception {
     loopinimage = new ImageIcon(images.getString("LOOPIN"));
    loopimage = new ImageIcon(images.getString("LOOP"));

    setBackground(new java.awt.Color(76, 90, 109));
    setForeground(new java.awt.Color(76, 90, 109));
    setAlignmentX((float) 0.0);
    //setBorder(null);
    this.setOpaque(false);
    setBorderPainted(false);
    this.setBorder(null);
    setFloatable(false);
    this.setMargin(new Insets(0, 0, 0, 0));


    menubarplayButton.setBackground(Color.white);
    menubarplayButton.setMaximumSize(new Dimension(50, 20));
    menubarplayButton.setMinimumSize(new Dimension(50, 20));
    menubarplayButton.setPreferredSize(new Dimension(50, 20));
    menubarplayButton.setMargin(new Insets(0, 0, 0, 0));
    menubarplayButton.setIcon(new ImageIcon(images.getString("PLAY")));
    menubarplayButton.setPressedIcon(new
ImageIcon(images.getString("PLAY_IN")));
    menubarplayButton.setRolloverIcon(new
ImageIcon(images.getString("PLAY_OUT")));
    menubarplayButton.setBorderPainted(false);
    menubarplayButton.setBorder(null);

    menubarplayButton.setFocusPainted(false);
       this.setAlignmentX((float) 0.0);
    this.setAlignmentY((float) 0.0);
.....


greetings Sven
Technical Details
Message-ID: <3fe838a5$0$5268$ba620e4c@news.skynet.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!louie!tjb!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,622d41ae5dac385a,start
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-12-23 04:44:27 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!louie!tjb!not-for-mail
From: "Sven Goetgeluck" <sven.goetgeluck@pandora.be>
Newsgroups: borland.public.jbuilder.java.swing
Subject: JBorder question
Date: Tue, 23 Dec 2003 13:44:27 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Lines: 63
Message-ID: <3fe838a5$0$5268$ba620e4c@news.skynet.be>
Organization: -= Belgacom Usenet Service =-
NNTP-Posting-Host: 217.136.183.76
X-Trace: 1072183462 reader4.news.skynet.be 5268 217.136.183.76:1032
X-Complaints-To: usenet-abuse@skynet.be