How to make s:Panel middle in Flex4

When I use <mx:Panel>,I find <mx:Panel> replaced by <s:Panel>.I can make <mx:Panel> middle by using following parameter:
paddingTop="10"
paddingLeft="10"
layout="vertical"
horizontalAlign="center"
verticalAlign="middle"
Then I use <s:Panel>,but I don't know how to make <s:Panel> middle both horizon and vertical. How to do it?
Thanks.

Please try:  horizontalCenter="0" in the s:Panel.

Similar Messages

  • How to make front panel as Generic

    Hi all ,
    I need to know that how to do front panel reuse.
    Here i am using two front panel to do some work .
    But both the front panel do the same work ,
    I need to use create one front panel make them as generic .
    I C#  can able to do front panel generic .
    In labview how to do it .
    It helps me lot ..
    Thanks in advance .,
    Attachments:
    fp.vi ‏11 KB

    You can group the controls as a Cluster and make a type-def of it. That's probably what you're after.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How to make the panel with scrollpane transparent?

    Thanks Camicker for your help, it solves the problem but i got a new problem i.e. i want to make that panel with scrollbar transparent for this i have tried setOpaqe(false) for both scrollpane and panel but it doesn't work. do u have any solution?

    I think camickr (not Camicker) already told you to set the opacity of the JScrollPane's viewport.
    Spend just a few minutes with the JScrollPane API and you'll find an exploded view showing the components that make up a scroll pane.
    db

  • How to make front panel-text visable but not selectable

    Hi,
    I am trying to overlay text over a LED (control) on my front panel. But now I can not control the LED status anymore because the text is now on the top layer and the LED control is not. I like it to be still visable, but I need to be able to select the underlying control. Is this possible?

    Hi Remko,
    why do you use a LED as control? It is meant to be an indicator…
    Boolean controls also have boolean text - you need to make it visible in the control properties. Now you can write any text "over" your control without disabling it's usage!
    @Potterton: Welcome to the forum!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to make no panels on Spry accordion open by default?

    I have a Spry Accordion with several panels.  I want the default behavior for none of the panels to be opened until one is clicked.  Currently the default behavior is for the first panel to be automatically expanded when the page is first visited.  How do I correct this?

    It's here:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html
    Under the sub heading "starting with all panels closed".
    <script type="text/javascript">
    var acc1 = new Spry.Widget.Accordion("Acc1", { useFixedPanelHeights: false, defaultPanel: -1 });
    </script>
    Martin

  • How to make Files Panel stay visible (on Mac)

    this has always driven me crazy, and now i'm at the top of the iceberg.
    whenever i'm working in dreamweaver (on Mac with CS5 currently), and i need to pop over to another application or the Finder, i HATE that i have to either cmd+tab or click the icon in the dock to get back to DW. i so wish there was a way to make the expanded files panel STAY visible no matter what app is in the foreground/focus.
    does anybody have any solutions? are there any extensions or widgets or hacks to make this happen? i've gone thru each menu option & preference option and can't find anything that would do this.
    thanks!

    @SnakEyez02
    thank you for your suggestion.
    i guess what i want just isn't possible yet. in the rest of the CS5 suite i use (Photoshop, Illustrator, InDesign) the Window Menu -> Application Frame option which keeps it all open/visible all the time. i don't know why Adobe hasn't yet put that option into DW.
    but at 'least' i was hoping there was a hack or extension that'll keep at leat the files panel open/visible all the time.

  • How to make Navigation Panel invisible on portal screen????

    Hi,
    I need to create two roles ( X and Y ).
    when the user is assgned role X: he should see standard portal screen
    When user is assigned role Y: he should see customized portal screen.
    Features of customized portal screen:
    All features of portal should not be seen. The user should see only the iview and nothing else.
    What I have done:
    Created Role ( X and Y ) and respective iviews
    With Framework page:
    I copied standard framework page. made all iviews invisible except Desktop Innerpage.
    I opend the Innerpage. I made all all iviews invisible except the Content Area.
    With Desktop:
    I create new desktop and assigned the new framework page to deaktop and made it default.
    With Rule Collection: I created new rule collection where:
    if Role = Y
    display: new desktop
    if role = X
    display: default desktop
    Result:
    when I login with role X it shows default Desktop
    Problem Area: When i login with ROLE Y, No portal feature is visible But We can still Expand and collapse Navigation panel.
    Requirement: I do not want the user should see the navigation panel. It should not be visible on screen even though it is empty.
    I tried lots almost all properties. Please help.
    Any help would be highly appreciated.
    Thanks and Regards,
    Aditya Deshpande

    hi;
    Then you have to create Role Y without workset or Page only with iViews, so no Navigation will be generated. :h1
    But if you habe Workset and Page in your role , just go to all Page and workset and set this properties>navigation>Invisible in Navigation Areas  to false.
    I Hoppe it will help
    Take care
    Gede

  • How to make Insert panel enable?

    Is it possible to enable Insert panel in other type files than default,  for example in JavaScript?
    I have some plugins installed like jQuery Utilities Toolset that put new icons into Insert panel for jQuery objects. Obviously I would like to insert them in JS files, not in HTML or PHP.

    Hmm. That's obviously a show-stopper for using the Insert bar. Commands work in Code view.
    Another possibility is to create your own floating panel. The Floating Panel API has an isAvailableInCodeView() method.
    Does it mean Adobe made this panel customizable but didn't predict that somone may need it in JavaScript or XML files to create own insert objects?
    The Insert bar has been part of Dreamweaver for as long as I can remember (it was certainly part of Dreamweaver 3), so its history goes back 10 years or so. In those days, few people were writing their own JavaScript or XML. Why not submit a feature request? https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.

  • How to make only Panel title clickable?

    I have a Panel where I'd like to do something if the user
    clicks the title (title bar/header) of the Panel. I don't want to
    have the whole Panel be clickable, since a user might "miss" when
    clicking one of the other elements and inadvertently click the
    panel. Thoughts?

    You could place a transparent component over the rest of the
    panel. that component will intercept all mouse events. That is the
    way modal pop-ups work. You do not have to use the blur look.
    I have not done this but there will be examples available,
    and you can look into the pop-up code.
    Tracy

  • How  to make the panel scrollable

    Hi,
    I am trying to set one panel on the other panel with all the Labels button , i want the screen to become scrollable when the size is bigger then the size of the panel . I am getting an issue on setting one panel over another and the controls on the panel will become scrollable.
    Code:
    Main Class which call the sampleadvance search
    import java.awt.BorderLayout;
    * AGLM Main Screen
    * @author vishal.agarwal
    public class AGLMMainScreen extends JFrame {
         // Component Declaration
         private static final long serialVersionUID = 1L;
         private static AGLMMainScreen mframeAGLMMainScreen = null;
         private JMenuBar gsMenuBar;
         private JMenu gsFileMenu;
         private JMenu gsToolsMenu;
         private JMenu gsSamplesMenu;
         private JMenu gsSeedsMenu;
         private JMenu gsReportsMenu;
         private JMenu gsCustomersMenu;
         private JMenu gsHelpMenu;
         private JMenuItem gsExitAction;
         private JMenuItem gsGeneralConfigurationAction;
         private JMenuItem gsRegisterSampleAction;
         private JMenuItem gsRegisterSeedAction;
         private JMenuItem gsRegisterCustomerAction;
         private JMenuItem gsSearchSampleAction;
         private JMenuItem gsAdvanceSearchSampleAction;
         private JMenuItem gsSearchSeedAction;
         private JMenuItem gsSearchCustomerAction;
         private JMenuItem gsAboutAGLMAction;
         private JPanel contentPane;
         private JPanel footerPane;
         private JPanel panelTop = null;
         private JPanel panelLeft = null;
         private JPanel panelRight = null;
         private JLabel lblSelectedRightScreen = null;
         private JLabel lblMCMPLogo;
         private JLabel gslblSoftwareName;
         private JLabel gslblCopyRight;
         * AGLMMain Screen default constructor
         public AGLMMainScreen() {
              addFocusListener(new FocusAdapter() {
                   @Override
                   public void focusGained(FocusEvent arg0) {
              /*setIconImage(Toolkit.getDefaultToolkit().getImage(
                        AGLMMainScreen.class.getResource("/resources/open.png")));*/
              addWindowListener(new WindowAdapter() {
                   @Override
                   public void windowClosing(WindowEvent arg0) {
                        System.exit(0);
              setLocationByPlatform(true);
              setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
              setBounds(0, 0, 1366, 768);
              setVisible(true);
              // Create Menu Bar.
              GenerateMenuBar();
              contentPane = new JPanel();
              setContentPane(contentPane);
              contentPane.setLayout(null);
              // Create Top Panel.
              GenerateTopPanel();
              // Generate Footer Panel.
              GenerateFooterPanel();
              // Generate Left Panel.
              GenerateLeftPanel();
              // Generate Right Panel.
              GenerateRightPanel();
         public void GenerateMenuBar() {
              // Menu Bar
              gsMenuBar = new JMenuBar();
              gsFileMenu = new JMenu();
              gsFileMenu.setText("File");
              gsMenuBar.add(gsFileMenu);
              gsToolsMenu = new JMenu();
              gsToolsMenu.setText("Tool");
              gsMenuBar.add(gsToolsMenu);
              gsSamplesMenu = new JMenu();
              gsSamplesMenu.setText("Sample");
              gsMenuBar.add(gsSamplesMenu);
              gsSeedsMenu = new JMenu();
              gsSeedsMenu.setText("Seed");
              gsMenuBar.add(gsSeedsMenu);
              gsReportsMenu = new JMenu();
              gsReportsMenu.setText("Reports");
              gsMenuBar.add(gsReportsMenu);
              gsCustomersMenu = new JMenu();
              gsCustomersMenu.setText("Customer");
              gsMenuBar.add(gsCustomersMenu);
              gsHelpMenu = new JMenu();
              gsHelpMenu.setText("Help");
              gsMenuBar.add(gsHelpMenu);
              setJMenuBar(gsMenuBar);
              // Items on Menu Bar
              gsExitAction = new JMenuItem();
              gsExitAction.setText("Exit");
              /*gsExitAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Cancel.png")));*/
              gsExitAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        int result = JOptionPane
                                  .showConfirmDialog(
                                            null,
                                            "Do you want to close",
                                            "Selection Option", JOptionPane.YES_NO_OPTION);
                        if (result == JOptionPane.YES_OPTION) {
                             dispose();
                        } else if (result == JOptionPane.NO_OPTION) {
              gsFileMenu.add(gsExitAction);
              gsGeneralConfigurationAction = new JMenuItem();
              gsGeneralConfigurationAction.setText("General Configuration");
              /*gsGeneralConfigurationAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/General.png")));*/
              gsGeneralConfigurationAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsToolsMenu.add(gsGeneralConfigurationAction);
              gsRegisterSampleAction = new JMenuItem(
                        "Register Sample");
              /*gsRegisterSampleAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsRegisterSampleAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsSamplesMenu.add(gsRegisterSampleAction);
              gsSearchSampleAction = new JMenuItem("Search Sample");
              /*gsSearchSampleAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsSearchSampleAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsSamplesMenu.add(gsSearchSampleAction);
              gsAdvanceSearchSampleAction = new JMenuItem("Advance Search Sample");
              /*gsAdvanceSearchSampleAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsAdvanceSearchSampleAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
                        showSampleAdvanceSearchForm();
              gsSamplesMenu.add(gsAdvanceSearchSampleAction);
              gsRegisterSeedAction = new JMenuItem("Register Seed");
              /*gsRegisterSeedAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsRegisterSeedAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsSeedsMenu.add(gsRegisterSeedAction);
              gsSearchSeedAction = new JMenuItem("Seed Search");
              /*gsSearchSeedAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsSearchSeedAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsSeedsMenu.add(gsSearchSeedAction);
              gsRegisterCustomerAction = new JMenuItem("Register Customer");
              /*gsRegisterCustomerAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsRegisterCustomerAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsCustomersMenu.add(gsRegisterCustomerAction);
              gsSearchCustomerAction = new JMenuItem("Search Customer");
              /*gsSearchCustomerAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsSearchCustomerAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsCustomersMenu.add(gsSearchCustomerAction);
              gsAboutAGLMAction = new JMenuItem("About Tool");
              /*gsAboutAGLMAction.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/Export.png")));*/
              gsAboutAGLMAction.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent event) {
                        // TODO
              gsHelpMenu.add(gsAboutAGLMAction);
         public void GenerateTopPanel() {
              // Top Panel
              panelTop = new JPanel();
              panelTop.setBorder(UIManager.getBorder("DesktopIcon.border"));
              panelTop.setBounds(0, 0, 1350, 55);
              contentPane.add(panelTop);
              panelTop.setLayout(null);
              lblSelectedRightScreen = new JLabel();
              lblSelectedRightScreen.setForeground(SystemColor.textHighlight);
              lblSelectedRightScreen.setFont(new Font("Tahoma", Font.PLAIN, 10));
              lblSelectedRightScreen.setBounds(10, 30, 415, 13);
              panelTop.add(lblSelectedRightScreen);
              lblMCMPLogo = new JLabel();
              lblMCMPLogo.setHorizontalAlignment(SwingConstants.CENTER);
              /*lblMCMPLogo.setIcon(new ImageIcon(AGLMMainScreen.class
                        .getResource("/resources/open.png")));*/
              lblMCMPLogo.setForeground(SystemColor.textHighlight);
              lblMCMPLogo.setFont(new Font("Trebuchet MS", Font.PLAIN, 18));
              lblMCMPLogo.setBounds(612, 0, 63, 55);
              panelTop.add(lblMCMPLogo);
         public void GenerateFooterPanel() {
              footerPane = new JPanel();
              footerPane.setBounds(0, 684, 1350, 25);
              footerPane.setBorder(null);
              contentPane.add(footerPane);
              footerPane.setLayout(null);
              gslblCopyRight = new JLabel(
                        "All Rights Reserved (C) ");
              gslblCopyRight.setFont(new Font("Tahoma", Font.PLAIN, 13));
              gslblCopyRight.setBounds(10, 0, 168, 25);
              footerPane.add(gslblCopyRight);
              gslblSoftwareName = new JLabel("ABC");
              gslblSoftwareName.setFont(new Font("Tahoma", Font.PLAIN, 13));
              gslblSoftwareName.setHorizontalAlignment(SwingConstants.RIGHT);
              gslblSoftwareName.setBounds(1201, 0, 139, 25);
              footerPane.add(gslblSoftwareName);
         public void GenerateLeftPanel() {
              // Left Panel
              panelLeft = new JPanel();
              panelLeft.setIgnoreRepaint(true);
              panelLeft.setFont(new Font("Tahoma", Font.PLAIN, 13));
              panelLeft.setBorder(UIManager.getBorder("DesktopIcon.border"));
              panelLeft.setBounds(0, 60, 300, 620);
              contentPane.add(panelLeft);
              panelLeft.setLayout(new BorderLayout(0, 0));
         public void GenerateRightPanel() {
              panelRight = new JPanel();
              panelRight.setBackground(SystemColor.controlHighlight);
              panelRight.setFont(new Font("Tahoma", Font.PLAIN, 13));
              panelRight.setBorder(UIManager.getBorder("DesktopIcon.border"));
              panelRight.setBounds(305, 60, 1045, 620);
              contentPane.add(panelRight);
              panelRight.setLayout(new BoxLayout(panelRight, BoxLayout.X_AXIS));
         public void showSampleAdvanceSearchForm() {
              try {
                   panelRight.removeAll();
                   SampleAdvancedSearch registration = new SampleAdvancedSearch();
                   // registration.setLocation(panelRight.getLocation());
                   // registration.setBounds(panelRight.getBounds());
                   registration.setBounds(1, 1, 1000, 600);
                   panelRight.add(registration);
                   registration.setVisible(true);
                   repaint();
              } catch (Exception e) {
                   JOptionPane.showMessageDialog(null, e.getMessage());
         public void CloseAGLMMainScreenEvent() {
              int result = 0;
              if (result == JOptionPane.YES_OPTION) {
                   mframeAGLMMainScreen.dispose();
                   mframeAGLMMainScreen = null;
              } else if (result == JOptionPane.NO_OPTION) {
              } else {
         * Main Method
         public static void main(String[] args) {
              EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        try {
                             mframeAGLMMainScreen = new AGLMMainScreen();
                             mframeAGLMMainScreen.setTitle("AGLM");
                             mframeAGLMMainScreen.setVisible(true);
                        } catch (Exception e) {
                             JOptionPane
                                       .showMessageDialog(
                                                 null,
                                                 "Error");
                             mframeAGLMMainScreen.dispose();
    SAmpleAdvanceSearch class
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.SystemColor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.ArrayList;
    import java.util.HashMap;
    import javax.swing.ButtonGroup;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JRadioButton;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    import javax.swing.ListSelectionModel;
    import javax.swing.ScrollPaneConstants;
    import javax.swing.SwingConstants;
    import javax.swing.border.LineBorder;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.JTableHeader;
    * @author Vishal Agarwal
    public class SampleAdvancedSearch extends JPanel {
         private static final long serialVersionUID = 1L;
         private JLabel lblFormName;
         private JPanel panelGeneralDetail;
         private JLabel lblSearchDetails;
         private JLabel lblMoistureFrom;
         private JLabel lblSampleNumberFrom;
         private JLabel lblOilContentFrom;
         private JLabel lblSeedType;
         private JLabel lblSampleRateFrom;
         private JTextField txtWeightTo;
         private JTextField txtSampleNumberFrom;
         private JTextField txtMoistureFrom;
         private JComboBox cmbSeedType;
         private JTextField txtMoistureTo;
         private JLabel lblSMSMobileNo;
         private JLabel lblWeightFrom;
         private JLabel lblEmail;
         private JLabel lblSampleNumberTo;
         private JLabel lblProcessingStatus;
         private JLabel lblPaymentStatus;
         private JTextField txtSMSMobileNo;
         private JTextField txtSampleNumberTo;
         private JTextField txtEmail;
         private JTextField txtWeightFrom;
         private JRadioButton rdbtnStatusProcessed;
         private JRadioButton rdbtnStatusUnProcessed;
         private JButton btnClear;
         private JButton btnSearch;
         private JLabel lblWeightTo;
         private JLabel lblMoistureTo;
         private JLabel lblOilContentTo;
         private JLabel lblSampleRateTo;
         private JTextField txtOilContentFrom;
         private JTextField txtSampleRateFrom;
         private JTextField txtOilContentTo;
         private JTextField txtSampleRateTo;
         private JRadioButton rdbtnStatusAll;
         private JRadioButton rdbtnPaymentStatusAll;
         private JLabel lblReceiptPrintStatus;
         private JRadioButton rdbtnReceiptStatusAll;
         private JLabel lblReportPrintStatus;
         private JRadioButton rdbtnReportStatusAll;
         private JRadioButton rdbtnReportStatusPrinted;
         private JRadioButton rdbtnReportStatusNonPrinted;
         private JRadioButton rdbtnReceiptStatusPrinted;
         private JRadioButton rdbtnReceiptStatusNonPrinted;
         private JRadioButton rdbtnPaymentStatusPaid;
         private JRadioButton rdbtnPaymentStatusDue;
         private JScrollPane scrollPaneSearchResult;
         private JTableHeader tblheaderSearchResult;
         private JTable tblSearchResult;
         private DefaultTableModel dtmSearchResult = null;
         private String[] gsobjColumnHeaders = null;
         AGLMMainScreen gsAGLMMainScreen;
         * @throws AGLEngineException
         public SampleAdvancedSearch()
                   throws Exception {
              setAutoscrolls(true);
              setMinimumSize(new Dimension(1000, 1000));
              try {
                   createScreenComponents();
                   createSearchResultScreenComponents();
              } catch (Exception e) {
                   throw e;
         private void createSearchResultScreenComponents() {
              gsobjColumnHeaders = new String[] { "SNo", "Sample Name", "Date",
                        "Sample Type", "Weight (gm)", "Moisture (%)",
                        "Oil Content (%)", "Payment Status", "Status", "Report Print",
                        "Mobile No", "Email Id", "Actions" };
              dtmSearchResult = new DefaultTableModel(null, gsobjColumnHeaders) {
                   private static final long serialVersionUID = 1L;
                   boolean[] columnEditables = new boolean[] { false, false, };
                   public boolean isCellEditable(int row, int column) {
                        return columnEditables[column];
                   @SuppressWarnings("unused")
                   public boolean isRowSelected(int row) {
                        return true;
              scrollPaneSearchResult = new JScrollPane();
              scrollPaneSearchResult
                        .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
              scrollPaneSearchResult
                        .setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
              scrollPaneSearchResult.setEnabled(true);
              scrollPaneSearchResult.setBounds(10, 460, 900, 200);
              add(scrollPaneSearchResult);
              tblSearchResult = new JTable();
              tblSearchResult.setModel(dtmSearchResult);
              tblSearchResult
                        .setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
              tblSearchResult.setFont(new Font("Tahoma", Font.PLAIN, 11));
              tblSearchResult.setBackground(Color.WHITE);
              tblSearchResult.setBorder(new LineBorder(new Color(0, 0, 0)));
              tblSearchResult.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
              scrollPaneSearchResult.setViewportView(tblSearchResult);
              tblSearchResult.setRowHeight(40);
              for (int i = 0; i < tblSearchResult.getColumnCount(); i++) {
                   tblSearchResult.getColumnModel().getColumn(i).setCellRenderer(new TextAreaRenderer());
              tblSearchResult.setCellEditor(new TextAreaEditor());
              tblSearchResult.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    //          AGLUtility.packColumns(tblSearchResult, 4);
              tblSearchResult.getColumnModel().getColumn(2).setPreferredWidth(100);
              tblSearchResult.getColumnModel().getColumn(8).setPreferredWidth(100);
              tblSearchResult.getColumnModel().getColumn(10).setPreferredWidth(100);
              tblSearchResult.getColumnModel().getColumn(11).setPreferredWidth(150);
              tblSearchResult.getColumnModel().getColumn(12).setPreferredWidth(100);
              tblheaderSearchResult = tblSearchResult.getTableHeader();
              tblheaderSearchResult.setAlignmentX(Component.CENTER_ALIGNMENT);
              tblheaderSearchResult.setAlignmentY(Component.CENTER_ALIGNMENT);
         private void createScreenComponents() throws Exception {
              try {
                   setAlignmentX(Component.LEFT_ALIGNMENT);
                   setBackground(SystemColor.controlHighlight);
                   setLayout(null);
                   lblFormName = new JLabel("Sample Advance Search");
                   lblFormName.setHorizontalTextPosition(SwingConstants.CENTER);
                   lblFormName.setHorizontalAlignment(SwingConstants.LEFT);
                   lblFormName.setFont(new Font("Tahoma", Font.BOLD, 18));
                   lblFormName.setBounds(10, 10, 400, 30);
                   add(lblFormName);
                   // General Detail Panel
                   panelGeneralDetail = new JPanel();
                   panelGeneralDetail.setForeground(Color.RED);
                   panelGeneralDetail.setBorder(new LineBorder(new Color(0, 0, 0)));
                   panelGeneralDetail.setBounds(10, 40, 900, 410);
                   add(panelGeneralDetail);
                   panelGeneralDetail.setLayout(null);
                   lblSearchDetails = new JLabel("Sample Search Details :-");
                   lblSearchDetails.setHorizontalAlignment(SwingConstants.LEFT);
                   lblSearchDetails.setFont(new Font("Tahoma", Font.BOLD, 13));
                   lblSearchDetails.setBounds(20, 10, 231, 20);
                   panelGeneralDetail.add(lblSearchDetails);
                   lblMoistureFrom = new JLabel("Moisture Range (%) From ");
                   lblMoistureFrom.setForeground(Color.BLACK);
                   lblMoistureFrom.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblMoistureFrom.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblMoistureFrom.setBounds(30, 310, 200, 20);
                   panelGeneralDetail.add(lblMoistureFrom);
                   lblSampleNumberFrom = new JLabel("Sample Number From ");
                   lblSampleNumberFrom.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblSampleNumberFrom.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblSampleNumberFrom.setBounds(30, 250, 200, 20);
                   panelGeneralDetail.add(lblSampleNumberFrom);
                   lblOilContentFrom = new JLabel("Oil Content (%) From ");
                   lblOilContentFrom.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblOilContentFrom.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblOilContentFrom.setBounds(30, 340, 200, 20);
                   panelGeneralDetail.add(lblOilContentFrom);
                   txtWeightTo = new JTextField();
                   txtWeightTo.setBounds(490, 280, 170, 20);
                   panelGeneralDetail.add(txtWeightTo);
                   txtWeightTo.setColumns(10);
                   txtSampleNumberFrom = new JTextField();
                   txtSampleNumberFrom.setColumns(10);
                   txtSampleNumberFrom.setBounds(250, 250, 170, 20);
                   panelGeneralDetail.add(txtSampleNumberFrom);
                   txtMoistureFrom = new JTextField();
                   txtMoistureFrom.setColumns(10);
                   txtMoistureFrom.setBounds(250, 310, 170, 20);
                   panelGeneralDetail.add(txtMoistureFrom);
                   lblSeedType = new JLabel("Sample Seed Type ");
                   lblSeedType.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblSeedType.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblSeedType.setBounds(30, 40, 200, 20);
                   panelGeneralDetail.add(lblSeedType);
                   lblSampleRateFrom = new JLabel("Sample Testing Rate From ");
                   lblSampleRateFrom.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblSampleRateFrom.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblSampleRateFrom.setBounds(30, 370, 200, 20);
                   panelGeneralDetail.add(lblSampleRateFrom);
                   cmbSeedType = new JComboBox();
                   cmbSeedType.setBounds(250, 40, 170, 20);
                   panelGeneralDetail.add(cmbSeedType);
                   txtMoistureTo = new JTextField();
                   txtMoistureTo.setColumns(10);
                   txtMoistureTo.setBounds(490, 310, 170, 20);
                   panelGeneralDetail.add(txtMoistureTo);
                   lblSMSMobileNo = new JLabel("Registered Mobile No ");
                   lblSMSMobileNo.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblSMSMobileNo.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblSMSMobileNo.setBounds(30, 70, 200, 20);
                   panelGeneralDetail.add(lblSMSMobileNo);
                   lblWeightFrom = new JLabel("Weight Range (gm) From ");
                   lblWeightFrom.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblWeightFrom.setForeground(Color.BLACK);
                   lblWeightFrom.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblWeightFrom.setBounds(30, 280, 200, 20);
                   panelGeneralDetail.add(lblWeightFrom);
                   lblEmail = new JLabel("Registered Email ");
                   lblEmail.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblEmail.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblEmail.setBounds(30, 100, 200, 20);
                   panelGeneralDetail.add(lblEmail);
                   lblSampleNumberTo = new JLabel("To ");
                   lblSampleNumberTo.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblSampleNumberTo.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblSampleNumberTo.setBounds(430, 250, 50, 20);
                   panelGeneralDetail.add(lblSampleNumberTo);
                   lblProcessingStatus = new JLabel("Processing Status ");
                   lblProcessingStatus.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblProcessingStatus.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblProcessingStatus.setBounds(30, 130, 200, 20);
                   panelGeneralDetail.add(lblProcessingStatus);
                   lblPaymentStatus = new JLabel("Payment Status ");
                   lblPaymentStatus.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblPaymentStatus.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblPaymentStatus.setBounds(30, 160, 200, 20);
                   panelGeneralDetail.add(lblPaymentStatus);
                   txtSMSMobileNo = new JTextField();
                   txtSMSMobileNo.setColumns(10);
                   txtSMSMobileNo.setBounds(250, 70, 170, 20);
                   panelGeneralDetail.add(txtSMSMobileNo);
                   txtWeightFrom = new JTextField();
                   txtWeightFrom.setColumns(10);
                   txtWeightFrom.setBounds(250, 280, 170, 20);
                   panelGeneralDetail.add(txtWeightFrom);
                   txtEmail = new JTextField();
                   txtEmail.setColumns(10);
                   txtEmail.setBounds(250, 100, 170, 20);
                   panelGeneralDetail.add(txtEmail);
                   txtSampleNumberTo = new JTextField();
                   txtSampleNumberTo.setColumns(10);
                   txtSampleNumberTo.setBounds(490, 250, 170, 20);
                   panelGeneralDetail.add(txtSampleNumberTo);
                   rdbtnStatusAll = new JRadioButton("All");
                   rdbtnStatusAll.setSelected(true);
                   rdbtnStatusAll.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnStatusAll.setBounds(250, 130, 50, 20);
                   panelGeneralDetail.add(rdbtnStatusAll);
                   rdbtnStatusProcessed = new JRadioButton("Processed");
                   rdbtnStatusProcessed.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnStatusProcessed.setBounds(310, 130, 85, 20);
                   panelGeneralDetail.add(rdbtnStatusProcessed);
                   rdbtnStatusUnProcessed = new JRadioButton("Un-Processed");
                   rdbtnStatusUnProcessed.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnStatusUnProcessed.setBounds(400, 130, 120, 20);
                   panelGeneralDetail.add(rdbtnStatusUnProcessed);
                   final ButtonGroup rdbtngrpProcessingStatus = new ButtonGroup();
                   rdbtngrpProcessingStatus.add(rdbtnStatusProcessed);
                   rdbtngrpProcessingStatus.add(rdbtnStatusUnProcessed);
                   rdbtngrpProcessingStatus.add(rdbtnStatusAll);
                   rdbtnPaymentStatusAll = new JRadioButton("All");
                   rdbtnPaymentStatusAll.setSelected(true);
                   rdbtnPaymentStatusAll.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnPaymentStatusAll.setBounds(250, 160, 50, 20);
                   panelGeneralDetail.add(rdbtnPaymentStatusAll);
                   rdbtnPaymentStatusPaid = new JRadioButton("Paid");
                   rdbtnPaymentStatusPaid.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnPaymentStatusPaid.setBounds(310, 160, 85, 20);
                   panelGeneralDetail.add(rdbtnPaymentStatusPaid);
                   rdbtnPaymentStatusDue = new JRadioButton("Due");
                   rdbtnPaymentStatusDue.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnPaymentStatusDue.setBounds(400, 160, 120, 20);
                   panelGeneralDetail.add(rdbtnPaymentStatusDue);
                   final ButtonGroup rdbtngrpPaymentStatus = new ButtonGroup();
                   rdbtngrpPaymentStatus.add(rdbtnPaymentStatusAll);
                   rdbtngrpPaymentStatus.add(rdbtnPaymentStatusPaid);
                   rdbtngrpPaymentStatus.add(rdbtnPaymentStatusDue);
                   rdbtnReceiptStatusAll = new JRadioButton("All");
                   rdbtnReceiptStatusAll.setSelected(true);
                   rdbtnReceiptStatusAll.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnReceiptStatusAll.setBounds(250, 190, 50, 20);
                   panelGeneralDetail.add(rdbtnReceiptStatusAll);
                   rdbtnReceiptStatusPrinted = new JRadioButton("Printed");
                   rdbtnReceiptStatusPrinted.setFont(new Font("Tahoma", Font.ITALIC,
                             13));
                   rdbtnReceiptStatusPrinted.setBounds(310, 190, 85, 20);
                   panelGeneralDetail.add(rdbtnReceiptStatusPrinted);
                   rdbtnReceiptStatusNonPrinted = new JRadioButton("Non Printed");
                   rdbtnReceiptStatusNonPrinted.setFont(new Font("Tahoma",
                             Font.ITALIC, 13));
                   rdbtnReceiptStatusNonPrinted.setBounds(400, 190, 120, 20);
                   panelGeneralDetail.add(rdbtnReceiptStatusNonPrinted);
                   final ButtonGroup rdbtngrpReceiptStatus = new ButtonGroup();
                   rdbtngrpReceiptStatus.add(rdbtnReceiptStatusAll);
                   rdbtngrpReceiptStatus.add(rdbtnReceiptStatusPrinted);
                   rdbtngrpReceiptStatus.add(rdbtnReceiptStatusNonPrinted);
                   rdbtnReportStatusAll = new JRadioButton("All");
                   rdbtnReportStatusAll.setSelected(true);
                   rdbtnReportStatusAll.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnReportStatusAll.setBounds(250, 220, 50, 20);
                   panelGeneralDetail.add(rdbtnReportStatusAll);
                   rdbtnReportStatusPrinted = new JRadioButton("Printed");
                   rdbtnReportStatusPrinted
                             .setFont(new Font("Tahoma", Font.ITALIC, 13));
                   rdbtnReportStatusPrinted.setBounds(310, 220, 85, 20);
                   panelGeneralDetail.add(rdbtnReportStatusPrinted);
                   rdbtnReportStatusNonPrinted = new JRadioButton("Non Printed");
                   rdbtnReportStatusNonPrinted.setFont(new Font("Tahoma", Font.ITALIC,
                             13));
                   rdbtnReportStatusNonPrinted.setBounds(400, 220, 120, 20);
                   panelGeneralDetail.add(rdbtnReportStatusNonPrinted);
                   final ButtonGroup rdbtngrpReportStatus = new ButtonGroup();
                   rdbtngrpReportStatus.add(rdbtnReportStatusAll);
                   rdbtngrpReportStatus.add(rdbtnReportStatusPrinted);
                   rdbtngrpReportStatus.add(rdbtnReportStatusNonPrinted);
                   lblWeightTo = new JLabel("To ");
                   lblWeightTo.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblWeightTo.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblWeightTo.setBounds(430, 280, 50, 20);
                   panelGeneralDetail.add(lblWeightTo);
                   lblMoistureTo = new JLabel("To ");
                   lblMoistureTo.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblMoistureTo.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblMoistureTo.setBounds(430, 310, 50, 20);
                   panelGeneralDetail.add(lblMoistureTo);
                   lblOilContentTo = new JLabel("To ");
                   lblOilContentTo.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblOilContentTo.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblOilContentTo.setBounds(430, 340, 50, 20);
                   panelGeneralDetail.add(lblOilContentTo);
                   lblSampleRateTo = new JLabel("To ");
                   lblSampleRateTo.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblSampleRateTo.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblSampleRateTo.setBounds(430, 370, 50, 20);
                   panelGeneralDetail.add(lblSampleRateTo);
                   txtOilContentFrom = new JTextField();
                   txtOilContentFrom.setColumns(10);
                   txtOilContentFrom.setBounds(250, 340, 170, 20);
                   panelGeneralDetail.add(txtOilContentFrom);
                   txtSampleRateFrom = new JTextField();
                   txtSampleRateFrom.setColumns(10);
                   txtSampleRateFrom.setBounds(250, 370, 170, 20);
                   panelGeneralDetail.add(txtSampleRateFrom);
                   txtOilContentTo = new JTextField();
                   txtOilContentTo.setColumns(10);
                   txtOilContentTo.setBounds(490, 340, 170, 20);
                   panelGeneralDetail.add(txtOilContentTo);
                   txtSampleRateTo = new JTextField();
                   txtSampleRateTo.setColumns(10);
                   txtSampleRateTo.setBounds(490, 370, 170, 20);
                   panelGeneralDetail.add(txtSampleRateTo);
                   lblReceiptPrintStatus = new JLabel("Receipt Print Status ");
                   lblReceiptPrintStatus.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblReceiptPrintStatus.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblReceiptPrintStatus.setBounds(30, 190, 200, 20);
                   panelGeneralDetail.add(lblReceiptPrintStatus);
                   lblReportPrintStatus = new JLabel("Report Print Status ");
                   lblReportPrintStatus.setHorizontalAlignment(SwingConstants.RIGHT);
                   lblReportPrintStatus.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   lblReportPrintStatus.setBounds(30, 220, 200, 20);
                   panelGeneralDetail.add(lblReportPrintStatus);
                   // Buttons
                   btnClear = new JButton("Clear");
                   btnClear.setBounds(745, 317, 100, 30);
                   panelGeneralDetail.add(btnClear);
                   btnClear.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   btnSearch = new JButton("Search");
                   btnSearch.setBounds(745, 360, 100, 30);
                   panelGeneralDetail.add(btnSearch);
                   btnSearch.setFont(new Font("Tahoma", Font.ITALIC, 13));
                   btnSearch.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent arg0) {
                             searchSample();
              } catch (Exception e) {
                   throw new Exception("Error occured while generating data for screen. "
                                       + e.getMessage(), e);
         private void searchSample() {}
    }

    1. wall of unformatted code. Use \ tags when posting code.
    2. you're not even asking a question. You're just saying "it doesn't work" and then you dump the code. What do you expect? That people now go to debug it for you?                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to make frames/panels transparent?

    Say I wanted to have a window that had rounded edges, or a weird shape. Is there a way to create transparency on a frame so I can pull off this effect?

    http://forum.java.sun.com/thread.jspa?threadID=789490

  • How to make a photo STAY in the assets panel for future use for In browser editing?

    How to make a photo STAY in the assets panel for future use for In browser editing?
    When I delete a photo from a page, it does not stay in the assets panel. My client uses in browser editing daily. Once a week he changes a photo just for a day, then needs the previous photo to replace it. The original photo is not in the asset panel (or folder) for him to choose.
    When you upload a photo, it has an arrow in the asset panel. How do you use this as an asset?

    Sure ... right mouse click on  your page and choose 'Exclude Page from Menus' :-)

  • How to make the LV front panel controls the current value through the program is set as the default value when the next time you open?

    How to make the LV front panel controls the current value through the programis set as the default value when the next time you open?
    1110340051 

    Try this: Re: How to make a VI remember the latest control value?
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • How to make a remote panel file dialog open remote directory from any computer

    Hello to everybody. I am using Labview 6.1 and I would like to know how to make a remote panel file dialog open remote directory from any computer (Not only from a specific computer. If I open the file with a specific computer, I have to conect the path of the remote machine, but if I don´t know which remote computer is going to run the aplication, how can I do it?)?

    Hi!
    first you have to know progammatically the name of the remote pc connected to your server: this is a problem!
    I did not find a straigth way, LV 6.1 doesn't allow much progammatic control on the remote panel connection feature, but I'm confident that in the next LV version this will be improved!
    The point is that the Remote Panel Connection Manager (from the Tools menu) has all the informations about the connection: client name, server vi and whatever.
    This application is embedded in the \PROJECT\REMOTEPANEL.LLB and consists of a set of password protected vis.
    So here's the trick: use VIServer to grab data from the rpcm Get Server Data.vi when the Remote Panel Connection Manager is in run mode. By this you get all the informations (not only client name)o
    f the remote panel connection. See my example.
    By the way use client machine name to build the file dialog function input path.
    If anybody has an alternative method it would be more than appreciated to share it.
    Good luck,
    Alberto Locatelli
    Attachments:
    get_remote_machine_data.vi ‏151 KB

  • Spry Accord. Panel - How to make it closed Please help!

    Hi, I would like to ask for your help with the following:
    I made a spry accord. panel. I was wondering how to make the first tab being closed when I open up the following page. Somehow when I made it, it created that the first tab stays open all the time. I was wondering if I can make it being closed and only open when I click on the Artisan Collection.
    Thank you so much for your help in advance! Agi
    Here is the link and you will see the panel on the left handside:
    http://mallinfurniture.com/browse_c01.html

    Hi,
    Thank you so much for the answers. I tried what you recommended. An error message came up saying the following. Also, I noticed something weird in my coding... Maybe that is why it is not working. I copy the coding as well. Thank you so much for taking the time to help me out!!!
    Error message: "This document contains JavaScript code for a widget that no longer exists. If you don't remove the code, the browser might display JavaScript errors when loading the page. Would you like Dreamweaver to find all the instances of this code for you?" Ok, No.
    When I click on Ok. Nothing happens. What am I doing wrong?
    Coding - the end of my page:
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("CatalogMenu", {defaultPanel: params.panel ? params.panel: 0});
    //-->
    </script>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false, defaultPanel: -1 }); //--> </script> </body>
    </html>
    It looks like I have double of that. When I removed the first accordion, all of my panels were opened...
    What could ne wrong?
    Thank you! Agi

Maybe you are looking for

  • IE 11 and IE 11 patch deployments requires a reboot

    Hi Guys, I need to perform the below tasks.  1. Uninstall a plugin (no reboot required) 2. Install IE 11 (reboot required) 3. Install IE 11 patch (reboot required) I have 3 different package created  Do i need to create a task sequence to install the

  • WMII session configuration

    Hey guys, Wmii talks about session configuration, but I'm not sure how to go about it. I suppose you could issue some commands in one of the config files (~/.wmii/rc?). But I don't really know which commands to help choose clients. This is what I do

  • Hiding the floating toolbar acrobat reader x

    Hello We have developed software that displays pdf documents on the screen for validation by the user before printing. We need to be able to manage the "print" action within our software and with the new floating toolbar this has become impossible. I

  • Saving textpane wrapped in htmleditorkit to an html file

    Hey, Do any of you people know what I am doing wrong with the following code? It will not take the typed text, convert it to html code, and save it as an html file. The file saves properly, but it is just blank w/ no text and such. please help       

  • Itunes symbol and USB cord picture on screen

    I was trying to update to the latest, 8.1.3 I believe, and my phone turned itself off and when I turned it back on, all I can get is the iTunes symbol and a picture of a USB plug.  I have turned the phone off and on several times and tried to reset.