TitleBorder - Default Font Title = Blue - Need to change to BLACK.

Hello,
I have a menu with several Title Borders, The titles however area appearing in Blue, which i have not set,
I need to change this back to black but i am unable to do so.
Has anyone else had this problem or know how to solve it?
I am using Borland Jbuilder, not sure if that is relevant.
package rmitest;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.Border;
import DateTimeBean.DateTimeBean;
import javax.swing.border.TitledBorder;
import javax.swing.border.EtchedBorder;
import java.rmi.*;
import java.rmi.Naming;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.awt.event.*;
import javax.swing.*;
import java.util.Calendar;
import java.util.Date;
import java.sql.SQLException;
import java.util.Vector;
public class Menu extends JFrame implements ActionListener {
    JPanel contentPane;
    JTextArea jTextAreaTime = new JTextArea(3,10);
    Border border1 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
      Color.white, new Color(156, 156, 158));
    private final int DELAY = 1000;
    static DateTimeBean dateTimeBean;
    JPanel jPanel1 = new JPanel();
   // TitledBorder titledBorder1 = new TitledBorder("");
    Border border2 = new TitledBorder(border1, "");
    Border border3 = new TitledBorder(border2, "Buttons");
    JPanel jPanel2 = new JPanel();
    TitledBorder titledBorder2 = new TitledBorder("");
    Border border4 = BorderFactory.createEtchedBorder(Color.white,
            new Color(156, 156, 158));
    Border border5 = new TitledBorder(border4, "Info");
    JPanel jPanel3 = new JPanel();
    Border border6 = BorderFactory.createEtchedBorder(Color.white,
            new Color(156, 156, 158));
    Border border7 = new TitledBorder(border6, "More Buttons");
    Border border8 = BorderFactory.createMatteBorder(6, 6, 6, 6, Color.black);
    Border border9 = BorderFactory.createLineBorder(Color.black, 2);
    JTextArea jTextArea1 = new JTextArea();
    Border border10 = BorderFactory.createLineBorder(Color.black, 2);
    JPanel jPanel4 = new JPanel();
    Border border11 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
    Border border12 = new TitledBorder(border11, "Shit");
    Border border13 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
    Border border14 = new TitledBorder(border13, "Other Shit");
    Border border15 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
            Color.white, new Color(156, 156, 158));
    Border border16 = new TitledBorder(border15, "Other Shit");
    Border border17 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
            Color.white, new Color(156, 156, 158));
    Border border18 = new TitledBorder(border17, "Shit");
    Border border19 = BorderFactory.createLineBorder(Color.BLACK, 1);
    TitledBorder titledBorder3 = new TitledBorder("");
    Border border20 = BorderFactory.createEtchedBorder(Color.white,
            new Color(156, 156, 158));
    Border border21 = new TitledBorder(border20, "TEXT");
    XYLayout xYLayout1 = new XYLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    Border border22 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
            Color.white, new Color(156, 156, 158));
    Border border23 = new TitledBorder(border22, "Action Log");
    JScrollPane jScrollPane2 = new JScrollPane();
    Border border24 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
            Color.white, new Color(156, 156, 158));
    Border border25 = new TitledBorder(border24, "Data");
    JButton jButton1 = new JButton();
    Icon exitButton = new ImageIcon("exit.JPG");
    Calendar clientCal = Calendar.getInstance();
    Iserver s;
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    JButton jButton5 = new JButton();
    javax.swing.JTextArea jTextArea3 = new JTextArea();
    javax.swing.JTextArea jTextArea2 = new JTextArea();
    public Vector<Object> contents;
    javax.swing.JRadioButton jRadioButton1 = new JRadioButton();
    javax.swing.JRadioButton jRadioButton2 = new JRadioButton();
    XYLayout xYLayout2 = new XYLayout();
    Border border26 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
      new Color(156, 156, 158));
    Border border27 = new TitledBorder(border26, "View Auctions");
    XYLayout xYLayout3 = new XYLayout();
  XYLayout xYLayout4 = new XYLayout();
  javax.swing.JLabel jLabel1 = new JLabel();
  Border border28 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
      new Color(156, 156, 158));
  Border border29 = new TitledBorder(border28, "Create Auction");
  javax.swing.JRadioButton jRadioButton3 = new JRadioButton();
  javax.swing.JRadioButton jRadioButton4 = new JRadioButton();
  javax.swing.JLabel jLabel2 = new JLabel();
  javax.swing.JTextField jTextField1 = new JTextField();
  javax.swing.JTextArea jTextArea4 = new JTextArea();
  javax.swing.JLabel jLabel3 = new JLabel();
  javax.swing.JTextField jTextField2 = new JTextField();
  javax.swing.JTextField jTextField3 = new JTextField();
  javax.swing.JTextField jTextField4 = new JTextField();
  javax.swing.JLabel jLabel4 = new JLabel();
  javax.swing.JLabel jLabel5 = new JLabel();
  javax.swing.JLabel jLabel6 = new JLabel();
  javax.swing.JButton jButton6 = new JButton();
  Border border30 = javax.swing.BorderFactory.createLineBorder(Color.white, 2);
  Border border31 = javax.swing.BorderFactory.createLineBorder(Color.lightGray,
      2);
  Border border32 = javax.swing.BorderFactory.createLineBorder(SystemColor.
      inactiveCaptionText, 2);
  Border border33 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
  Border border34 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
  Border border35 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
  Border border36 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
      RAISED, Color.white, new Color(156, 156, 158));
  Border border37 = new TitledBorder(border36, "Action Log");
  Border border38 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
      new Color(156, 156, 158));
  Border border39 = new TitledBorder(border38, "Info");
  Border border40 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
      new Color(156, 156, 158));
  Border border41 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
      new Color(156, 156, 158));
  Border border43 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
      new Color(156, 156, 158));
  Border border44 = new TitledBorder(border43, "Bid On An Auction");
  Border border42 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
      RAISED, Color.white, new Color(156, 156, 158));
  Border border45 = new TitledBorder(border42, "tyeryry");
  public Menu()
        super() ;
        enableEvents(AWTEvent.WINDOW_EVENT_MASK);
        dateTimeBean = new DateTimeBean();
        Timer timer = new Timer(DELAY, this);
        timer.start();
        try {
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setContentPane( new MyPanel() ) ;
            setSize( 1000 , 700 );
            setVisible( true );
            jbInit();
          } catch (Exception exception)
            exception.printStackTrace();
    private void jbInit() throws Exception {
        this.setForeground(Color.lightGray);
        this.setResizable(false);
        setTitle("Assignment - Bidding System");
        jTextAreaTime.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
        jTextAreaTime.setBorder(border1);
        jTextAreaTime.setOpaque(true);
        jTextAreaTime.setEditable(false);
        contentPane = (JPanel) getContentPane();
        contentPane.setSize(new Dimension(1000, 700));
        contentPane.setLayout(xYLayout1);
        contentPane.setBackground(Color.white);
        contentPane.setEnabled(true);
        contentPane.setDoubleBuffered(false);
        contentPane.setMinimumSize(new Dimension(1000, 700));
        contentPane.setOpaque(true);
        contentPane.setPreferredSize(new Dimension(1000, 700));
        jPanel1.setBorder(border29);
    jPanel1.setLayout(xYLayout4);
    jPanel2.setFont(new java.awt.Font("Arial Black", Font.PLAIN, 11));
    jPanel2.setBorder(border44);
        jPanel2.setLayout(xYLayout3);
    jPanel3.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
    jPanel3.setBorder(border27);
        jPanel3.setLayout(xYLayout2);
        jTextArea1.setBorder(BorderFactory.createLineBorder(Color.black));
        jTextArea1.setText("");
        jTextArea1.setEditable(false);
    jScrollPane1.setBorder(border37);
    jScrollPane1.setOpaque(false);
        jScrollPane2.setBorder(border25);
        jScrollPane2.setOpaque(false);
        jButton1.setForeground(Color.black);
        jButton1.setRolloverIcon(null);
        jButton1.setIcon(exitButton);
        jButton1.setText("Exit");
        jButton1.addActionListener(new Menu_jButton1_actionAdapter(this));
        jButton2.setText("jButton2");
        jButton3.setText("jButton3");
        jButton4.setText("jButton4");
        jTextArea3.setEditable(false);
        jTextArea3.setText("");
        jTextArea2.setToolTipText("");
    jTextArea2.setEditable(false);
    jTextArea2.setText("");
        jButton5.setText("Go");
        jButton5.setVisible(true);
        ButtonGroup RadioGroupView = new ButtonGroup();
        ButtonGroup RadioGroupCreate = new ButtonGroup();
    jLabel1.setText("Auction Type:");
    jRadioButton3.setText("English");
    jRadioButton4.setText("Vickrey");
    jRadioButton3.setOpaque(false);
    jRadioButton4.setOpaque(false);
    jTextArea4.setBorder(border35);
    jButton6.addActionListener(new Menu_jButton6_actionAdapter(this));
    RadioGroupCreate.add(jRadioButton3);
    RadioGroupCreate.add(jRadioButton4);
    jLabel2.setText("Item Name:");
    jTextField1.addActionListener(new Menu_jTextField1_actionAdapter(this));
    jLabel3.setText("Description:");
    jLabel4.setText("Reserve Price");
    jLabel5.setText("Buy Out");
    jLabel6.setText("Start Price");
    jButton6.setText("Create");
    RadioGroupView.add(jRadioButton1);
        RadioGroupView.add(jRadioButton2);
        jButton5.setToolTipText("");
        jRadioButton1.setOpaque(false);
        jRadioButton1.setToolTipText("");
        jRadioButton1.setText("View All Auctions");
        jRadioButton1.addActionListener(new Menu_jRadioButton1_actionAdapter(this));
        jRadioButton2.setOpaque(false);
        jRadioButton2.setText("View Auction");
    jPanel1.setOpaque(false);
        jPanel2.setOpaque(false);
        jPanel3.setOpaque(false);
    jPanel1.add(jLabel1, new XYConstraints(9, 6, -1, -1));
    jPanel1.add(jLabel2, new XYConstraints(9, 26, -1, -1));
    contentPane.add(jTextAreaTime, new XYConstraints(23, 599, 82, 56));
        contentPane.add(jButton1, new XYConstraints(820, 606, 96, 39));
        contentPane.add(jButton2, new XYConstraints(168, 606, 89, 40));
        contentPane.add(jButton3, new XYConstraints(275, 606, 96, 42));
        contentPane.add(jButton4, new XYConstraints(396, 606, 94, 45));
        jPanel3.add(jRadioButton2, new XYConstraints(9, 24, -1, -1));
        jPanel3.add(jButton5, new XYConstraints(177, 110, -1, -1));
        jPanel3.add(jRadioButton1, new XYConstraints(9, 0, -1, -1));
    jPanel1.add(jTextField1, new XYConstraints(85, 26, 118, -1));
    jPanel1.add(jRadioButton3, new XYConstraints(81, 0, -1, -1));
    jPanel1.add(jRadioButton4, new XYConstraints(144, 0, -1, -1));
    jPanel1.add(jLabel3, new XYConstraints(9, 50, -1, -1));
    jPanel1.add(jTextArea4, new XYConstraints(86, 53, 116, 50));
    jPanel1.add(jButton6, new XYConstraints(308, 107, 102, 22));
    jPanel1.add(jTextField2, new XYConstraints(361, 30, 50, 15));
    jPanel1.add(jTextField3, new XYConstraints(361, 55, 50, 15));
    jPanel1.add(jTextField4, new XYConstraints(361, 79, 50, 15));
    jPanel1.add(jLabel6, new XYConstraints(284, 80, -1, -1));
    jPanel1.add(jLabel4, new XYConstraints(266, 29, -1, -1));
    jPanel1.add(jLabel5, new XYConstraints(296, 56, -1, -1));
    contentPane.add(jPanel1, new XYConstraints(15, 85, 451, 161));
    contentPane.add(jPanel3, new XYConstraints(735, 86, 241, 161));
    contentPane.add(jScrollPane1, new XYConstraints(24, 465, 950, 122));
    jScrollPane1.getViewport().add(jTextArea2);
    contentPane.add(jScrollPane2, new XYConstraints(22, 256, 951, 196));
    jScrollPane2.getViewport().add(jTextArea3);
    contentPane.add(jPanel2, new XYConstraints(478, 88, 245, 161));
    jButton2.setText("Client");
                jButton2.addActionListener(new java.awt.event.ActionListener() {
         public void actionPerformed(ActionEvent e) {
            jButton2_actionPerformed(e);
      jButton3.setText("From");
                jButton3.addActionListener(new java.awt.event.ActionListener() {
         public void actionPerformed(ActionEvent e) {
            jButton3_actionPerformed(e);
      jButton4.setText("Server");
                jButton4.addActionListener(new java.awt.event.ActionListener() {
         public void actionPerformed(ActionEvent e) {
            jButton4_actionPerformed(e);
        jButton5.addActionListener(new java.awt.event.ActionListener() {
         public void actionPerformed(ActionEvent e) {
            try {
              jButton5_actionPerformed(e);
            catch (ClassNotFoundException ex) {
            catch (RemoteException ex) {
            catch (SQLException ex) {
      try {
         s = (Iserver)Naming.lookup("rmi://192.168.0.3:1099/AuctionService");
      } catch(Exception ex) {
    protected void processWindowEvent(WindowEvent e) {
      super.processWindowEvent(e);
      if (e.getID() == WindowEvent.WINDOW_CLOSING) {
         System.exit(0);
    public void actionPerformed(ActionEvent e) {
       jTextAreaTime.setText("  "+dateTimeBean.getDayName()+"\n"+"  "+dateTimeBean.getDate()+"\n"+ "  "+dateTimeBean.getTime());
       repaint();
    public void jTextField1_actionPerformed(ActionEvent e) {
    public void jButton1_actionPerformed(ActionEvent e) {
        System.exit(0);
    public void jButton2_actionPerformed(ActionEvent e) {
        clientCal.setTime(new Date());
      int hour = clientCal.get(Calendar.HOUR_OF_DAY);
      int minute = clientCal.get(Calendar.MINUTE);
      int secs = clientCal.get(Calendar.SECOND);
      String time = hour + ":" + minute + "." + secs;
                try {
                        s.setClientTime(time);
                } catch(java.rmi.RemoteException re) {
    public void jButton3_actionPerformed(ActionEvent e) {
        try {jTextArea2.append(s.getTime() + "\n");
        } catch(java.rmi.RemoteException re) {
    public void jButton4_actionPerformed(ActionEvent e) {
        try {
                        s.setServerTime();
                } catch(java.rmi.RemoteException re) {
  //Set Image as Background
public class MyPanel extends JPanel {
              private Image img ;
              public MyPanel() {
                      //setLayout( new BorderLayout() ) ;
                      setSize(1000, 700);
                      img = new ImageIcon("test.jpg" ).getImage() ;
              public void drawBackground( Graphics g ) {
                      int w = getWidth() ;
                      int h = getHeight() ;
                      int iw = img.getWidth( this ) ;
                      int ih = img.getHeight( this ) ;
                      for( int i = 0 ; i < w ; i+=iw ) {
                              for( int j = 0 ; j < h ; j+= ih ) {
                                      g.drawImage( img , i , j , this ) ;
              protected void paintComponent(Graphics g) {
                      super.paintComponent(g);
                      drawBackground( g ) ;
}

esistsehrkalt wrote:
Hello,
I have a menu with several Title Borders, The titles however area appearing in Blue, which i have not set,
I need to change this back to black but i am unable to do so.
Has anyone else had this problem or know how to solve it?
I am using Borland Jbuilder, not sure if that is relevant.
package rmitest;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JPanel;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.Border;
import DateTimeBean.DateTimeBean;
import javax.swing.border.TitledBorder;
import javax.swing.border.EtchedBorder;
import java.rmi.*;
import java.rmi.Naming;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.awt.event.*;
import javax.swing.*;
import java.util.Calendar;
import java.util.Date;
import java.sql.SQLException;
import java.util.Vector;
public class Menu extends JFrame implements ActionListener {
JPanel contentPane;
JTextArea jTextAreaTime = new JTextArea(3,10);
Border border1 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
Color.white, new Color(156, 156, 158));
private final int DELAY = 1000;
static DateTimeBean dateTimeBean;
JPanel jPanel1 = new JPanel();
// TitledBorder titledBorder1 = new TitledBorder("");
Border border2 = new TitledBorder(border1, "");
Border border3 = new TitledBorder(border2, "Buttons");
JPanel jPanel2 = new JPanel();
TitledBorder titledBorder2 = new TitledBorder("");
Border border4 = BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border5 = new TitledBorder(border4, "Info");
JPanel jPanel3 = new JPanel();
Border border6 = BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border7 = new TitledBorder(border6, "More Buttons");
Border border8 = BorderFactory.createMatteBorder(6, 6, 6, 6, Color.black);
Border border9 = BorderFactory.createLineBorder(Color.black, 2);
JTextArea jTextArea1 = new JTextArea();
Border border10 = BorderFactory.createLineBorder(Color.black, 2);
JPanel jPanel4 = new JPanel();
Border border11 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
Border border12 = new TitledBorder(border11, "Shit");
Border border13 = BorderFactory.createLineBorder(SystemColor.controlText, 2);
Border border14 = new TitledBorder(border13, "Other Shit");
Border border15 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
Color.white, new Color(156, 156, 158));
Border border16 = new TitledBorder(border15, "Other Shit");
Border border17 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
Color.white, new Color(156, 156, 158));
Border border18 = new TitledBorder(border17, "Shit");
Border border19 = BorderFactory.createLineBorder(Color.BLACK, 1);
TitledBorder titledBorder3 = new TitledBorder("");
Border border20 = BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border21 = new TitledBorder(border20, "TEXT");
XYLayout xYLayout1 = new XYLayout();
JScrollPane jScrollPane1 = new JScrollPane();
Border border22 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
Color.white, new Color(156, 156, 158));
Border border23 = new TitledBorder(border22, "Action Log");
JScrollPane jScrollPane2 = new JScrollPane();
Border border24 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
Color.white, new Color(156, 156, 158));
Border border25 = new TitledBorder(border24, "Data");
JButton jButton1 = new JButton();
Icon exitButton = new ImageIcon("exit.JPG");
Calendar clientCal = Calendar.getInstance();
Iserver s;
JButton jButton2 = new JButton();
JButton jButton3 = new JButton();
JButton jButton4 = new JButton();
JButton jButton5 = new JButton();
javax.swing.JTextArea jTextArea3 = new JTextArea();
javax.swing.JTextArea jTextArea2 = new JTextArea();
public Vector<Object> contents;
javax.swing.JRadioButton jRadioButton1 = new JRadioButton();
javax.swing.JRadioButton jRadioButton2 = new JRadioButton();
XYLayout xYLayout2 = new XYLayout();
Border border26 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border27 = new TitledBorder(border26, "View Auctions");
XYLayout xYLayout3 = new XYLayout();
XYLayout xYLayout4 = new XYLayout();
javax.swing.JLabel jLabel1 = new JLabel();
Border border28 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border29 = new TitledBorder(border28, "Create Auction");
javax.swing.JRadioButton jRadioButton3 = new JRadioButton();
javax.swing.JRadioButton jRadioButton4 = new JRadioButton();
javax.swing.JLabel jLabel2 = new JLabel();
javax.swing.JTextField jTextField1 = new JTextField();
javax.swing.JTextArea jTextArea4 = new JTextArea();
javax.swing.JLabel jLabel3 = new JLabel();
javax.swing.JTextField jTextField2 = new JTextField();
javax.swing.JTextField jTextField3 = new JTextField();
javax.swing.JTextField jTextField4 = new JTextField();
javax.swing.JLabel jLabel4 = new JLabel();
javax.swing.JLabel jLabel5 = new JLabel();
javax.swing.JLabel jLabel6 = new JLabel();
javax.swing.JButton jButton6 = new JButton();
Border border30 = javax.swing.BorderFactory.createLineBorder(Color.white, 2);
Border border31 = javax.swing.BorderFactory.createLineBorder(Color.lightGray,
2);
Border border32 = javax.swing.BorderFactory.createLineBorder(SystemColor.
inactiveCaptionText, 2);
Border border33 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
Border border34 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
Border border35 = javax.swing.BorderFactory.createLineBorder(new Color(156, 156, 158), 2);
Border border36 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
RAISED, Color.white, new Color(156, 156, 158));
Border border37 = new TitledBorder(border36, "Action Log");
Border border38 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border39 = new TitledBorder(border38, "Info");
Border border40 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border41 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border43 = javax.swing.BorderFactory.createEtchedBorder(Color.white,
new Color(156, 156, 158));
Border border44 = new TitledBorder(border43, "Bid On An Auction");
Border border42 = javax.swing.BorderFactory.createEtchedBorder(EtchedBorder.
RAISED, Color.white, new Color(156, 156, 158));
Border border45 = new TitledBorder(border42, "tyeryry");
public Menu()
super() ;
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
dateTimeBean = new DateTimeBean();
Timer timer = new Timer(DELAY, this);
timer.start();
try {
setDefaultCloseOperation(EXIT_ON_CLOSE);
setContentPane( new MyPanel() ) ;
setSize( 1000 , 700 );
setVisible( true );
jbInit();
} catch (Exception exception)
exception.printStackTrace();
private void jbInit() throws Exception {
this.setForeground(Color.lightGray);
this.setResizable(false);
setTitle("Assignment - Bidding System");
jTextAreaTime.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
jTextAreaTime.setBorder(border1);
jTextAreaTime.setOpaque(true);
jTextAreaTime.setEditable(false);
contentPane = (JPanel) getContentPane();
contentPane.setSize(new Dimension(1000, 700));
contentPane.setLayout(xYLayout1);
contentPane.setBackground(Color.white);
contentPane.setEnabled(true);
contentPane.setDoubleBuffered(false);
contentPane.setMinimumSize(new Dimension(1000, 700));
contentPane.setOpaque(true);
contentPane.setPreferredSize(new Dimension(1000, 700));
jPanel1.setBorder(border29);
jPanel1.setLayout(xYLayout4);
jPanel2.setFont(new java.awt.Font("Arial Black", Font.PLAIN, 11));
jPanel2.setBorder(border44);
jPanel2.setLayout(xYLayout3);
jPanel3.setFont(new java.awt.Font("Dialog", Font.BOLD, 12));
jPanel3.setBorder(border27);
jPanel3.setLayout(xYLayout2);
jTextArea1.setBorder(BorderFactory.createLineBorder(Color.black));
jTextArea1.setText("");
jTextArea1.setEditable(false);
jScrollPane1.setBorder(border37);
jScrollPane1.setOpaque(false);
jScrollPane2.setBorder(border25);
jScrollPane2.setOpaque(false);
jButton1.setForeground(Color.black);
jButton1.setRolloverIcon(null);
jButton1.setIcon(exitButton);
jButton1.setText("Exit");
jButton1.addActionListener(new Menu_jButton1_actionAdapter(this));
jButton2.setText("jButton2");
jButton3.setText("jButton3");
jButton4.setText("jButton4");
jTextArea3.setEditable(false);
jTextArea3.setText("");
jTextArea2.setToolTipText("");
jTextArea2.setEditable(false);
jTextArea2.setText("");
jButton5.setText("Go");
jButton5.setVisible(true);
ButtonGroup RadioGroupView = new ButtonGroup();
ButtonGroup RadioGroupCreate = new ButtonGroup();
jLabel1.setText("Auction Type:");
jRadioButton3.setText("English");
jRadioButton4.setText("Vickrey");
jRadioButton3.setOpaque(false);
jRadioButton4.setOpaque(false);
jTextArea4.setBorder(border35);
jButton6.addActionListener(new Menu_jButton6_actionAdapter(this));
RadioGroupCreate.add(jRadioButton3);
RadioGroupCreate.add(jRadioButton4);
jLabel2.setText("Item Name:");
jTextField1.addActionListener(new Menu_jTextField1_actionAdapter(this));
jLabel3.setText("Description:");
jLabel4.setText("Reserve Price");
jLabel5.setText("Buy Out");
jLabel6.setText("Start Price");
jButton6.setText("Create");
RadioGroupView.add(jRadioButton1);
RadioGroupView.add(jRadioButton2);
jButton5.setToolTipText("");
jRadioButton1.setOpaque(false);
jRadioButton1.setToolTipText("");
jRadioButton1.setText("View All Auctions");
jRadioButton1.addActionListener(new Menu_jRadioButton1_actionAdapter(this));
jRadioButton2.setOpaque(false);
jRadioButton2.setText("View Auction");
jPanel1.setOpaque(false);
jPanel2.setOpaque(false);
jPanel3.setOpaque(false);
jPanel1.add(jLabel1, new XYConstraints(9, 6, -1, -1));
jPanel1.add(jLabel2, new XYConstraints(9, 26, -1, -1));
contentPane.add(jTextAreaTime, new XYConstraints(23, 599, 82, 56));
contentPane.add(jButton1, new XYConstraints(820, 606, 96, 39));
contentPane.add(jButton2, new XYConstraints(168, 606, 89, 40));
contentPane.add(jButton3, new XYConstraints(275, 606, 96, 42));
contentPane.add(jButton4, new XYConstraints(396, 606, 94, 45));
jPanel3.add(jRadioButton2, new XYConstraints(9, 24, -1, -1));
jPanel3.add(jButton5, new XYConstraints(177, 110, -1, -1));
jPanel3.add(jRadioButton1, new XYConstraints(9, 0, -1, -1));
jPanel1.add(jTextField1, new XYConstraints(85, 26, 118, -1));
jPanel1.add(jRadioButton3, new XYConstraints(81, 0, -1, -1));
jPanel1.add(jRadioButton4, new XYConstraints(144, 0, -1, -1));
jPanel1.add(jLabel3, new XYConstraints(9, 50, -1, -1));
jPanel1.add(jTextArea4, new XYConstraints(86, 53, 116, 50));
jPanel1.add(jButton6, new XYConstraints(308, 107, 102, 22));
jPanel1.add(jTextField2, new XYConstraints(361, 30, 50, 15));
jPanel1.add(jTextField3, new XYConstraints(361, 55, 50, 15));
jPanel1.add(jTextField4, new XYConstraints(361, 79, 50, 15));
jPanel1.add(jLabel6, new XYConstraints(284, 80, -1, -1));
jPanel1.add(jLabel4, new XYConstraints(266, 29, -1, -1));
jPanel1.add(jLabel5, new XYConstraints(296, 56, -1, -1));
contentPane.add(jPanel1, new XYConstraints(15, 85, 451, 161));
contentPane.add(jPanel3, new XYConstraints(735, 86, 241, 161));
contentPane.add(jScrollPane1, new XYConstraints(24, 465, 950, 122));
jScrollPane1.getViewport().add(jTextArea2);
contentPane.add(jScrollPane2, new XYConstraints(22, 256, 951, 196));
jScrollPane2.getViewport().add(jTextArea3);
contentPane.add(jPanel2, new XYConstraints(478, 88, 245, 161));
jButton2.setText("Client");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton2_actionPerformed(e);
jButton3.setText("From");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton3_actionPerformed(e);
jButton4.setText("Server");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton4_actionPerformed(e);
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
jButton5_actionPerformed(e);
catch (ClassNotFoundException ex) {
catch (RemoteException ex) {
catch (SQLException ex) {
try {
s = (Iserver)Naming.lookup("rmi://192.168.0.3:1099/AuctionService");
} catch(Exception ex) {
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
public void actionPerformed(ActionEvent e) {
jTextAreaTime.setText("  "+dateTimeBean.getDayName()+"\n"+"  "+dateTimeBean.getDate()+"\n"+ "  "+dateTimeBean.getTime());
repaint();
public void jTextField1_actionPerformed(ActionEvent e) {
public void jButton1_actionPerformed(ActionEvent e) {
System.exit(0);
public void jButton2_actionPerformed(ActionEvent e) {
clientCal.setTime(new Date());
int hour = clientCal.get(Calendar.HOUR_OF_DAY);
int minute = clientCal.get(Calendar.MINUTE);
int secs = clientCal.get(Calendar.SECOND);
String time = hour + ":" + minute + "." + secs;
try {
s.setClientTime(time);
} catch(java.rmi.RemoteException re) {
public void jButton3_actionPerformed(ActionEvent e) {
try {jTextArea2.append(s.getTime() + "\n");
} catch(java.rmi.RemoteException re) {
public void jButton4_actionPerformed(ActionEvent e) {
try {
s.setServerTime();
} catch(java.rmi.RemoteException re) {
//Set Image as Background
public class MyPanel extends JPanel {
private Image img ;
public MyPanel() {
//setLayout( new BorderLayout() ) ;
setSize(1000, 700);
img = new ImageIcon("test.jpg" ).getImage() ;
public void drawBackground( Graphics g ) {
int w = getWidth() ;
int h = getHeight() ;
int iw = img.getWidth( this ) ;
int ih = img.getHeight( this ) ;
for( int i = 0 ; i < w ; i+=iw ) {
for( int j = 0 ; j < h ; j+= ih ) {
g.drawImage( img , i , j , this ) ;
protected void paintComponent(Graphics g) {
super.paintComponent(g);
drawBackground( g ) ;
Aiyo! Would it have killed you to post a short example rather than that whole thing? Anyhowdy, have you checked to see if TitleBorder has a constructor that takes a color? Alternately, you can play with UIManager defaults:
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
public class BorderDefaults {
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable(){
            public void run() {
                UIManager.put("TitledBorder.border",new LineBorder(Color.ORANGE));
                UIManager.put("TitledBorder.titleColor", Color.RED);
                JLabel label = new JLabel("I am a label");
                label.setBorder(BorderFactory.createTitledBorder("border title"));
                JFrame f = new JFrame();
                f.getContentPane().add(label);
                f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                f.pack();
                f.setLocationRelativeTo(null);
                f.setVisible(true);
}

Similar Messages

  • Default Font in Safari Won't Change After Upgrade to Leopard

    Hey - I just upgraded my iMac from Tiger to Leopard and everything went great; however, when I use Safari, my default font is something random. I tried changing it to anything different but it stays the same (in Safari>Pref's>Appearance). I even tried re-installing it. Any suggestions?
    Thanks!

    We're left with two things, both of which may be somewhat time-consuming.
    The first is to use the new user account you created and migrate all your programs and settings that work over to it, and then delete the old user account, or:
    Do an Archive & Install, with Preserve Users and Network Settings. This will give you a completely new installation of 10.5 and move the old one to a folder named Previous System, which you can then delete. All your users and network settings will be preserved, but you will need to use Software Update afterward to bring your system current.
    Mulder

  • Resetting to default font when keyboard layout is changed (OS X/MS Office)

    In Office applications, when I am using other than default font and then switch the keyboards during typing (e.g. from English to Slovak), the font resets itself back to default. The same happens sometimes when I use the Undo function.
    Is there any way to prevent this?
    Thank you!

    If you don't get an answer here, you might try the forums for Office:
    http://www.microsoft.com/mac/community/community.aspx?pid=newsgroups

  • Need to change my system font

    My system font is getting some unwanted font, so i need to change my system font, i dont know how to change, please help me to change my system font

    You can change various fonts with Tinkertool (fonts tool).
    Change OS X system fonts and more with TinkerTool

  • System Default Font = UGLY

    Hello,
    How can I change my system default font. I have already changed the menu font and stuff but for firefox and apps like that. Thanks.

    Firefox fonts are changed through firefox
    edit: When you say ugly, do you mean a bad font, or a fuzzy/blocky font? If you're using gnome/kde, check if Anti-Aliasing is enabled
    Last edited by heleos (2008-08-14 19:16:29)

  • How do I change the default font in Comments?

    I'm a professor and I grade papers with the Pages' Comments feature. I would like to change the default font and font size for Comments when doing Tracking so that my comments consistently use the same font and font size no matter what font the student has used in their paper. The only way I can do that now is to change each individual comment. Is there a way to do that globally? Thanks!

    I apologize but I know that this question was asked and answered several times (I wrote the answers).
    So, taking time to search in the existing threads with a request like :
    comment AND font AND default
    built from words extracted from your title returned 15 entries.
    The first one is :
    https://discussions.apple.com/message/15158099
    and it contain what you need.
    Yvan KOENIG (VALLAURIS, France) samedi 15 octobre 2011 22:09:10
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community

  • How to change the default text title of Detached table/treetable

    Hi,
    Is anybody know How to change the default text title of Detached table/treetable.
    I have already read the post on "http://vtkrishn.com/2010/07/28/how-to-change-the-default-text-title-of-detached-tabletreetable/"
    as per this post It will change the title throughout the application.
    I wanted to change only for one particular table.
    Thanks,
    Charu
    Edited by: Charu on Sep 13, 2012 4:14 AM

    Hi,
    please don't double post and instead continue with your original threat. In the previous post you got the correct answer to use skinning. You did not like the solution as it doesn't allow per-instance titles. I agree with this and a logical consequence is to file an enhancement request instead of re-posting the question. I'll file the ER, so no need to follow up for you anymore
    Frank

  • How to change the default font size in X11?

    I was a PC/linux user and have switched to use Mac lately (MBP Snow leopard 10.6.8).
    Everything's been running perfectly on Mac so far and I really like it, until I have to run some programs on XQuartz/X11 (XQuart 2.7.0).  
    The default font size in the Xterm is too small. And I hate it that I have to change it everytime i open a new terminal (via vt fonts menu, ctrl+right-mouse click).
    Is there a way to change the default font size "permanently" in XQuartz/X11 ??
    This may be a stupid question to ask in the developer forum but i cant really solve it.
    There's only config. file ~/.Xdefaults they have mentioned so far on Google but i really cant find it regarding to the directorty.
    Thank you very much in advance.

    You would be surprised to find out that is not like this, to get your account blocked you really need to do a lot of damage and posts are not removed unless they are illegal, and *always* it needs more than a person to delete something. That's a site managed by the community, not by some people put in place by a company.
    It is always acceptable to link to external resources as long these resources do provide additional usefull information. Clearly the thread on that side contained much more information than the one here. I observed people linking from there to this forum, but it's not so common, and that's not due to the policy, just because here is more chat and less usefull information.... you will not see endless threads of replies on with "yes, I have the same problem" there.
    Shortly, this is "discussions" and is quite different in approach than the SE model, where everythign is aimed towards getting the be answers UP and removing all the nonsense.
    I wish that Apple would invest more in discussion, and going towards making this more practical.

  • How to change the default font size in XQuartz?

    I was a PC/linux user and have switched to use Mac lately (MBP Snow leopard 10.6.8).
    Everything's been running perfectly on Mac so far and I really like it, until I have to run some programs on XQuartz/X11 (XQuart 2.7.0).   
    The default font size in the terminal is too small. And I hate it that I have to change it everytime i open a new terminal (via vt fonts menu, ctrl+right-mouse click).
    Is there a way to change the default font size "permanently" in XQuartz/X11 ??
    This may be a stupid question to ask in the developer forum but i cant really solve it.
    There's only config. file ~/.Xdefault they have mentioned so far on Google but i really cant find it regarding to the directorty.
    Thank you very much in advance.

    You would be surprised to find out that is not like this, to get your account blocked you really need to do a lot of damage and posts are not removed unless they are illegal, and *always* it needs more than a person to delete something. That's a site managed by the community, not by some people put in place by a company.
    It is always acceptable to link to external resources as long these resources do provide additional usefull information. Clearly the thread on that side contained much more information than the one here. I observed people linking from there to this forum, but it's not so common, and that's not due to the policy, just because here is more chat and less usefull information.... you will not see endless threads of replies on with "yes, I have the same problem" there.
    Shortly, this is "discussions" and is quite different in approach than the SE model, where everythign is aimed towards getting the be answers UP and removing all the nonsense.
    I wish that Apple would invest more in discussion, and going towards making this more practical.

  • How to change default font in Photoshop CS5

    Is there a simple way to change the default font from Felix Tilting to Verdana in Photoshop CS5

    The character palette will remember the last font you used with any of the text tools. If it doesn't, then something is afoot, but your rather vague post doesn't allow any specific pointers. If you have issues, you need to explain nad provide some system info and so on...
    Mylenium

  • I need to substitute the default font (times roman) in my editable form fields with a san serif...

    I am making a PDF with editable form fields out of InDesign CS6. When I make the interactive PDF, the font, Helvetica Neue  is being substituted with the default font, Times Roman. The client has provided me with last years PDF which has a nice San Serif for the editable fields. I need to change the font either to Helvetica Neue, or at least to a nice San Serif common system font. I have Acrobat X.
    Thanks in advance!!

    I called a friend of mine who walked me through this so I will post the instructions for anyone else who may be having this problem...
    1. Open the PDF with the form fields in a recent version of Acrobat.
    2. Click on the Toolls tab.
    3. Under Forms, click Edit.
    4. Now you will see your fields listed under "Field" > "Sort by"...  "Text Field 1"...  etc.
    5. Holding "control" click where it says "Text Field 1" and some options will pop up.
    6. Click on "Properties".
    7. A "Text Fields Properties" window will pop up.
    8. Click on the "Appearance" tab.
    9. Here you can change your fonts and font sizes.
    Good luck!

  • Change default font & default font size

    As far as I can make out it's not possible to reset the default font or font size in LC Designer ES 8.2........or is it, & if so, how?
    I found this page re LC ES3, but it doesn't seem to apply to earlier versions.
    TIA

    Hi,
    Designer uses predefined objects which are stored as *.xfo files unser your user account.
    C:\Users\%username%\AppData\Roaming\Adobe\Designer\10.0\DE\Objects\Standard
    You can open such files with any simple text editor and modify them.
    For example, you open the NumericEdif.xfo in your editor.
    Them you'll see an XML file where you'll find the information for the typeface and the size.
    <field name="NumerischesFeld" y="0mm" x="0mm" w="67.056mm" h="9mm">
                   <ui>
                      <numericEdit>
                         <border>
                            <edge stroke="lowered"/>
                         </border>
                         <margin/>
                      </numericEdit>
                   </ui>
                   <font size="10pt" typeface="Arial"/>
                   <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
                   <para vAlign="middle"/>
                   <value>
                      <float/>
                   </value>
                   <caption reserve="30.0736mm">
                      <font size="10pt" typeface="Arial"/>
                      <para vAlign="middle"/>
                      <value>
                         <text>Numerisches Feld</text>
                      </value>
                   </caption>
                </field>
    Just change the name of the typeface and the size in the way you like and save the file.
    You don't need to restart Designer, the next tiome you choose the nemueric field, it's created with the new font settings.
    <field name="NumerischesFeld" y="0mm" x="0mm" w="67.056mm" h="9mm">
                   <ui>
                      <numericEdit>
                         <border>
                            <edge stroke="lowered"/>
                         </border>
                         <margin/>
                      </numericEdit>
                   </ui>
                   <!-- Changed Typeface and Size for the Value -->
                   <font size="12pt" typeface="Adobe Text Pro"/>
                   <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
                   <para vAlign="middle"/>
                   <value>
                      <float/>
                   </value>
                   <caption reserve="30.0736mm">
                      <!-- Changed Typeface and Size for the Caption -->
                      <font size="12pt" typeface="Adobe Text Pro"/>
                      <para vAlign="middle"/>
                      <value>
                         <text>Numerisches Feld</text>
                      </value>
                   </caption>
                </field>

  • Title Default Font Question

    The default font for the "Centered" title option appears to be Gils Sans.
    Does anyone know how to set a different default font, perhaps either for that title option alone or for all title options?
    Not a big deal, but since I always use Arial for my titles, it would be convenient to have it default to that font automatically.
    Thanks.

    The easiest way I know of: control-click the title, and choose "open a copy in Motion"; then, in Motion, change the font and do a File->Save as... to something like "centered - Arial". Now you have a custom title that defaults to Arial.
    (Of course, this only works if you have Motion; or you can ask someone that has it to create it and send it to you)

  • Change the default font in OBIEE 10g

    Hi all,
    I need to change a few things in the default design of my OBIEE 10g, namely:
    Font and Font Size from all views (Tables, Pivot Tables, graphs…)
    Alignment of text. Numbers should be aligned to the write and text to the left
    I tried to change the font and font size in the view.css file but that’s not working.
    Can anyone tell me where/how I can change this?
    Thanks in advance

    Do change in common.css file
    ~ http://cool-bi.com

  • My titles are disappearing or changing back to the default

    I'm adding some titling to my project using the built in title generator "Continuous." When I go back to watch the finished product, some of the titles work fine and some have disappeared (the text is gone and has been replaced by the default word "Title") although the title holder is still there. It's happened more than once and I can't figure out a reason why. On two, the text reverted back to the default font and color and changed the word to "Title." On the third incident, the title retained the correct font (Gill Sans) and color, but just changed the text to "Title."

    Title problems were relatively common in older versions, but I haven't heard of this in quite some time.
    Try deleting your preferences - it can now be done very easily by holding down command and option while starting FCP X. This will show a dialog asking if you want to delete your preferences. Click "Delete Preferences". Like the dialog says this will not touch your libraries. Corrupt preferences can cause all sorts of weird behavior.
    Also, as a safeguard, you may try exporting an xml of your project before quitting. That way, if you encounter the problem again, you may reimport the xml and begin where you left off.

Maybe you are looking for

  • Setting PAL/NTSC format with OneStep in iDVD 5

    I'm trying to create a DVD from some MiniDV tapes I've recorded, but I need to make sure it's recorded in PAL format as it's being sent overseas. I'm using the OneStep option in iDVD, but the only place I could find to set PAL/NTSC is in the preferen

  • My Apple iPad air screen stops responding, particularly in safari

    My brand new IPad Air (64Gb) is roving to be less than satisfactory- I have had to hard reset it several times due to non response, usually in Safari. Additionally, I have had to close applications mid use for the same reasons. All indications are it

  • Combine Files stalled out at 3200+ out of 3500

    Hi: Last night tried combining files in a directory tree with about 3500 document files of various types. Stalled at around 3200 after about 12 hours. Bumped task priority to real time, still no movement. GUI very slow to respond -- 1 to 3 minutes. A

  • Data Basis & consolidation area

    Dear Gurus, I'm having my first try in starting up the SEM-BCS in the system. However, i tried to create the data basis and consolidation area but unsuccessful. Is there any configurations that i need to do and how can i activate the default list in

  • PowerBook Constant Freeze and Graphics Problems

    I have a Powerbook 12" 1.33Ghz Leopard 10.5.2 , I star to work in anything and in a few minutes its freezes and appears a Kernel Panic or de backend System Text start to output reports overwriting the last graphic image.. here a picture.. http://cybe