hi there i have been using JPanel for my create new record screen. I have tested it with different pc. some of the pc work fine, and few pc have squeeze the JTextField to a funny size,
i think might be the display card in the those pc.
if i pretend is ok and submit it. what-if the examiner have a old display card
or
maybe all the sun examiner are loaded should have up to date display card or ....
i am really run out of ideas.. please let me know what u think.. thanks
=========
JPanel namePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
namePanel.setPreferredSize(new Dimension(758, 35));
namePanel.add(new JLabel("Subcontractor Name : "));
newName.setDocument(new LimitedDocument(MAX_NAME));
namePanel.add(newName);
JPanel locPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
locPanel.setPreferredSize(new Dimension(758, 35));
locPanel.add(new JLabel(
"City : "));
newLoc.setDocument(new LimitedDocument(MAX_LOCATION));
locPanel.add(newLoc);
JPanel jobPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
jobPanel.setPreferredSize(new Dimension(758, 35));
jobPanel.add(new JLabel("Type of work performed : "));
newSpecialties.setDocument(new LimitedDocument(MAX_SPECALTIES));
jobPanel.add(newSpecialties);
JPanel sizePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
sizePanel.setPreferredSize(new Dimension(758, 35));
sizePanel.add(new JLabel("No. of staff in organization : "));
newSize.setDocument(new LimitedDocument(MAX_SIZE));
sizePanel.add(newSize);
JPanel ratePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
ratePanel.setPreferredSize(new Dimension(758, 35));
ratePanel.add(new JLabel("Hourly charge : "));
newRate.setDocument(new LimitedDocument(MAX_RATE));
ratePanel.add(newRate);
JPanel submitPanel = new JPanel(new FlowLayout(FlowLayout.
CENTER));
submitPanel.setPreferredSize(new Dimension(758, 35));
submitPanel.add(clearButton);
submitPanel.add(submitButton);
JPanel infoPanel = new JPanel(new FlowLayout(FlowLayout.
CENTER));
infoPanel.setPreferredSize(new Dimension(758, 35));
newRecNo.setForeground(Color.red);
infoPanel.add(newRecNo);