I do not know how
how to add some button at my bottom?
import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.WindowConstants;
import com.jgoodies.forms.builder.PanelBuilder;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
public final class anotherSubMenu extends JPanel {
private JTextField inspectorField;
private JTextField referenceNoField;
private JTextField anotherNew;
private JComboBox approvalStatusComboBox;
private JPanel button;
private JButton add;
private JButton clear;
private JButton edit;
public anotherSubMenu(){
setLayout(new BorderLayout());
setBackground(Color.white);
System.out.println("test1");
add = new JButton("Add");
clear = new JButton("Delete");
edit = new JButton("Edit");
System.out.println("test2");
buildButton();
add(button, BorderLayout.SOUTH);
public static void main(String[] args) {
try {
UIManager.setLookAndFeel("com.jgoodies.plaf.plastic.PlasticXPLookAndFeel");
} catch (Exception e) {
// Likely PlasticXP is not in the class path; ignore.
JFrame frame = new JFrame();
frame.setTitle("Member Information Center!");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
JComponent panel = new anotherSubMenu().buildPanel();
frame.getContentPane().add(panel);
frame.pack();
frame.setVisible(true);
private void buildButton() {
// TODO Auto-generated method stub
button = new JPanel();
button.add(add);
button.add(clear);
button.add(edit);
private void initComponents() {
inspectorField = new JTextField();
referenceNoField = new JTextField();
anotherNew = new JTextField();
approvalStatusComboBox = createApprovalStatusComboBox();
private JComboBox createApprovalStatusComboBox() {
return new JComboBox(
new String[] { "Sungai Besi", "Damansara", "Taman Megah" ,"Cheras"});
public JComponent buildPanel() {
initComponents();
FormLayout layout = new FormLayout(
"right:max(40dlu;pref), 3dlu, 70dlu, 7dlu, "
+ "right:max(40dlu;pref), 3dlu, 70dlu",
"p, 3dlu, p, 3dlu, p, 3dlu, p, 9dlu, " +
"p, 3dlu, p, 3dlu, p, 3dlu, p, 9dlu, " +
"p, 3dlu, p, 3dlu, p, 3dlu, p");
PanelBuilder builder = new PanelBuilder(layout);
builder.setDefaultDialogBorder();
CellConstraints cc = new CellConstraints();
// Fill the table with labels and components.
builder.addSeparator("Update Center.", cc.xyw(1, 1, 7));
builder.addLabel("Name", cc.xy (1,3));
builder.add(inspectorField, cc.xyw(3, 3, 3));
builder.addLabel("ID_NUM", cc.xy (1, 5));
builder.add(referenceNoField, cc.xy (3, 5));
builder.addLabel("Address", cc.xy(1, 7));
builder.add(anotherNew, cc.xyw(3, 7,5));
builder.addLabel("Branch", cc.xy (1, 9));
builder.add(approvalStatusComboBox, cc.xy (3, 9));
return builder.getPanel();
this code i change again..the Jgoodies part is fine..juz correct the way i put them together..help..
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.WindowConstants;
import com.jgoodies.forms.builder.PanelBuilder;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;
public class newSubMenu extends JFrame{
private JTextField inspectorField;
private JTextField referenceNoField;
private JTextField anotherNew;
private JComboBox approvalStatusComboBox;
private JPanel button;
private JPanel upperPart;
private JPanel insidePart;
private JButton add;
private JButton clear;
private JButton edit;
private static final long serialVersionUID = 1L;
public newSubMenu (){
super("Client User Interface");
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
add = new JButton("Add");
clear = new JButton("Delete");
edit = new JButton("Edit");
buildMenu();
//buildButton();
add(button, BorderLayout.SOUTH);
add(insidePart,BorderLayout.NORTH);
buildPanel();
private void buildMenu(){
JMenuBar mb = new JMenuBar();
JMenu file = new JMenu("File");
JMenu edit = new JMenu("Edit");
JMenu source = new JMenu("Source");
JMenuItem item = new JMenuItem("Exit");
//Closes the application from the Exit
//menu item.
item.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
System.exit(0);
});// Ends buildMenu method
file.add(item);
mb.add(file);
mb.add(edit);
mb.add(source);
setJMenuBar(mb);
public static void main(String[] args) {
try {
UIManager.setLookAndFeel("com.jgoodies.plaf.plastic.PlasticXPLookAndFeel");
} catch (Exception e) {
// Likely PlasticXP is not in the class path; ignore.
JFrame frame = new JFrame();
frame.setTitle("Member Information Center!");
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
JComponent panel = new anotherSubMenu().buildPanel();
frame.getContentPane().add(panel);
frame.pack();
frame.setVisible(true);
private void buildPanel(){
upperPart = new JPanel();
setLayout(new BorderLayout());
upperPart.setBackground(Color.white);
upperPart.add(buildButton());
upperPart.add(insidePart());
private Component insidePart() {
initComponents();
FormLayout layout = new FormLayout(
"right:max(40dlu;pref), 3dlu, 70dlu, 7dlu, "
+ "right:max(40dlu;pref), 3dlu, 70dlu",
"p, 3dlu, p, 3dlu, p, 3dlu, p, 9dlu, " +
"p, 3dlu, p, 3dlu, p, 3dlu, p, 9dlu, " +
"p, 3dlu, p, 3dlu, p, 3dlu, p");
PanelBuilder builder = new PanelBuilder(layout);
builder.setDefaultDialogBorder();
CellConstraints cc = new CellConstraints();
// Fill the table with labels and components.
builder.addSeparator("Update Center.", cc.xyw(1, 1, 7));
builder.addLabel("Name", cc.xy (1,3));
builder.add(inspectorField, cc.xyw(3, 3, 3));
builder.addLabel("ID_NUM", cc.xy (1, 5));
builder.add(referenceNoField, cc.xy (3, 5));
builder.addLabel("Address", cc.xy(1, 7));
builder.add(anotherNew, cc.xyw(3, 7,5));
builder.addLabel("Branch", cc.xy (1, 9));
builder.add(approvalStatusComboBox, cc.xy (3, 9));
return builder.getPanel();
private Component buildButton() {
// TODO Auto-generated method stub
button = new JPanel();
button.add(add);
button.add(clear);
return button.add(edit);
private void initComponents() {
inspectorField = new JTextField();
referenceNoField = new JTextField();
anotherNew = new JTextField();
approvalStatusComboBox = createApprovalStatusComboBox();
private JComboBox createApprovalStatusComboBox() {
return new JComboBox(
new String[] { "Sungai Besi", "Damansara", "Taman Megah" ,"Cheras"});
}
Similar Messages
-
I have successfully changed my apple ID and password, but cannot get my Mac computer to change it on iCloud. I have accessed system preferences, iCloud and sign out. But now I do not know how to sign in using my new id and password. I would like iCloud to work on my Mac so that it will sync to my iPhone and iPad. I have installed all of the latest software. How do I change this account on my Mac?
Do you have your Mac backed up?
If not, you should use Time Machine to back up your Mac to an external hard drive just "in case".
But if all you did was change your existing ID, then deleting the Calendar infomation from the Mac when you sign out should not be an issue. Since it is the same Apple ID, it is the same iCloud account (just with a different name), so your Contacts, Calendars, etc. are stored in iCloud. When you sign back in, you will have the option to sync Contacts, Calendars, Notes, etc. with iCloud - it should already be checked. Just sign back in, and your iCloud info will re-download to your Mac.
I just tried this, and all of my stuff showed up when I signed back in. Notes took a couple of seconds to load once I opened them, but they are all there.
Note: If you are signing on with a brand new Apple ID, then nothing will be downloaded because it will be an entirely different iCloud account. But if it is the same Apple/iCloud/iTunes ID with just a new email, then it will all be restored.
Cheers,
GB -
I am having trouble updating my CS5 Master's Collection Suite for at least a month now. I keep getting this message "There was an error downloading this update. Please quit now and try again later" every time and do not know how to fix it.
Any help will be highly appreciated.
Thanks a lot in advance.
Sincerely,
Uvaldocj@@
Here is a list of the products I am troubled with:
Adobe After Effects CS5 10.0.2 Update
There was an error downloading this update. Please quit and try again later.
Adobe Bridge CS5 4.0.5 Update
There was an error downloading this update. Please quit and try again later.
Adobe Extension Manager CS5 5.0 Update
There was an error downloading this update. Please quit and try again later.
Adobe Illustrator CS5 15.0.2 Update
There was an error downloading this update. Please quit and try again later.
Adobe Pixel Bender Toolkit 2.5 Update
There was an error downloading this update. Please quit and try again later.
Adobe® InDesign® CS5 7.0.4 update
There was an error downloading this update. Please quit and try again later.
Dreamweaver CS5 11.0.4 Updater
There was an error downloading this update. Please quit and try again later.
Fireworks CS5 11.0.2 Update
There was an error downloading this update. Please quit and try again later.
Photoshop 12.0.4 update for Photoshop CS5
There was an error downloading this update. Please quit and try again later.
Photoshop Camera Raw 6.7 Update
There was an error downloading this update. Please quit and try again later.I'm having the same issue. And Dreamweaver now crashes after just a few seconds.
-
my apple id has been disabled and i do not know how do i can download app from app store again
If changing your password does not resolve, then contact itunes support
-
HT4623 my iphone has been erased and i do not know how to restore it?
my iphone has been erased and i do not know how to restore it help please?
Connect it to the computer that it normally syncs with and select restore in iTunes.
This is also covered in the Users guide if you want/need specific details. Try reading the users guide before asking more basic functionality questions. -
I have downloaded the 30 day free trial using Adobe Download Assistant but I do not know how to open it and start using it.
This was so annoying!! It took me a good couple of hours but i figured it out, you need to do the following: Go to the folder where you saved the download (in my case i saved it in My Downloads) -> click on 'Adobe Photoshop Elements 12' -> click on 'PSE 12' -> click on 'Setup' (select the icon which is a box with a shield) -> follow instructions and....voila! You will need to restart when it suggests so save anything else first, then when it reboots you should see the icon on your desktop....hpe this helps!
-
I downloaded an app from itunes and i do not know how to open it
i downloaded an app from itunes and i do not know how to open it on my computer...?
You don't open it on your computer.
Apps from the itunes store are for ipod/iphone/ipad. -
I do not know how to open a folder, file !
Hi everyone,
I do not know how to open a folder, file or
a JavaScript program in photoshop cs4?
can you tell me how to proceed
Thank youthank zhpingw
the script not function unfortunately
I had to go through to have a flash file. swf
I put in a url link
file. swf I was put in the palette and its works!
Download This file tutoweb. link . swf
requete content for Google find tuto a Photoshop !
Warning you change to script Google.fr for Google.uk in file .fla
Place to swf in your palet of configurator
Enjoy
http://rapidshare.com/files/390041665/Flash_CS4.rar -
I bought an album in the I Store and it shows there as a Purchased item. However, I cannot find the album in my iTunes and do not know how to redownload it. What should I do?
If you are in a country where music can be redownloaded then it should show in the Purchased link under Quick Links on the right-hand side of the iTunes store homepage - that it where you can redownload items (as long as they remain in the store).
-
I just purchase an IPhone5C to upgrade from my IPhone4, but I do not know how to get all of my photos that were on ICloud on my Photo Stream (875 photos), on to my new phone. I thought that since my 5C can see Icloud that all photos would be there... Can someone help me get the pics from my Iphone4 to the 5C?
Photostream in the cloud only keeps photos from the last 30 days (subject to a 1,000 photo limit). When photostream syncs the photos to your device they will stay there (subject to a 1,000 photo limit) until deleted, which means you may well have more photos in your photostream album on your device than there are in photostream in the cloud.
The consequence of this is that if you turn photostream off and on again on your device (or enable it for the first time), it will only be populated with photos from the last 30 days, which may not be all the photos that were previously in the photostream album on that device. -
i lost every single thing on my macbook pro and i do not know how to recover my 77 gb of software data back to my computer how do i get this back?
thank youWelcome to the Apple Community.
Which software do you use to keep your back up. -
My MacBook Pro is running VERY slowly. After reading other questions and responses, I ran an EtreCheck, but do not know how to post the report here. Any help would be greatly appreciated.
My MacBook Pro is running VERY slowly. After reading other questions and responses, I ran an EtreCheck, but do not know how to post the report here. Any help would be greatly appreciated.
-
My iPod touch was stolen and recovered. I can use my Apple id for this site but the theif changed the Apple id needed to update apps etc and I do not know how to delete his acct. Any help with this will be greatly appreciate
If the thief enabled activation lock on the device, then there is nothing that can be done. Only the password for the Apple ID that it is locked with can disable activation lock.
-
I am trying to download Photoshop CS6 onto my Mac from the Adobe website, but I do not have a serial number. I made an Adobe ID, but the serial number is not under "My Products" nor have I received an email including a serial number. I do not know how else to find the serial number. Please help!
You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
Here is a link to a page with options to help make contact:
http://www.adobe.com/support/download-install/supportinfo/ -
I want to see movies in my HBO app. I cannot do so because the message keeps coming up that I must take the HTTP off in my wi-fi settings. I do not know how to find this in those settings. I am a novice at this whole thing, so be patient with my ignorance with techie things.
There is no HTTP in WiFi settings. Are you talking about an HTTP Proxy server? If so, this may mean that the HBO App does not work correctly if you are using a Proxy server for your internet connection. To see if you are using a proxy go to Settings > Wifi and touch the blue ">" to the right of your network name. This will bring up the network connection details. At the bottom will be information about any Proxy server that you are using.
What exactly is the error message? -
My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?
See if this helps:
iOS: Forgotten passcode or device disabled after entering wrong passcode
http://support.apple.com/kb/ht1212
Maybe you are looking for
-
FCC Paramenters for Sender File Adapter
hi I am using FCC in the Sender File Adapter. I have defined the structure as below. Fields ID, Filename, Values will be generated at Runtime as I have defined Used Defined Funtions for Both. Only I will Pass the value in Body. i.e "Hello". So How sh
-
Am i able to downgrade my IOS 7.1 to IOS 7
Am i able to downgrade my IOS 7.1 to IOS 7
-
Extracting details from oracle business rule repository
Hi, Which of the oracle business rule APIs provide retrieving following details : 1. Get all dictionaries stored in the oracle business rule repository. 2. in each dictionary, 2.1. How to retrieve all ruleset list in a rulesets 2.2 How to retrieve al
-
Hi, I am working through the tutorial file for NI Lookout 6.2. I have attached a screenshot of a Data Scaling Error problem following completion of the section "Configure Data for Logging, Scaling and Alarms" on page 8 of the tutorial. In the attach
-
Created a stylesheet for multiple page website. Works as expected on my computer. Uploaded all files but the background image doesn't show up in any files. Can someone explain what I did wrong? I know there's more to do on the site but I'm just b