Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages
Started by Sven Goetgeluck
Tue, 23 Dec 2003 12:44
JBorder question
Author: Sven Goetgeluck
Date: Tue, 23 Dec 2003 12:44
Date: Tue, 23 Dec 2003 12:44
61 lines
2857 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads