WMS set center and size

Does anyone know what "Center and Size must be defined when WMS Theme is to be rendered" means? I believe I have set up correctly and have "Get capabilities" set to "http://nowcoast.noaa.gov/wms/com.esri.wms.Esrimap/wwa?service=wms&version=1.1.1&request=GetCapabilities".
Cheers

If you are previewing a WMS theme in MapBuilder, you need to define a center and size of the map so the request to retrieve an image from the WMS server will know the area to be processed. This WMS server appears to have some world data in geographic coordinates, so just try a center and size for some part in US (cx: -98, cy: 40, size: 20).

Similar Messages

  • Set center and size

    Hi,
    How can I set the center and size of a map to view a group of points (like zoom to selection function).
    Thank you
    Ali

    Hi,
    you can use the concept of bounding themes. The following example uses the feature selection for theme1 and theme3 to define the center and size of your map.
    <?xml version="1.0" standalone="yes"?>
    <map_request
                 title="tilsmq202:bounding themes"
                 datasource = "tilsmenv"
                 basemap="qa_map"
                 width="400"
                 height="400"
                 bgcolor="#a6cae0"
                 antialiase="false"
                 mapfilename="tilsmq202"
                 format="PNG_URL">
      <bounding_themes border_margin="0.02">theme1, theme3</bounding_themes>
      <themes>
        <theme name="theme1" min_scale="5.0E7" max_scale="0.0">
           <jdbc_query
             datasource="tilsmenv"
             jdbc_srid="8265"
             spatial_column="geom" label_column="STATE"
             render_style="myPattern" label_style="myText"
             >SELECT geom, state from states where state_abrv='IL'</jdbc_query>
         </theme>
        <theme name="theme3" min_scale="5.0E7" max_scale="0.0">
           <jdbc_query
             datasource="tilsmenv"
             jdbc_srid="8265"
             spatial_column="geom" label_column="STATE"
             render_style="myPattern" label_style="myText"
             >SELECT geom,state from states where state_abrv='IN'</jdbc_query>
         </theme>
      </themes>
      <styles>
        <style name="myPattern">
            <svg width="1in" height="1in">
            <desc></desc>
             <g class="area" style="stroke:#0000cc;fill:#3300ff;fill-opacity:128;line-style:L.DPH">
             </g>
           </svg>
       </style>
       <style name="myText">
           <svg width="1in" height="1in">
              <g class="text" float-width="3.0" style="font-style:bold;font-family:Serif;font-size:18pt;fill:#000000">
                  Hello World!
              </g>
           </svg>
       </style>
      </styles>
    </map_request>Joao

  • HT5639 I am attempting to install windows 7 ultimate on a mid2012 production macbook pro using Bootcamp 5 in Mountain Lion. Whenever I set the partition size and tell it to continue, the program quits unexpectedly. I have done this about 5 times now. Sugg

    The lead-in above pretty much states the problem. I am attempting to install Windows 7 from a disk, but that is not the issue. Boot Camp 5 just quits and reopens. I then repeat. Help.

    I am about to run specialized GIS software that may or may not need the full machine resources. I am an attorney who uses QuickBooks for my accounting. The Mac version does not do as much as the Windows version. This is from both Apple and Quick Books professionals. I am using Parallels Desktop version 8 at this time. It does not support QuickBooks Windows version per Parallels. Any other questions? I am a highly competent PC user who is new to Macs. I am entitled to my own configuration choices. That said, I know when I need help which is now.
    As to the free space issue I have 665.18 GB free space out of 749.3 GB on the drive. I am not trying to run the 32 bit version. I know that it requires the 64 bit version. Besides, it does not get that far in the process. As I said Boot Camp asssitant terminates unexpectedly as soon as you hit the continue button after setting the partition size. Therefore I conclude that it does not have a chance to see which version of Windows that I am using. I am using Windows 7 Ultimate 64 bit version in the virtual engine (to use Parallels speak), but again Boot Camp would not see that since it is not running. It can't run at the momenet because Apple just installed a new hard drive and I have just restored the data from TIme Machine and Parallels needs reactivated, which I have not done yet deliberatley. With all of this addtiional information do you have any further suggestions? Thanks for your time and interest my issue.

  • I am not satisfied with the font and size of print that I set. How do I change it?

    When I first set up Firefox on my desktop, I set the print size and font. I have found that it is too large and I really would like to change the font, also. I can't find a spot to do that. I might be looking right at it but don't realize it. Could you help me?

    I can't remember what I did when I set the font and size of articles that I printed from the pages on Firefox. I just know that I tried something a few months ago and have not been happy with the settings that I made. I can't find anywhere to change those settings and have tried so many things but they do not change the look of the pages I print when I click print. I tried to see if I could change the settings but all it does is change portrait or landscape and margins...nothing about fonts or sizes. I am getting so frustrated even though I love Firefox.

  • How to set the page size and the margins programatically

    Hello,
      I am working with crystal report XI Release2 and asp.net.
    One of my report is having 4 graphs in a single report.In order to display all the graphs in one page i have set  the paper size as A3.(Via Crysta report ->File->Page set up)
    But the page size A3 is not provided by all printers.So problem comes when the application is diployed on a machine which does not support A3 Printer.All the graphs will not be shown on a single page.
    Also Each and Every time ,when the application is diployed on a machine,user has to open the crystal report and adjust the page size accordingly to get all the reports on a single page.
    This is a kind of usability issue also.
    Is it possible to set the page size and the margins programatically say for eg 11 X 17.so that with out doing anything all the 4 graphs will get displayed on a single page ?
    Please let me know if you require more information regarding this issue.
    Thanks in advance.
    smitha.

    Hi Ludek,
    i could solve the issue by using the follwing code.
    report = new ReportDocument();
    PageMargins customPageMargin = report.PrintOptions.PageMargins;
    report.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
    report.PrintOptions.PaperSize = PaperSize.Paper10x14;
    customPageMargin.rightMargin = 1;
    customPageMargin.topMargin = 0;
    customPageMargin.bottomMargin = 0;
    report.PrintOptions.ApplyPageMargins(customPageMargin);
    Thanks for you help.
    Regards,
    smitha.

  • Any relation b/w  set serveroutput on size 1000000 and utl_file

    Hi All,
    pls tell is any relation b/w set serveroutput on size 1000000 and utl_file
    Thank u.

    there is no relation between them
    one is used to output text on the screen
    where as the other is used to output text on the file.
    dbms_output->Screen
    utl_file->file

  • Set default font type and size in formcreated using Acrobat X Pro

    I have a word document that I used Acrobat X Pro to create a PDF and then a Form.  The Form has over 200 text fields.  Is there a way to globally set the font type and size to one type, for instance Arial 10 so that when someone opens the Form and fills it in, the global font type and size is preset         

    Are you talking about fields that you create manually or field created with the Form Wizard? Exactly what version of Acrobat are you using? What OS?
    In any case, using a script is a quick and easy approach:
    for (var i = 0; i < numFields; i++) {
        var fName = getNthFieldName(i);
        var f = getField(fName);
        if (f.type === "text") {
            f.textFont = font.Times;
            f.textSize = 9;
            // Other properties go here
    I use this type of thing all the time to quickly alter a form. Such a script isn't added anywhere, just executed (e.g., JavaScript console). Over time a developer can build up a collection of utility scripts that can do all sorts of things to dramatically speed up development. It would be bad if this option were not available.
    If there is a bug, it should certainly be addressed, so don't think I'm arguing against that, but I'm not seeing it on any of my systems. I can successfully set the default field properties by selecting "Use Current Properties as New Defaults". The Form Wizard does not use these defaults, but that's a different matter.

  • My new Firefox ver 29 always starts maximized how do i set the window size and not maximized?

    I had reinstall my Windows 7 (win 7 pro 64bit)
    so i had to reinstall firefox as well, installed ver 27 and updated it to version 29
    now when i start firefox it will start maximized and i want to set the window size when it starts,
    why the size of the window will not change and it will start maximized all the time?

    # In Firefox, type ''about:support'' into the address bar and press Enter.
    # Click the Show Folder button. A Windows Explorer window opens.
    # Right-click the Firefox taskbar icon and choose either Close All Windows or Close Window.
    # In the Windows Explorer window that opened earlier, delete the ''localstore.rdf'' file.
    # If you have Firefox pinned to the taskbar, right-click the taskbar icon, then right-click the Firefox icon in the menu that pops up and choose Properties.
    #* If you have a desktop shortcut, simply right-click it and choose Properties.
    # Click the Shortcut tab in the Properties window.
    # Make sure Run is set to "Normal window".

  • TS4268 I was accedentally deleted my facetime. then after that from now on i cant see my facetime button in my home screen and also in setting. im just see my facetime in setting noicifation center. and i tried to check at my contact i didnt see also face

    I was accedentally deleted my facetime. then after that from now on i cant see my facetime button in my home screen and also in setting. im just see only my facetime in setting>noicifation center. and i tried to check at my contact i didnt see also facetime in lower part. please help me,. thank you

    Hi LifeGood,
    Thanks for using Apple Support Communities.  In iOS, FaceTime is not a separate app and FaceTime calls can be made as described here:
    iOS: Using FaceTime
    http://support.apple.com/kb/ht4319
    How do I make a FaceTime call?
    You can make a FaceTime call in multiple ways, depending on your device:
    iPhone 4 or later: You can place a FaceTime call using the following apps:
    Phone: While on a phone call, you can tap the FaceTime icon to invite the other party to a FaceTime call.
    Contacts: Tap the FaceTime icon to place a FaceTime call to the contact you are viewing.
    iPad 2 or later, iPad mini, iPod touch (4th generation) or later, and FaceTime for Mac: You can place a FaceTime call using the following apps:
    FaceTime: Place a FaceTime call using your contacts list.
    Contacts: Tap the FaceTime icon to place a FaceTime call to the contact you are viewing.
    Note: There is no FaceTime app on iPhone. Use the Phone app instead.
    Cheers,
    - Ari

  • HP Laserjet M401A could not set different paper size and tray on printer properties

    Good morning all. I'm experiencing a issue setting custom paper size and tray in this printer properties. I would like to set up three different printers, on the same port, to print directly on a specific tray (without enter the printer properties and select the proper tray and size). I have this printer with the additional third tray. I have set up A4 in tray 1 (bypass), custom size in tray 2 and 3 on the printer. When i enter the printer PROPERTIES i want to set up set custom paper size in tray 2 and 3. No way.The only sizes i can see is 13x8, a4, a5, letter, legal, and so on (there are maybe 7 choices). So i choose NOT SPECIFIED. When i go on printer PREFERENCES, i can set up my custom paper size.But when i choose my custom paper size, the tray 2 and 3 go away and i can only choose bypass or tray 1.If i set up A5 (for example) the tray 2 and 3 re-appear. How is it possible? where i am wrong? Many thanks, any help would be appreciated.Cheers,Luca.

    I have done extensive research online and looked for relevant posts in other forums, plus I downloaded a LaserJet 4L service manual. The verdict: A common cause of this no-power problem is a faulty DC controller board, blown fuse(s) on it, or other circuitry glitch. I am sure that the paper tray is inserted correctly.
    So I decided to cut my losses (I'm not inclined to pull the printer apart to try to fix it--it's not worth my time) and tossed the printer. It's not cost-effective or time-effective to spend a lot of money or time to resuscitate old hardware, except perhaps as a learning exercise.
    I consider this thread now closed.

  • Just bought my mac mini and set up my apple account.  I was trying to pay a game on the game center and after I click on the accept agreement and hit send, it show saving and then it locks up.

    just bought my mac mini.  loggin into my game center, and after accepting the user agreement, it then saves my options.  After trying serveral times, my screen just shows my options are saving and does nothing past this point.  even after waiting a very long time.

    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    Or...
    Open console in Applications>Utilities, check the system log for the date/time of the last problem  & the Startup right after that for clues.

  • Setting up prefs for code view fonts and sizes

    using cs5
    i copied some pages in from another computer... the fonts and sizes in code view are too small.
    in prefs - fonts - I made them bigger - then said apply source formatting
    but they don't always seem to stick - maybe the next day they are small again
    Q: how do I get font pref settings to work for all sites all the time?
    thanks in advance - dave

    Such settings are not carried in from external pages, they are part of your preferences.  In other words, opening a page could not change your existing preferences.

  • How do I set the frame size

    I am Making a program for purchasing games, with the basic layout alsot done, except on problem. When the purchase button is pressed, a dialog shows up but nothing is seen until i resize it. How would i set the frame size so that i do not need to resize it each time? below is the code for the files. Many thanks in advance.
    CreditDialog
    import java.awt.*;
    import java.awt.event.*;
    class CreditDialog extends Dialog implements ActionListener { // Begin Class
         private Label creditLabel = new Label("Message space here",Label.RIGHT);
         private String creditMessage;
         private TextField remove = new TextField(20);
         private Button okButton = new Button("OK");
         public CreditDialog(Frame frameIn, String message) { // Begin Public
              super(frameIn); // call the constructor of dialog
              creditLabel.setText(message);
              add("North",creditLabel);
              add("Center",remove);
              add("South",okButton);
              okButton.addActionListener(this);
              setLocation(150,150); // set the location of the dialog box
              setVisible(true); // make the dialog box visible
         } // End Public
         public void actionPerformed(ActionEvent e) { // Begin actionPerformed
    //          dispose(); // close dialog box
         } // End actionPerformed
    } // End Class
    MobileGame
    import java.awt.*;
    import java.awt.event.*;
    class MobileGame extends Panel implements ActionListener { // Begin Class
         The Buttons, Labels, TextFields, TextArea 
         and Panels will be created first.         
         private int noOfGames;
    //     private GameList list;
         private Panel topPanel = new Panel();
         private Panel middlePanel = new Panel();
         private Panel bottomPanel = new Panel();
         private Label saleLabel = new Label ("Java Games For Sale",Label.RIGHT);
         private TextArea saleArea = new TextArea(7, 25);
         private Button addButton = new Button("Add to Basket");
         private TextField add = new TextField(3);
         private Label currentLabel = new Label ("Java Games For Sale",Label.RIGHT);
         private TextArea currentArea = new TextArea(3, 25);
         private Button removeButton = new Button("Remove from Basket");
         private TextField remove = new TextField(3);
         private Button purchaseButton = new Button("Purchase");
         private ObjectList gameList = new ObjectList(20);
         Frame parentFrame; //needed to associate with dialog
         All the above will be added to the interface 
         so that they are visible to the user.        
         public MobileGame (Frame frameIn) { // Begin Constructor
              parentFrame = frameIn;
              topPanel.add(saleLabel);
              topPanel.add(saleArea);
              topPanel.add(addButton);
              topPanel.add(add);
              middlePanel.add(currentLabel);
              middlePanel.add(currentArea);
              bottomPanel.add(removeButton);
              bottomPanel.add(remove);
              bottomPanel.add(purchaseButton);
              this.add("North", topPanel);
              this.add("Center", middlePanel);
              this.add("South", bottomPanel);
              addButton.addActionListener(this);
              removeButton.addActionListener(this);
              purchaseButton.addActionListener(this);
              The following line of code below is 
              needed inorder for the games to be  
              loaded into the SaleArea            
         } // End Constructor
         All the operations which will be performed are  
         going to be written below. This includes the    
         Add, Remove and Purchase.                       
         public void actionPerformed (ActionEvent e) { // Begin actionPerformed
         If the Add to Basket Button is pressed, a       
         suitable message will appear to say if the game 
         was successfully added or not. If not, an       
         ErrorDialog box will appear stateing the error. 
              if(e.getSource() == addButton) { // Begin Add to Basket
    //          GameFileHandler.readRecords(list);
                   try { // Begin Try
                        String gameEntered = add.getText();
                        if (gameEntered.length() == 0 ) {
                             new ErrorDialog (parentFrame,"Feild Blank");
                        } else if (Integer.parseInt(gameEntered)< 0
                                  || Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
                             new ErrorDialog (parentFrame,"Invalid Game Number");
                        } else { // Begin Else If
                             //ADD GAME
                        } // End Else
                   } catch (NumberFormatException num) { // Begin Catch
                        new ErrorDialog(parentFrame,"Please enter an Integer only");
                   } // End Catch
              } // End Add to Basket
         If the Remove From Basket Button is pressed, a  
         a suitable message will appear to say if the    
         removal was successful or not. If not, an       
         ErrorDialog box will appear stateing the error. 
         if(e.getSource() == removeButton) { // Begin Remove from Basket
              try { // Begin Try
                        String gameEntered = remove.getText();
                        if (gameEntered.length() == 0 ) {
                             new ErrorDialog (parentFrame,"Feild Blank");
                        } else if (Integer.parseInt(gameEntered)< 1
                                  || Integer.parseInt(gameEntered)>noOfGames) { // Begin Else If
                             new ErrorDialog (parentFrame,"Invalid Game Number");
                        } else { // Begin Else If
                             //ADD GAME CODE
                        } // End Else
                   } catch (NumberFormatException num) { // Begin Catch
                        new ErrorDialog(parentFrame,"Please enter an Integer only");
                   } // End Catch
              } // End Remove from Basket
         If the purchase button is pressed, the          
         following is executed. NOTE: nothing is done    
         when the ok button is pressed, the window       
         just closes.                                    
              if(e.getSource() == purchaseButton) { // Begin Purchase
                   String gameEntered = currentArea.getText();
                   if (gameEntered.length() == 0 ) {
                        new ErrorDialog (parentFrame,"Nothing to Purchase");
                   } else { // Begin Else If
                        new CreditDialog(parentFrame,"Cost � 00.00. Please enter Credit Card Number");
                   } // End Else               
              } // End Purchase
         } // End actionPerformed
    } // End Class
    RunMobileGame
    import java.awt.*;
    public class RunMobileGame { // Begin Class
         public static void main (String[] args) { // Begin Main
              EasyFrame frame = new EasyFrame();
              frame.setTitle("Game Purchase for 3G Mobile Phone");
              MobileGame purchase = new MobileGame(frame); //need frame for dialog
              frame.setSize(500,300); // sets frame size
              frame.setBackground(Color.lightGray); // sets frame colour
              frame.add(purchase); // adds frame
              frame.setVisible(true); // makes the frame visible
         } // End Main
    } // End Class
    EasyFrame
    import java.awt.*;
    import java.awt.event.*;
    public class EasyFrame extends Frame implements WindowListener {
    public EasyFrame()
    addWindowListener(this);
    public EasyFrame(String msg)
    super(msg);
    addWindowListener(this);
    public void windowClosing(WindowEvent e)
    dispose();
    public void windowDeactivated(WindowEvent e)
    public void windowActivated(WindowEvent e)
    public void windowDeiconified(WindowEvent e)
    public void windowIconified(WindowEvent e)
    public void windowClosed(WindowEvent e)
    System.exit(0);
    public void windowOpened(WindowEvent e)
    } // end EasyFrame class
    ObjectList
    class ObjectList
    private Object[] object ;
    private int total ;
    public ObjectList(int sizeIn)
    object = new Object[sizeIn];
    total = 0;
    public boolean add(Object objectIn)
    if(!isFull())
    object[total] = objectIn;
    total++;
    return true;
    else
    return false;
    public boolean isEmpty()
    if(total==0)
    return true;
    else
    return false;
    public boolean isFull()
    if(total==object.length)
    return true;
    else
    return false;
    public Object getObject(int i)
    return object[i-1];
    public int getTotal()
    return total;
    public boolean remove(int numberIn)
    // check that a valid index has been supplied
    if(numberIn >= 1 && numberIn <= total)
    {   // overwrite object by shifting following objects along
    for(int i = numberIn-1; i <= total-2; i++)
    object[i] = object[i+1];
    total--; // Decrement total number of objects
    return true;
    else // remove was unsuccessful
    return false;
    ErrorDialog
    import java.awt.*;
    import java.awt.event.*;
    class ErrorDialog extends Dialog implements ActionListener {
    private Label errorLabel = new Label("Message space here",Label.CENTER);
    private String errorMessage;
    private Button okButton = new Button("OK");
    public ErrorDialog(Frame frameIn, String message) {
    /* call the constructor of Dialog with the associated
    frame as a parameter */
    super(frameIn);
    // add the components to the Dialog
              errorLabel.setText(message);
              add("North",errorLabel);
    add("South",okButton);
    // add the ActionListener
    okButton.addActionListener(this);
    /* set the location of the dialogue window, relative to the top
    left-hand corner of the frame */
    setLocation(100,100);
    // use the pack method to automatically size the dialogue window
    pack();
    // make the dialogue visible
    setVisible(true);
    /* the actionPerformed method determines what happens
    when the okButton is pressed */
    public void actionPerformed(ActionEvent e) {
    dispose(); // no other possible action!
    } // end class
    I Know there are alot of files. Any help will be much appreciated. Once again, Many thanks in advance

    setSize (600, 200);orpack ();Kind regards,
      Levi
    PS:
        int i;
    parses to
    int i;
    , but
    [code]    int i;[code[i]]
    parses to
        int i;

  • How do I set the screen size of my site?

    Hey guys making a site for a friend and I'm not sure on how I go about setting a screen size that can be viewed on varying screen sizes like 1280x800 and up. At the moment on my 1920x1080 display it looks fine but when I open it on her MacBook Pro (1280x800) it is cut of by half and my website has some fixed anchors which I do not allow scrolling so you are kind of stuck.
    Thanks to anyone that can help, can't find a tutorial anywhere

    In the normal state the screen on an iPad will rotate depending on which side is up. Any of the four sides can be up or on top and the display will look correct. But if you want to lock the display in one orientation you can. Swipe up from the bottom of the screen to reveal the Control Center. Then tap on the Orientation Lock icon. That's the icon of the small padlock surrounded by a circular arrow. That icon will appear at the top right of the display and the screen will no longer rotate. Repeat the same procedure to unlock orientation.

  • Adjust position and size of textField and button...

    Dear All,
    I have the following sample program which has a few textFields and a button, but the positions are not good. How do I make the textField to be at the right of label and not at the bottom of the label ? Also how to adjust the length of textField and button ? The following form design looks ugly. Please advise.
    import javax.swing.*; //This is the final package name.
    //import com.sun.java.swing.*; //Used by JDK 1.2 Beta 4 and all
    //Swing releases before Swing 1.1 Beta 3.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.text.*;
    import javax.swing.JTable;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    public class SwingApplication extends JFrame {
    private static String labelPrefix = "Number of button clicks: ";
    private int numClicks = 0;
    String textFieldStringVEHNO = "Vehicle No";
    String textFieldStringDATEOFLOSS = "Date of Loss";
    String textFieldStringIMAGETYPE = "Image Type";
    String textFieldStringIMAGEDESC = "Image Description";
    String textFieldStringCLAIMTYPE = "Claim Type";
    String textFieldStringSCANDATE = "Scan Date";
    String textFieldStringUSERID = "User ID";
    String ImageID;
    public Component createComponents() {
    //Create text field for vehicle no.
    final JTextField textFieldVEHNO = new JTextField(5);
    textFieldVEHNO.setActionCommand(textFieldStringVEHNO);
    //Create text field for date of loss.
    final JTextField textFieldDATEOFLOSS = new JTextField(10);
    textFieldDATEOFLOSS.setActionCommand(textFieldStringDATEOFLOSS);
    //Create text field for image type.
    final JTextField textFieldIMAGETYPE = new JTextField(10);
    textFieldIMAGETYPE.setActionCommand(textFieldStringIMAGETYPE);
    //Create text field for image description.
    final JTextField textFieldIMAGEDESC = new JTextField(10);
    textFieldIMAGEDESC.setActionCommand(textFieldStringIMAGEDESC);
    //Create text field for claim type.
    final JTextField textFieldCLAIMTYPE = new JTextField(10);
    textFieldCLAIMTYPE.setActionCommand(textFieldStringCLAIMTYPE);
    //Create text field for scan date.
    final JTextField textFieldSCANDATE = new JTextField(10);
    textFieldSCANDATE.setActionCommand(textFieldStringSCANDATE);
    //Create text field for user id.
    final JTextField textFieldUSERID = new JTextField(10);
    textFieldUSERID.setActionCommand(textFieldStringUSERID);
    //Create some labels for vehicle no.
    JLabel textFieldLabelVEHNO = new JLabel(textFieldStringVEHNO + ": ");
    textFieldLabelVEHNO.setLabelFor(textFieldVEHNO);
    //Create some labels for date of loss.
    JLabel textFieldLabelDATEOFLOSS = new JLabel(textFieldStringDATEOFLOSS + ": ");
    textFieldLabelDATEOFLOSS.setLabelFor(textFieldDATEOFLOSS);
    //Create some labels for image type.
    JLabel textFieldLabelIMAGETYPE = new JLabel(textFieldStringIMAGETYPE + ": ");
    textFieldLabelIMAGETYPE.setLabelFor(textFieldIMAGETYPE);
    //Create some labels for image description.
    JLabel textFieldLabelIMAGEDESC = new JLabel(textFieldStringIMAGEDESC + ": ");
    textFieldLabelIMAGEDESC.setLabelFor(textFieldIMAGEDESC);
    //Create some labels for claim type.
    JLabel textFieldLabelCLAIMTYPE = new JLabel(textFieldStringCLAIMTYPE + ": ");
    textFieldLabelCLAIMTYPE.setLabelFor(textFieldCLAIMTYPE);
    //Create some labels for scan date.
    JLabel textFieldLabelSCANDATE = new JLabel(textFieldStringSCANDATE + ": ");
    textFieldLabelSCANDATE.setLabelFor(textFieldSCANDATE);
    //Create some labels for user id.
    JLabel textFieldLabelUSERID = new JLabel(textFieldStringUSERID + ": ");
    textFieldLabelUSERID.setLabelFor(textFieldUSERID);
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    final JLabel label = new JLabel(labelPrefix + "0 ");
    JButton buttonOK = new JButton("OK");
    buttonOK.setMnemonic(KeyEvent.VK_I);
    buttonOK.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
              try {
    numClicks++;
              ImageID = textFieldVEHNO.getText() + textFieldDATEOFLOSS.getText() + textFieldIMAGETYPE.getText();
    label.setText(labelPrefix + ImageID);
              ScanSaveMultipage doScan = new ScanSaveMultipage();
              doScan.start(ImageID);
         catch (Exception ev)
    label.setLabelFor(buttonOK);
    * An easy way to put space between a top-level container
    * and its contents is to put the contents in a JPanel
    * that has an "empty" border.
    JPanel pane = new JPanel();
    pane.setBorder(BorderFactory.createEmptyBorder(
    20, //top
    30, //left
    30, //bottom
    20) //right
    pane.setLayout(new GridLayout(0, 1));
         pane.add(textFieldLabelVEHNO);
         pane.add(textFieldVEHNO);
         pane.add(textFieldLabelDATEOFLOSS);
         pane.add(textFieldDATEOFLOSS);
         pane.add(textFieldLabelIMAGETYPE);
         pane.add(textFieldIMAGETYPE);
         pane.add(textFieldLabelIMAGEDESC);
         pane.add(textFieldIMAGEDESC);
         pane.add(textFieldLabelCLAIMTYPE);
         pane.add(textFieldCLAIMTYPE);
         pane.add(textFieldLabelDATEOFLOSS);
         pane.add(textFieldDATEOFLOSS);
         pane.add(textFieldLabelUSERID);
         pane.add(textFieldUSERID);
    pane.add(buttonOK);
         pane.add(table);
    //pane.add(label);
    return pane;
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(
    UIManager.getCrossPlatformLookAndFeelClassName());
    } catch (Exception e) { }
    //Create the top-level container and add contents to it.
    JFrame frame = new JFrame("SwingApplication");
    SwingApplication app = new SwingApplication();
    Component contents = app.createComponents();
    frame.getContentPane().add(contents, BorderLayout.CENTER);
    //Finish setting up the frame, and show it.
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    frame.pack();
    frame.setVisible(true);

    Post Author: Ranjit
    CA Forum: Crystal Reports
    Sorry but, i've never seen formula editor for altering position and size. If you know one please navigate me.
    I guess you have updated formula editor beside "Lock size and position" - if yes its not right. There is only one editor beside 4 items and editor is actually for Suppress.
    Anyways, A trick to change size a position is:
    Create 4-5 copies (as many as you expect positions) of the text object. place each at different positions,  right click, Format, Suppress and in formula editor for suppress write the formula: If your condition is true, Suppress=false, else true.
    Position will not change but user will feel; for different conditions -position is changed
    Hope this helps.
    Ranjit

Maybe you are looking for

  • How do i log into new iTunes account and use old iTunes gift card and redeem old #

    Hello I recently disbled my emial that was on file with iTunes. when i tried updating my apps it told me i had to reset everything. so i did. my email and password! obviously i had to log out of all my itunes app store stuff on my phone. when i tried

  • How can I capture and re-present Oracle contraint/check/DML errors?

    Hi, New to APEX, I have a Designer/Web-PLSQL background. In Designer I can define the messages that I want the user to see when check, constraint, etc. errors are generated by the application interaction with the database server (done through table A

  • MyColorPicker now out !

    Hello all ! My color picker extension has just been approved ! You will find it at https://creative.adobe.com/addons/products/3200 Hope you'll like it. MyColorPicker is a free color picker that is simple, very compact, yet has some unique features. I

  • How does one remove a author of a doc

    Hello I purchased a health intake form from someone and all I want is that person to be removed as author so she isnt able to see my clients information. I paid for the form not her being on it.

  • ORA-00932: inconsistent datatypes: expected DATE got NUMBER --TO_DATE()

    ORA-00932: inconsistent datatypes: expected DATE got NUMBER ORA-06512: at "BDSN.GENERAL", line 272 ORA-06512: at line 73 i have fec_alta="10/10/2007" and hor_alta="15:00:00" and i am converting to DATE with the TO_DATE function but when inserting i a