File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JFrame+jable Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFrame+jable Problem" Watch "JFrame+jable Problem" New topic

JFrame+jable Problem

menwa ms

Joined: Nov 14, 2003
Posts: 12
hi ...
i have this form that has in it a table...
the form contains text fields,buttons and the table..
the text fields are located North and the buttons are located at the center..the table is below them..
whenever i minimize the for and then maximize it again the table in the form goes ( will be displayed) on top of the buttons , where i can't see the buttons ..
can someone help me with this problem please???
this is my code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
import java.sql.*;
import javax.swing.JPanel;
import java.applet.*;
import java.text.*;
class UtilityMethods extends JFrame implements ActionListener
private File fileName;
private RandomAccessFile output;
AudioStream voice;
UtilityMethods utilities;
Connection conn;
Statement stat;
String dsnName, userStatus;
String appTable = "CUSTOMER";
Container c = getContentPane();
JTabbedPane tabs;
JTable dataTable, addataTable,vdataTable;
static String[][] tableData, adtableData,vtableData;
JScrollPane scrollpane, adscrollpane,vscrollpane;
JTextField id, name, address, phone, sex, dob, photo;
JTextArea comments;
JButton search, update, clear, add, delete, close;
JPanel customerPanel, adminPanel,voicePanel;
JPanel backPanel, inputPanel, middlePanel, buttonPanel1, buttonPanel2, photoHolder;
JTextField adname, adusername, adpassword;
JPanel adbackPanel, adinputPanel, admiddlePanel, adbuttonPanel1, adbuttonPanel2, radioPanel;
JButton adsearch, adupdate, adclear, adadd, addelete, adclose;
JRadioButton userStat, adminStat, cleared;
ButtonGroup statusGroup;
JTextField vid,vname,vaddress,vphone,vsex,vdob,vtemplate,vvoice;
JButton vsearch,vupdate,vclear,vadd,vdelete,vclose,vplay,vstop;
JPanel vbackPanel, vinputPanel, vmiddlePanel, vbuttonPanel1, vbuttonPanel2;
//Create the GUI:
void makeGUI()
c.setLayout(new BorderLayout());
tabs = new JTabbedPane();
customerPanel = new JPanel(new BorderLayout());
adminPanel = new JPanel(new BorderLayout());
voicePanel= new JPanel(new BorderLayout());
//1. Construct customers tab:
//The data
I agree. Here's the link:
subject: JFrame+jable Problem
It's not a secret anymore!