SwingLayout Question (code snipet inside)

My question pertains to the code below. I'm creating several classes which load into a cardlayout on a main form. In order to create a border on the left side of this portion of the screen, I am nesting one JPanel within another and using the swinglayout to set my distance from the WEST side of the parent JPanel.
The problem I have is that the 2 components (textfield and label) do not appear in the resulting JFrame. However, if I comment out the line borderPanelLayout = new SwingLayout() then I do get the components to appear. I cannot, for the life of me, figure out why this is. Any and all help is appreciated.
Thanks,
David
    public PartMaintenance() {
        super();
        borderPanel = new JPanel();  //creates border within the cardlayout in the main application & reduces lines of code here to do the same
        initComponents();
        layout = new SpringLayout();
        borderPanelLayout = new SpringLayout();
        this.setLayout(layout);
        borderPanel.setLayout(borderPanelLayout);
        lblXXXXXNumber = new JLabel("XXXXX P/N");
        borderPanel.add(lblXXXXXNumber);       
        tfXXXXXNumber = new JTextField(20);
        borderPanel.add(tfXXXXXNumber);
        borderPanelLayout.putConstraint(SpringLayout.NORTH, lblXXXXXNumber, 10, SpringLayout.NORTH, borderPanel);
        borderPanelLayout.putConstraint(SpringLayout.NORTH, tfXXXXXNumber, 10, SpringLayout.NORTH, borderPanel);
        borderPanelLayout.putConstraint(SpringLayout.WEST, tfXXXXXNumber, 20, SpringLayout.EAST, lblXXXXXNumber);
        this.add(borderPanel);
        layout.putConstraint(SpringLayout.WEST, borderPanel, 25, SpringLayout.WEST, this);
    }

Any ideas? Does it have to do with creating the springs around the JPanel element? Is it not possible to attach springs to panels?

Similar Messages

  • Topics with ampersands (&) show up as question marks (?) inside Help's Search tab

    See the attached image.
    In the image:
    Item A shows the Topic Title inside RH.
    Item B shows what I'm typing in the Search tab of the HTML Help file. (I'm typing "GD&T").
    Item C shows the list results. Notice that when I type "GD&T" in the search tab, the results return "GD?" ion the list of results.
    In short the "T" is missing and the ampersand character shows a question mark character instead.
    How can I get it to show an ampersand in this list and not delete the letter following the ampersand.
    Thanks in advance,
    Jared
    Latest RH7
    Vista 32 bit.

    Some co-workers of mine eventually helped fix this.
    In the Topic Title field for topic titles that have the & symbol, you need to type & in place of just an & symbol. This causes the & to appear within the Search tab list results. Note however that if you add this topic onto the Table of Contents, it will display & there, so you will need to rename the TOC to just use &.

  • Question about struts inside javascript variable

    Hi, actually i'm using a struts + javascript to create HTML code that i use inside a popup window...
    My (working) code is:
              idoc="";
              /* var cols = parent.document.getElementById('rowA').getElementsByTagName('THEAD')[0].getElementsByTagName('TH'); */
              var idoc='<html:form styleId="InsertNewItem" action="/nw/insertnewitem.do?target='+parent.newPop.action+'">';
              idoc+='<TABLE><TBODY>';
              var hiddenForm = getParentObj('hidden_data_form');
              var cols = hiddenForm.getElementsByTagName('INPUT');
              var test;
              test="cippa";
              for(k = 0; k < cols.length; k++) {     
                   if(cols[k].id.substring(0,3) == "hh_")
                        idoc += "<TR><TD>";
                        idoc += cols[k].id.substring(3);
                        idoc += "</TD><TD>";
                        idoc += '<html:text property="'+cols[k].id+'" value=""/>';
                        idoc += "</TD></TR>";
              idoc+='</TBODY></TABLE>';
              idoc+='</html:form>';
              var towr = document.getElementById("subwin_body");
              towr.innerHTML = idoc;
    The problem is when i try to add a <html:select> to the code, more precisely i added just before the end of the table these lines:
              idoc += "<TR><TD>Ditta:";
              idoc += "</TD><TD>";
              idoc += '<html:select property="ditta_id">';
              idoc += '<html:options collection="sel_ditta_list" labelProperty="label" property="value"/>';
              idoc += '</html:select>';
              idoc += "</TD></TR>";          
    ... but i cannot get it to work because struts seems to make some mistake with quotes and in javascript console window i get this error:
    Error: unterminated string literal
    File source: http://localhost:8180/nw/jsp/insertNewItemOperatore.jsp
    Row: 121, Column: 10
    Source Code:
    idoc += '<option value="1">1</option>
    (note the missing ending single-quote)
    I can't understand why because with <html:text> field the same "trick" works fine... any ideas?
    Thanks in advance
    Luca
    Message was edited by:
    spallared

    can you post all of your source code for the .jsp and then try running the page and once it fails do a View Source and then paste in all the generated code so that we can look at that as well.
    i'm not totally positive but i have a pretty good feeling what is going wrong. the struts optionsCollection tag will render a bunch of <option> elements but print a newline after each one, which means you probably end up with something like
    var whatever = '<option ...>.........<option>
    <option ...>.........<option>
    <option ...>.........<option>
    <option ...>.........<option>';
    correct? if so, that is not valid javascript.
    Message was edited by:
    den2681

  • Simple question: code break down

    Hi guys,
    Just one question about the following piece of code:
    public class Counter2 implements Runnable {
    protected int count;
    protected int inc;
    protected int delay;
    public Counter2(int init, int inc, int delay) {
    this.count = init;
    this.inc = inc;
    this.delay = delay;
    public void run() {
    try {
    for (;;) {
    System.out.print(count + " ");
    count += inc;
    Thread.sleep(delay);
    } catch (InterruptedException e) {}
    public static void main(String[] args) {
    new Thread(new Counter2(0, 1, 33)).start();
    new Thread(new Counter2(0, -1, 100)).start();
    .......in the main method, a thread is created and started all in one line.........can someone break this down and show how this would be write if done in a few lines?
    Thanks,
    Zaf

    Thread thread1 = new Thread(new Counter2(0, 1, 33));
    thread1.start();or, to break down even more...
    Counter2 counter2 = new Counter2(0, 1, 33);
    Thread thread1 = new Thread(counter2);
    thread1.start();

  • 64-bit Technical Question from Apple Insider

    Hello Everyone,
    I just posted a question in response to an article at Apple Insider:
    http://www.appleinsider.com/articles/09/09/02/insidemac_os_x_snow_leopard_64bits.html
    I thought that some people here might have either some insight to my question, or just might be interested in the article. Thanks!
    Contents of post from Apple Insider:
    I have a pretty extensive background with Windows and the x86 architecture, but still consider myself somewhat of a newbie when it comes to Macs. However, with Apple's switch to Intel CPUs, the basic architecture of Macs and PCS are largely the same now. Which leads me to my question. The x86 architecture was extended to 64-bit, similar to how the original 8086 was extended to 32-bit. The main point here is that to access the 32-bit features of the processor, the processor is switched to what is called "Protected Mode" to enable it. Similarly, to access the 64-bit mode of an x64 processor, it has to be switched to what is called "Long Mode." Long Mode is necessary to access the extra GPR (General Purpose Registers) and other features unique to x64. When running a 32-bit operating system, the x64 processor is switched to "Legacy Mode", which is unable to use the extra GPRs or other features of an x64 CPU. So, now on to my question.
    32-bit versions of Windows have (as expected) a 32-bit kernel, and run in "Legacy Mode" on a 64-bit processor. 64-bit versions of WIndows have a 64-bit kernel, and run in "Long Mode", which allows 32-bit applications to run using a feature called "Compatibility Mode". So, does anyone here know how this applies to Snow Leopard? I mean, if you are using the 32-bit kernel in Snow Leopard, is the processor in Long Mode or is it in Legacy Mode? Does OS X boot the processor in Long Mode, but runs the kernel in Compatibility mode? That seems to be the best option, as it would allow exposure to the extra GPRs and stuff. However, I have been unable to find this information posted anywhere. Thanks!

    Hi AppleMan1958,
    The processor modes are not a fixture of BIOS or Windows, as they are a function of the x86 architecture. These modes (there are several, if you are interested check this wiki article
    http://en.wikipedia.org/wiki/X86#Operating_modes) are how the architecture maintains binary compatibly with programs that date back to 1978 (at least from an ABI level, there are other things that may prevent them from running on modern computer). As an interesting side note, MS-DOS is a 16-bit operating system, but many of the popular games (like Doom and Duke Nukem 3D) are 32-bit, so how does a 32-bit program run on a 16-bit OS? By the use of the ever-so-popular DOS Extender (anyone remember DOS4G?). The DOS extender switches the processor into "Protected" Mode, which is the native 32-bit mode of Intel 80386 and newer processors. I am thinking that Snow Leopard either runs in "Long Mode" and just runs the kernel as a 32-bit process in "Compatibility Mode", or there may be some sort of "extender" similar to how we got 32-bit programs to run in DOS. Thanks!
    Rich S.

  • Question about variables inside methods

    I just want to be sure that I'm clear on something.
    I have a method that is called inside a class, the local variables
    get initialized with my initial values.
    When the method exits, those local variables get marked with
    a zero reference count and are available for GC when the garbage
    collector runs.
    Correct?
    Thanks.
    -brad w.

    when the method destroy,local variable destroy too .In the stack,when stack.pop(),the reference to the object still exists , though object has been removed.according to this , memory leak will appear .SO we should do something like this.
    Stack stack=new Stack(1000);
    for(int a=0;a<1000;a++)
    stack.push(new Integer(a));
    for(int a=0;a<1000;a++)
    System.out.println(stack.pop());
    public Object pop(){
    if(size==0)
    throw new EmptyStackException();
    Object object=elements[--size];
    elements[size]=null; //eliminate  the reference out of life
    return object;
    /code]
    affter that ,the garbage collector can do something what he want to do                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • Question about NAT Inside Source, Inside Destination, and Outside Source

    I read the Cisco command references about "ip nat inside source", "inside destination", and "outside source", but couldn't have a clear understanding of how to associate the commands with "ip nat inside" and ip nat outside" configured for interfaces.
    Does "ip nat inside source ..." translation only happen on the interface configured as "ip nat inside"?
    Since NAT is a bidirectional action, what's the difference between "ip nat inside cource ..." and "ip nat inside destination ..."?
    I've never used "ip nat outside source ...". In what cases would it be needed?
    On an interface where there are NAT translation and also other actions such as policy map or IP Sec crypto map, would NAT happen before or after other actions?
    Thanks for help with any questions.
    Gary

    Hi Gary,
    The following documents may help you to understand some of the terminology:
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080094831.shtml
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080094837.shtml
    Also, the following document has a clear explanation of the order of operations when using NAT:
    http://www.cisco.com/en/US/customer/tech/tk648/tk361/technologies_tech_note09186a0080133ddd.shtml
    Hope that helps - pls rate the post if it does.
    Paresh

  • Short Circuit AND question (code included)

    I have a quick question about the short circuit AND operator...
    public class prac1 {
         public static final int aNumber = 19;
         public int age = 53;
         public static void main(String args[]) {
              if ((aNumber == 18) && (aNumber != 10)) {
                   System.out.println("You got it!");
    }You see I learned that Short Circuit AND means the first expression is evaluated and if it's false the 'code' is executed...
    So here is what I am understanding: if((aNumber == 18) already evaluates to false, right, but then I see it as && sees that it's false, but then shouldn't the code execute?
    Most likely the case: if((aNumber == 18) already evaluates to false, and because && only evaluates false expressions, and therefore since it's false the code doesn't execute... Am I correct?
    Just trying to get the && and || down... Thanks!
    Edited by: JavaPWNZ on Jul 2, 2008 5:58 AM

    sc3sc3 wrote:
    PhHein wrote:
    Hi,
    a bit confusing, but sort of yes. The && evaluates the first part ((aNumber == 18)) if that is false the following condition is not evaluated any more bacause the whole statement is false.
    Try this: String s = null;
    if(s != null && s.length() > 0){
    System.out.println("Here");
    }now try:
    String s = null;
    if(s != null & s.length() > 0){
    System.out.println("Here");
    nullpointer :-)As intended :)

  • Help! JNI code freezes inside printf() call

    Hi,
    I have a JDK 1.1.8 based java app that loads a JNI based dll. When I run the app from DOS prompt it is working fine. When I run the app from my IDE (i.e no access to console stdout/stdin), the app is freezing. So I launched VC++ 6x and attached to the Java app. Found that the JNI code that was trying to print trace messages using std C call "printf()" freeze inside printf().
    Is the lack of std dos command window an issue when running an app like this?
    I appreciate any pointers.
    Thanks
    Puri malluru

    Is the lack of std dos command window an issue when running an app like this?Could be. If the output is being redirected and the pipe is filling then the io method will block until the pipe clears. Perhaps the IDE has an output window that you need to open or init.

  • Question about expressions inside AE

    I don't even know what to search for on google to find the answer. So after an hour trial and error inside AE and failure in google search, I'm coming here to seek help.
    I have a plugin (RedGiant Sound Keys) that is giving values as keyframes for every frame. And the values go like: 0, 4, 7, 3, 5, 0, 0, 5, 6 ....
    In other words, they fluctuate between zero and, say, 10.
    I want another layer to get this value, but add it to itself every frame. I used to do QBasic programming and it was very simple there. Just something like x = x + (value from the Sound Key plugin)
    But I don't know how to do this in AE.
    Right now I have this:
    x = (thisComp.layer("sound").effect("Sound Keys")("Output 1") * 0.5);
    x;
    What I really want is:
    x = x + (thisComp.layer("sound").effect("Sound Keys")("Output 1") * 0.5);
    x;
    But it doesn't work.
    Can someone help me please?

    AE does not store persistent temporal variables. you have to accumulate them manually and write your own loops.
    Expression Speed and Frequency Control
    Soundkeys has an accumulate mode built-in, also, so rather than put up with complex expressions, simply use a duplicate instance of the effect and tweak the values.
    Mylenium

  • Web Browser.....Code is inside...but clarify few things!

    HI All,
    this is pilot ..sorry to bother u again but this time its kinda important
    here is my program for a web browser--
    now i wanna know a few things HyperlinkListener just not support javascript nor does it support flash ...thats 2 and i wanna know wht else restrictions that are in this simple browser....
    and can u tell me how can i make this browser more faster and i wanna add a JProgressBar to it and i have no clue...please help/
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JEditorPane;
    import javax.swing.JLabel;
    import java.io.IOException;
    import java.awt.GridBagLayout;
    import java.awt.GridBagConstraints;
    import java.awt.BorderLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.UIManager;
    import javax.swing.JEditorPane;
    import javax.swing.event.HyperlinkListener;
    import javax.swing.event.HyperlinkEvent;
    import javax.swing.JOptionPane;
    public class Browser implements ActionListener
         JTextField t1;
         JLabel l1;
         JButton b1;
         GridBagLayout gbl;
         GridBagConstraints gbc;
         JPanel p;
         JFrame frame;
         JScrollPane scrollPane;
         JEditorPane jep;
         static String initialPage;
    public Browser()
         //JFrame.setDefaultLookAndFeelDecorated(true);
         /*try
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
         catch(Exception e)
             e.printStackTrace();
         frame=new JFrame("Simple Web Browser");
         gbl=new GridBagLayout();
         gbc=new GridBagConstraints();
         p=new JPanel();
         p.setLayout(gbl);
         jep = new JEditorPane();
         t1=new JTextField();
         b1=new JButton("Check it out!");
         b1.addActionListener(this);
         frame.getRootPane().setDefaultButton(b1);
         l1=new JLabel("Address");
         gbc.anchor=GridBagConstraints.NORTHEAST;
         gbc.fill=GridBagConstraints.HORIZONTAL;
         gbc.gridx=0;
         gbc.gridy=0;
         gbc.weightx=0.0;
         gbl.setConstraints(l1,gbc);
         p.add(l1);
         gbc.anchor=GridBagConstraints.NORTHEAST;
         gbc.gridx=1;
         gbc.gridy=0;
         gbc.weightx=1.0;
         gbl.setConstraints(t1,gbc);
         p.add(t1);
         gbc.anchor=GridBagConstraints.NORTHWEST;
         gbc.gridx=2;
         gbc.gridy=0;
         gbc.weightx=0.0;
         gbl.setConstraints(b1,gbc);
         p.add(b1);
        scrollPane = new JScrollPane(jep);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(p,BorderLayout.NORTH);
         frame.getContentPane().add(scrollPane);
        frame.setSize(1000,700);
        frame.setVisible(true);
    public void actionPerformed(ActionEvent e)
              initialPage=t1.getText();
              char a=initialPage.charAt(0);
              char b=initialPage.charAt(1);
              char c=initialPage.charAt(2);
              char d=initialPage.charAt(3);
              char ea=initialPage.charAt(4);
              char f=initialPage.charAt(5);
              char g=initialPage.charAt(6);
              if((a=='h')&&(b=='t')&&(c=='t')&&(d=='p')&&(ea==':')&&(f=='/')&&(g=='/'))
                   initialPage=t1.getText();
              else
                   initialPage="http://"+initialPage;
              jep.setEditable(false);
              jep.addHyperlinkListener(new second(jep));
             try
               jep.setPage(initialPage);
             catch (IOException ae)
                JOptionPane.showMessageDialog(frame,new String("Error: "+ae));
    public static void main(String[] args)
              new SimpleWebBrowser();
    class second implements HyperlinkListener
      private JEditorPane pane;
      public second(JEditorPane pane)
        this.pane = pane;
    public void hyperlinkUpdate(HyperlinkEvent evt)
       if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
          try
           pane.setPage(evt.getURL());
         catch (Exception e){}
      }}}

    Broken Browser excuse me/...check this out ---> run it and tell me if the code is broken...
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JEditorPane;
    import javax.swing.JLabel;
    import java.io.IOException;
    import java.awt.GridBagLayout;
    import java.awt.GridBagConstraints;
    import java.awt.BorderLayout;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.UIManager;
    import javax.swing.JEditorPane;
    import javax.swing.event.HyperlinkListener;
    import javax.swing.event.HyperlinkEvent;
    import javax.swing.JOptionPane;
    public class Browser implements ActionListener
         JTextField t1;
         JLabel l1;
         JButton b1;
         GridBagLayout gbl;
         GridBagConstraints gbc;
         JPanel p;
         JFrame frame;
         JScrollPane scrollPane;
         JEditorPane jep;
         static String initialPage;
    public Browser()
         //JFrame.setDefaultLookAndFeelDecorated(true);
         /*try
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
         catch(Exception e)
             e.printStackTrace();
         frame=new JFrame("Simple Web Browser");
         gbl=new GridBagLayout();
         gbc=new GridBagConstraints();
         p=new JPanel();
         p.setLayout(gbl);
         jep = new JEditorPane();
         t1=new JTextField();
         b1=new JButton("Check it out!");
         b1.addActionListener(this);
         frame.getRootPane().setDefaultButton(b1);
         l1=new JLabel("Address");
         gbc.anchor=GridBagConstraints.NORTHEAST;
         gbc.fill=GridBagConstraints.HORIZONTAL;
         gbc.gridx=0;
         gbc.gridy=0;
         gbc.weightx=0.0;
         gbl.setConstraints(l1,gbc);
         p.add(l1);
         gbc.anchor=GridBagConstraints.NORTHEAST;
         gbc.gridx=1;
         gbc.gridy=0;
         gbc.weightx=1.0;
         gbl.setConstraints(t1,gbc);
         p.add(t1);
         gbc.anchor=GridBagConstraints.NORTHWEST;
         gbc.gridx=2;
         gbc.gridy=0;
         gbc.weightx=0.0;
         gbl.setConstraints(b1,gbc);
         p.add(b1);
        scrollPane = new JScrollPane(jep);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(p,BorderLayout.NORTH);
         frame.getContentPane().add(scrollPane);
        frame.setSize(1000,700);
        frame.setVisible(true);
    public void actionPerformed(ActionEvent e)
              initialPage=t1.getText();
              char a=initialPage.charAt(0);
              char b=initialPage.charAt(1);
              char c=initialPage.charAt(2);
              char d=initialPage.charAt(3);
              char ea=initialPage.charAt(4);
              char f=initialPage.charAt(5);
              char g=initialPage.charAt(6);
              if((a=='h')&&(b=='t')&&(c=='t')&&(d=='p')&&(ea==':')&&(f=='/')&&(g=='/'))
                   initialPage=t1.getText();
              else
                   initialPage="http://"+initialPage;
              jep.setEditable(false);
              jep.addHyperlinkListener(new second(jep));
             try
               jep.setPage(initialPage);
             catch (IOException ae)
                JOptionPane.showMessageDialog(frame,new String("Error: "+ae));
    public static void main(String[] args)
              new Browser();
    class second implements HyperlinkListener
      private JEditorPane pane;
      public second(JEditorPane pane)
        this.pane = pane;
    public void hyperlinkUpdate(HyperlinkEvent evt)
       if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
          try
           pane.setPage(evt.getURL());
         catch (Exception e){}
      }}}

  • Newbie question: Code to capture Right button?

    Is there any way to capture the Right click of
    a mouse button? Has anyone written code s/he
    would like to share. Thanks, Tony.

    Mark,
    I am still struggling to learn.
    The code for the program I am trying to develop, again
    just to learn, is reproduced below. I don't understand
    while the "red spot" is not painted when I use the Right
    click of the mouse. Thanks for your suggestions, Tony.
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class ClickMeButton extends Applet
    private Spot spot = null;
    private static final int RADIUS = 7;
    private String str="Left click";
    public void paint(Graphics g)
    //draw a black border and a white background
    g.setColor(Color.white);
    g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
    g.setColor(Color.black);
    g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
    //draw the spot
    g.setColor(Color.red);
    if (spot != null)
    g.fillOval(spot.x - RADIUS, spot.y - RADIUS, RADIUS * 2, RADIUS * 2);
    public void mouseClicked(MouseEvent event)
    if (spot == null)
    spot = new Spot(RADIUS);
    if (event.getModifiers() == InputEvent.BUTTON3_MASK)
    str="Right click";
    spot.x = event.getX();
    spot.y = event.getY();
    repaint();
    public void mouseReleased(MouseEvent event) {}
    public void mousePressed(MouseEvent event) {}
    // public void mousePressed(MouseEvent event) {}
    public void mouseExited(MouseEvent event) {}
    } //end class

  • How to simulate a dml error in order to test try-catch code block inside a stored procedure

    Hi,
    What would be the easiest way to simulate a dml error in order to test a try catch block.
    I would like to do it with a simple command from outside the stored procedure if possible.
    I tried dropping the table that was updated but it hangs
    Thanks,
    Dani

    Dropping the table that is the target of the procedure will give you an unpleasant surprise: the CATCH block will not fire. To wit, errors like missing tables can only be caught in outer scopes, but not in the procedure where the error occurs.
    But you would add a fake constraint to a table which causes the update to fail. You need to do this in advance, not while running the procedure.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Static NAT Question - Public to Inside ASA 9.1x

    Hi All.. I'm having  hard time wrapping my head around the post 8.2 nat statements, please help.
    I have a DMZ server that has a list of ports that need to be accessible from the outside from specific IP addresses (this is a video streaming relay server).  It also need to be able to push the stream to a specific IP address as well.  I can do identity nat, and it'll go out and I see it's using IP, but obviously traffic doesn't get in... I can use sample web server nat's I've found and it works for the web management port, 8088, but I can't figure out how to map multiple ports to it:
    Remote Public IP's: 77.88.99.11
    Local Public IP: 12.12.12.1
    Ports required:
    object-group service srvgp-stream-remote
     service-object tcp destination eq www
     service-object tcp destination eq https
     service-object tcp destionation eq 8088
     service-object tcp destination eq 1935
     service-object udp destination range 6970 9999
     service-object udp destination range 30000 65000
     service-object udp destination eq 554
    I can get this to work:
    object network server-external-ip
     host 12.12.12.1
    object network webserver
     host 192.168.1.100
     nat (dmz,outside) static server-external-ip service tcp 8088 8088
    access-list acl-outside extended permit tcp host 77.88.99.11 object AngelEye eq 8088
    But again, I have no idea how I would do such a thing with a list of required ports? I don't see that's an option in the syntax.  Additionally, would this  provide an 'identity nat' in case the server had to send info out to the public ip via these same ports or do you require a seperate identity nat to do this to the same public ip addresses?
    Any help is greatly appreciated.

    With that many ports, you should use the public IP exclusively for the Webserver:
    object network webserver
    host 192.168.1.100
    nat (dmz,outside) static server-external-ip
    If it's not possible to use that IP only for that server, you can configure manual-nat for these ports:
    nat (dmz,outside) source static webserver server-external-ip service srvgp-stream-remote srvgp-stream-remote

  • Cascading windows question with example inside

    is there a way to force windows to not cascade past the bottom of the screen, like in CS3? i have to have my images in cascade form since i work on multiples of the same image spread out all over the place, but when i cascade 50 windows, the last dozen or so keep going until only the top few inches are showing and just go off to the right. any way to fix this? its like PS is not detecting the edge of my monitor somehow. any and all help is appreciated.

    is there a way to force windows to not cascade past the bottom of the screen, like in CS3? i have to have my images in cascade form since i work on multiples of the same image spread out all over the place, but when i cascade 50 windows, the last dozen or so keep going until only the top few inches are showing and just go off to the right. any way to fix this? its like PS is not detecting the edge of my monitor somehow. any and all help is appreciated.

Maybe you are looking for

  • Apex: output message from pl/sql process

    Apex 4.2 THis is kind of an Apex and Pl/Sql question, but more so Apex because I'm using that environment. I have a pl/sql process with an IF - Else statement. It's a real simple process where you check: IF P101_Count > 1 Then    Do stuff; Else    Ou

  • Need help with SQL for Pie Chart

    I am trying to create a pie charge which would have 3 slices. Following sql gives me the expected values when I run the sql command: select round(avg(CATEGORY_1 + CATEGORY_2 + CATEGORY_3 + CATEGORY_4 + CATEGORY_5),0) "OD Engagements", round(avg(CATEG

  • Change the direction of a DO

    Hi Experts, i have a created a MAM scenario with Mobile 7,1 PATCH 9. One DataObject is the notification partner which i first defined as only downloadable and imported the model to the SAP Developer studio. Now i changed the DO to have a bidirectiona

  • Can't see My Book drive

    I have run Airport Extreme Utility and am connected to the internet, can see the My Book drive in the PC version of the setup utility as well as my MBP one. I connect to the drive just fine on the MBP and did it ONCE on the PC but it won't do it agai

  • Trouble signing out of CC

    I had Photoshop CC downloaded on my laptop and my desktop.  I've since purchased a new desktop.  I tried to sign out of CC on my old desktop.  I could not find anywhere to sign out of PS within the program so I signed out of CC.  Then I downloaded PS