More panel questions

I have created a panel say Panel3 under Panel3.java. I also have a JFrame say Frame1.java. I create JPanels Panel1 and Panel2 and add them to Frame1. Upon clicking a button on Frame1 I remove the Panel1 and Panel2 and create an instance of Panel3 and made that visible on Frame1.
If it is not already confusing can someone give some code to do it as mine does not work ?

Your naming style is REALLY confusing. Instead of calling your class Panel3, call it something descriptive, or at least MyPanel. Same for Frame1. Also variables should start with a lower case:
JPanel panel1, panel2;
MyPanel panel3;
Anyway, (in Frame1) did you try:
getContentPane().remove(Panel1);
getContentPane().remove(Panel2);
getContentPane().add(new Panel3);
Then, if it doesn't display properly (it might if you minimise then restore), it's because it needs to refresh/redraw somehow. I think the .validate() method (inherited from Container) should do the trick.
Hope this helps,
Radish21

Similar Messages

  • I need some more interview question with answer on modeling,reporting.

    i need some more interview question with answer on modeling,reporting.

    Hi,
    You may find tons of topic about interview question. Please try to search forums before opening a post next time.Take a look at the link below.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=bwinterviewquestions&adv=true&adv_sdn_all_sdn_author_name=
    Regards,
    ®

  • Every time I try to get on the ipod, it says I have to add more security questions, but none are listed, just two buttons that say submit.

    Every time I try to get on the Ipod games, it says I have to add more security questions, but no questions are listed, just two buttons that say "Submit" and places to put the answers to the unstated questions.  It also asks for a second email address.  It then proceeds to lock up.  Is this a scam of some sort.  There is nothing on the apple website about having additional security questions other than the one, or having a second email to operate the ipod.

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    Whichever method you use, you probably won't get a response until the 26th. If you absolutely must make a purchase before then, create a new Apple ID; you won't be able to transfer previous purchases or iTunes Store credit to it.
    (95471)

  • A Simpler, More Direct Question About Merge Joins

    This thread is related to Merge Joins Should Be Faster and Merge Join but asks a simpler, more direct question:
    Why does merge sort join choose to sort data that is already sorted? Here are some Explain query plans to illustrate my point.
    SQL> EXPLAIN PLAN FOR
      2  SELECT * FROM spoTriples ORDER BY s;
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT |              |   998K|    35M|  5311   (1)| 00:01:04|
    |   1 |  INDEX FULL SCAN | PKSPOTRIPLES |   998K|    35M|  5311   (1)| 00:01:04|
    ---------------------------------------------------------------------------------Notice that the plan does not involve a SORT operation. This is because spoTriples is an Index-Organized Table on the primary key index of (s,p,o), which contains all of the columns in the table. This means the table is already sorted on s, which is the column in the ORDER BY clause. The optimizer is taking advantage of the fact that the table is already sorted, which it should.
    Now look at this plan:
    SQL> EXPLAIN PLAN FOR
      2  SELECT /*+ USE_MERGE(t1 t2) */ t1.s, t2.s
      3  FROM spoTriples t1, spoTriples t2
      4  WHERE t1.s = t2.s;
    Explained.
    PLAN_TABLE_OUTPUT
    |   0 | SELECT STATEMENT       |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   1 |  MERGE JOIN            |              |    11M|   297M|       | 13019 (6)| 00:02:37 |
    |   2 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   3 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    |*  4 |   SORT JOIN            |              |   998K|    12M|    38M|  6389 (4)| 00:01:17 |
    |   5 |    INDEX FAST FULL SCAN| PKSPOTRIPLES |   998K|    12M|       |  1460 (3)| 00:00:18 |
    Predicate Information (identified by operation id):
       4 - access("T1"."S"="T2"."S")
           filter("T1"."S"="T2"."S")I'm doing a self join on the column by which the table is sorted. I'm using a hint to force a merge join, but despite the data already being sorted, the optimizer insists on sorting each instance of spoTriples before doing the merge join. The sort should be unnecessary for the same reason that it is unnecessary in the case with the ORDER BY above.
    Is there anyway to make Oracle be aware of and take advantage of the fact that it doesn't have to sort this data before merge joining it?

    Licensing questions are best addressed by visiting the Oracle store, or contacting a salesrep in your area
    But I doubt you can redistribute the product if you aren't licensed yourself.
    Question 3 and 4 have obvious answers
    3: Even if you could this is illegal
    4: if tnsping is not included in the client, tnsping is not included in the client, and there will be no replacement.
    Tnsping only establishes whether a listener is running and shouldn't be called from an application
    Sybrand Bakker
    Senior Oracle DBA

  • If posible tu use more panel in Labview such as LOOKOUT, with Pocket PC 2003. My applications need more panel.

    My aplications for labview pda , Pocet PC 2003 need more panels. All the panels must execute in the same time such a multitasking. Lookout have this functions.
    It is posible to make this?

    LabVIEW PDA does not support having multiple panels (VIs) to be visible at the same time. You can have multiple VIs running at the same time, but only one front panel can be visible at a time. In your application you can control what is visible on the PDA at any given point in time.
    From the manual:
    PDA VIs display only one front panel at a time. Calling a subVI that shows its front panel when called causes the subVI front panel to obscure the front panel of the calling VI.
    Christian L
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Spry tabbed panels - question about hover

    Hello, I am relatively new to Dreamweaver and Spry, but have made a website using vertical Tabbed Panels that finally looks ALMOST like I want it. I am sure that I have done some things that could be much simpler though…
    http://web.me.com/marinka9170/JL_test/JL_test.html
    My problem is that I would like the tabs to stay in their hover state (so coloured and wider) when you navigate to the content panel (until you hover over the next tab of course), instead of going back to their standard grey. How do I do that?
    And my other question is: in the content panels I have used custom bullets. Is there a way to assign a different custom bullet for each content panel? Do I number the content panels, like I have done with the tabs?
    Any hints, tips, solutions are appreciated!
    Thanks,
    Marinka

    I indeed see that your example works, but I think in my code there is some sort of conflict going on
    I have copied the Source Code and the SpryTabbedPanels.ccs below and 'bolded' the parts where I think the problem is. It is probably in splitting the different tabs in 5, right?
    I am sorry for asking these stupid questions. It's all quite new to me, but I've ordered a book to study more. It's just not in yet
    Thanks again for your help! Really appreciate it!
    Marinka
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="description" content="description goes here">
    <meta name="keywords" content="">
    <meta name="author" content="metatags generator">
    <meta name="robots" content="index, follow">
    <meta name="revisit-after" content="3 month">
    <title>JL_test</title>
    <style type="text/css">
    <!--
    body {
    font: 12px/17px Verdana, Arial, Helvetica, sans-serif;
    background: #FFF;
    color: #000;
    .TabbedPanelsTab1:hover {
    background-color: #15375E
    .TabbedPanelsTab2:hover {
    background-color: #016596
    .TabbedPanelsTab3:hover {
    background-color: #00A0AF
    .TabbedPanelsTab4:hover {
    background-color: #679145
    .TabbedPanelsTab5:hover {
    background-color: #B4D88B
    .TabbedPanelsContent ul#tab1 {
    list-style-image: url(Website_03-web-images/bullet1.png)
    .TabbedPanelsContent ul#tab2 {
         list-style-image: url(Website_03-web-images/bullet2.png)
    .TabbedPanelsContent ul#tab3 {
         list-style-image: url(Website_03-web-images/bullet3.png)
    .TabbedPanelsContent ul#tab4 {
         list-style-image: url(Website_03-web-images/bullet4.png)
    .TabbedPanelsContent ul#tab5 {
         list-style-image: url(Website_03-web-images/bullet5.png)
    ul {
    padding: 0;
    margin: 0;
    ol, dl, ul {
    padding-right: 15px;
    padding-left: 5px;
    margin: 0 0 0 15px;
    list-style-type: none;
    list-style-position: outside;
    text-indent: 0px;
    h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 17px;
    p {
    margin: 0;
    line-height: 17px;
    padding-right: 15px;
    a img {
    border: none;
    a:link {
    color: #b4d88b;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    a:hover, a:active, a:focus {
    text-decoration: none;
    color: #016596;
    .container {
    width: 1024px;
    background: #FFFFFF;
    margin: 0 auto;
    .content {
    background: #FFFFFF;
    clear: both;
    height: 200px;
    margin-top: 50px;
    .header {
    background: #FFF;
    width: 1024px;
    height: 120px;
    .column1 {
    float: left;
    width: 338px;
    background: #15375E;
    height: 20px;
    .column2 {
    width: 348px;
    float: left;
    background: #016596;
    height: 20px;
    .column3 {
    float: left;
    width: 338px;
    background: #679245;
    height: 20px;
    .placeholder {
    width: 1024px;
    height: 400px;
    clear: both;
    .footer {
    padding: 0px;
    background: #FFF;
    position: relative;
    clear: both;
    width: 280px;
    text-align: right;
    .fltrt {
    float: right;
    margin-left: 8px;
    .fltlft {
    float: left;
    margin-right: 8px;
    .clearfloat {
    clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0px;
    -->
    </style>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    function MM_callJS(jsStr) { //v2.0
      return eval(jsStr)
    </script>
    <style type="text/css">
    h1,h2,h3,h4,h5,h6 {
    h1 {
    font-family: Verdana, Geneva, sans-serif;
    color: #15375e;
    font-weight: bold;
    font-size: 14px;
    h2 {
    font-family: Verdana, Geneva, sans-serif;
    color: #016596;
    font-weight: bold;
    font-size: 14px;
    h3 {
    color: #00A0AF;
    font-size: 14px;
    font-family: Verdana, Geneva, sans-serif;
    font-weight: bold;
    h4 {
    color: #679145;
    font-size: 14px;
    font-family: Verdana, Geneva, sans-serif;
    font-weight: bold;
    h5 {
    color: #B4D88b;
    font-size: 14px;
    font-family: Verdana, Geneva, sans-serif;
    font-weight: bold;
    .container .content #TabbedPanels1 .TabbedPanelsContentGroup .TabbedPanelsContent table tr {
    vertical-align: top;
    .container .footer copyright {
    </style>
    <div class="container">
      <div class="header"><!-- end .header --><img name="" src="" width="1024"
      " height="120" alt="logo" style="background-color: #FFFFFF" align="right" /></div>
      <div class="column1"></div>
      <div class="column2"></div>
      <div class="column3"><!-- end .column3 --></div>
      <div class="placeholder"><img src="Website_03-web-images/JL_ice.jpg" width="1024" height="400" alt="" /></div>
       <div class="content">
        <div id="TabbedPanels1" class="VTabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab1" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">home</li>
            <li class="TabbedPanelsTab2" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">who are we?</li>
            <li class="TabbedPanelsTab3" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">our services</li>
            <li class="TabbedPanelsTab4" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">sectors of activity</li>
            <li class="TabbedPanelsTab5" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">contact</li>
          </ul>
         <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">
    <table width="686" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="348" height="200"><div class="TabbedPanelsContent">
                    <home>
                      <h1>news</h1>
                    </home>
                    <p>News items can go here. Perum re sitibus eicita volupti inulpa doluptam, optate secum estiore idellectur rehenecabo. Nequidu cimolen ihilit quunt plab ipsunte caborup tinihic ipiscia menimin ulpari dolupta tendio esciust am et labo. <br />
                      Mincit quunto oditibus consecto berest ad miliquaspe debis voluptatus erum fugit hariberum rescipsa qui nistia estiusd andant autaepeles et rat.<br />
                      Vidi non pelique et eliata estinvellis volesequissi dus volorer umenien ihiciet vent volupta doluptat.</p>
    </div></td>
                  <td width="338" height="200"><div class="TabbedPanelsContent">
                    <h1> </h1>
                    <p>Dandem quamendit as pelendae placiamus adipiet, voluptur minctis ad qui sinctur repercia dolorerum aceatiis est aut erchil maio qui nobis accupta.<br />
                      ssimpe qui omniscid quunt id molupti orrorpor res estrumquae lab ipician debitaq uature, optate nobis ut illaborrum diae placit id moloreribus doluptatur, unt rehent laborent rempori tassed ma non ne id qui rem voluptatur mos.<br />
                      Apist rem fugit et, corepuda con reperum auts esendip.</p>
                  </div></td>
                </tr>
              </table>
            </div>
        <div class="TabbedPanelsContent">
         <table width="686" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="348" height="200"><div class="TabbedPanelsContent">
                    <h2>who are we?</h2>
                    <p>Who are we? Why are we here? What do we do? Perum re sitibus eicita volupti inulpa doluptam, optate secum estiore idellectur rehenecabo. Nequidu cimolen ihilit quunt plab ipsunte caborup tinihic ipiscia menimin ulpari dolupta tendio esciust am et labo. <br />
                      Mincit quunto oditibus consecto berest ad miliquaspe debis voluptatus erum fugit hariberum rescipsa qui nistia estiusd andant autaepeles et rat.<br />
                      Vidi non pelique et eliata estinvellis volesequissi dus volorer umenien ihiciet vent volupta doluptat.</p>
    </div></td>
                  <td width="338" height="200"><div class="TabbedPanelsContent">
                    <h3><img src="" alt="Photo" width="338" height="200" hspace="0" vspace="0" align="texttop" /></h3>
                  </div></td>
                </tr>
              </table></div>
        <div class="TabbedPanelsContent"><table width="686" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="348" height="200"><div class="TabbedPanelsContent">
                  <h3>our services</h3>
          <ul id="tab3">
            <li>Service 1 - description of the type of service goes here with a possible hyperlink or something</li>
            <li>Service 2</li>
            <li>Service 3</li>
          </ul>
        </div></td>
                  <td width="338" height="200"><div class="TabbedPanelsContent">
    </div></td>
                </tr>
              </table></div>
            <div class="TabbedPanelsContent"><table width="686" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="348" height="200"><div class="TabbedPanelsContent">
                  <h4>sectors of activity</h4>
          <ul id="tab4">
            <li>Sector 1 - description of the sector of activity goes here with a possible hyperlink or something</li>
            <li>Sector 2</li>
            <li>Sector 3</li>
            </ul>
        </div></td>
                  <td width="338" height="200"><div class="TabbedPanelsContent">
    </div></td>
                </tr>
              </table></div>
         <div class="TabbedPanelsContent"><table width="686" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="348" height="200"><div class="TabbedPanelsContent">
                  <h5>contact</h5>
                    <p>Name</p>
                    <p>Telephone number: +12 3456 7890</p>
                    <p>email: <a href="mailto:[email protected]">[email protected]</a></p>
                  </div></td>
                  <td width="338" height="200"><div class="TabbedPanelsContent">
                  </div></td>
                </tr>
              </table></div>
          </div>
        </div>
      <!-- end .content --></div>
      <div class="footer">
        <copyright>©2011  <!-- end .footer --></copyright>
      </div>
    <!-- end .container --></div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>
    @charset "UTF-8";
    /* SpryTabbedPanels.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    /* Horizontal Tabbed Panels
    * The default style for a TabbedPanels widget places all tab buttons
    * (left aligned) above the content panel.
    /* This is the selector for the main TabbedPanels container. For our
    * default style, this container does not contribute anything visually,
    * but it is floated left to make sure that any floating or clearing done
    * with any of its child elements are contained completely within the
    * TabbedPanels container, to minimize any impact or undesireable
    * interaction with other floated elements on the page that may be used
    * for layout.
    * If you want to constrain the width of the TabbedPanels widget, set a
    * width on the TabbedPanels container. By default, the TabbedPanels widget
    * expands horizontally to fill up available space.
    * The name of the class ("TabbedPanels") used in this selector is not
    * necessary to make the widget function. You can use any class name you
    * want to style the TabbedPanels container.
    .TabbedPanels {
    overflow: hidden;
    margin: 0px;
    padding: 0px;
    clear: none;
    width: 338px;
    height: 30px; /* IE Hack to force proper layout when preceded by a paragraph. (hasLayout Bug)*/
    /* This is the selector for the TabGroup. The TabGroup container houses
    * all of the tab buttons for each tabbed panel in the widget. This container
    * does not contribute anything visually to the look of the widget for our
    * default style.
    * The name of the class ("TabbedPanelsTabGroup") used in this selector is not
    * necessary to make the widget function. You can use any class name you
    * want to style the TabGroup container.
    .TabbedPanelsTabGroup {
    margin: 0px;
    padding: 0px;
    /* This is the selector for the TabbedPanelsTab. This container houses
    * the title for the panel. This is also the tab "button" that the user clicks
    * on to activate the corresponding content panel so that it appears on top
    * of the other tabbed panels contained in the widget.
    * For our default style, each tab is positioned relatively 1 pixel down from
    * where it wold normally render. This allows each tab to overlap the content
    * panel that renders below it. Each tab is rendered with a 1 pixel bottom
    * border that has a color that matches the top border of the current content
    * panel. This gives the appearance that the tab is being drawn behind the
    * content panel.
    * The name of the class ("TabbedPanelsTab") used in this selector is not
    * necessary to make the widget function. You can use any class name you want
    * to style this tab container.
    .TabbedPanelsTab {
    position: relative;
    float: left;
    padding: 0px 10px 0px 0px;
    margin: 0px 0px 10px;
    font: bold 12px/22pt Verdana, Geneva, sans-serif;
    background-color: #DDD;
    list-style: none;
    border-left: none;
    border-bottom: none;
    border-top: none;
    border-right: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    color: #15375e;
    text-align: right;
    height: 30px;
    width: 270px;
    .TabbedPanelsTab1 {
    position: relative;
    float: left;
    padding: 0px 10px 0px 0px;
    margin: 0px 0px 10px;
    font: bold 12px/22pt Verdana, Geneva, sans-serif;
    background-color: #DDD;
    list-style: none;
    border-left: none;
    border-bottom: none;
    border-top: none;
    border-right: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    color: #15375E;
    text-align: right;
    height: 30px;
    width: 270px;
    .TabbedPanelsTab2 {
    position: relative;
    float: left;
    padding: 0px 10px 0px 0px;
    margin: 0px 0px 10px;
    font: bold 12px/22pt Verdana, Geneva, sans-serif;
    background-color: #DDD;
    list-style: none;
    border-left: none;
    border-bottom: none;
    border-top: none;
    border-right: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    color: #15375E;
    text-align: right;
    height: 30px;
    width: 270px;
    .TabbedPanelsTab3 {
    position: relative;
    float: left;
    padding: 0px 10px 0px 0px;
    margin: 0px 0px 10px;
    font: bold 12px/22pt Verdana, Geneva, sans-serif;
    background-color: #DDD;
    list-style: none;
    border-left: none;
    border-bottom: none;
    border-top: none;
    border-right: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    color: #15375E;
    text-align: right;
    height: 30px;
    width: 270px;
    .TabbedPanelsTab4 {
    position: relative;
    float: left;
    padding: 0px 10px 0px 0px;
    margin: 0px 0px 10px;
    font: bold 12px/22pt Verdana, Geneva, sans-serif;
    background-color: #DDD;
    list-style: none;
    border-left: none;
    border-bottom: none;
    border-top: none;
    border-right: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    color: #15375E;
    text-align: right;
    height: 30px;
    width: 270px;
    .TabbedPanelsTab5 {
    position: relative;
    float: left;
    padding: 0px 10px 0px 0px;
    margin: 0px 0px 10px;
    font: bold 12px/22pt Verdana, Geneva, sans-serif;
    background-color: #DDD;
    list-style: none;
    border-left: none;
    border-bottom: none;
    border-top: none;
    border-right: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    color: #15375E;
    text-align: right;
    height: 30px;
    width: 270px;
    /* This selector is an example of how to change the appearnce of a tab button
    * container as the mouse enters it. The class "TabbedPanelsTabHover" is
    * programatically added and removed from the tab element as the mouse enters
    * and exits the container.
    .TabbedPanelsTabHover {
    color: #fff;
    height: 30px;
    width: 300px;
    /* This selector is an example of how to change the appearance of a tab button
    * container after the user has clicked on it to activate a content panel.
    * The class "TabbedPanelsTabSelected" is programatically added and removed
    * from the tab element as the user clicks on the tab button containers in
    * the widget.
    * As mentioned above, for our default style, tab buttons are positioned
    * 1 pixel down from where it would normally render. When the tab button is
    * selected, we change its bottom border to match the background color of the
    * content panel so that it looks like the tab is part of the content panel.
    .TabbedPanelsTabSelected {
    height: 30px;
    width: 300px;
    /* This selector is an example of how to make a link inside of a tab button
    * look like normal text. Users may want to use links inside of a tab button
    * so that when it gets focus, the text *inside* the tab button gets a focus
    * ring around it, instead of the focus ring around the entire tab.
    .TabbedPanelsTab a {
    /* This is the selector for the ContentGroup. The ContentGroup container houses
    * all of the content panels for each tabbed panel in the widget. For our
    * default style, this container provides the background color and borders that
    * surround the content.
    * The name of the class ("TabbedPanelsContentGroup") used in this selector is
    * not necessary to make the widget function. You can use any class name you
    * want to style the ContentGroup container.
    .TabbedPanelsContentGroup {
    clear: both;
    border-left: none;
    border-bottom: none;
    border-top: none;
    border-right: none;
    background-color: #FFF;
    /* This is the selector for the Content panel. The Content panel holds the
    * content for a single tabbed panel. For our default style, this container
    * provides some padding, so that the content is not pushed up against the
    * widget borders.
    * The name of the class ("TabbedPanelsContent") used in this selector is
    * not necessary to make the widget function. You can use any class name you
    * want to style the Content container.
    .TabbedPanelsContent {
    padding: 0px 0px 0px 0px;
    list-style-image: url(file:///Macintosh%20HD/Users/marinka/Desktop/JL/optencia_website/images/bullet.png);
    /* This selector is an example of how to change the appearnce of the currently
    * active container panel. The class "TabbedPanelsContentVisible" is
    * programatically added and removed from the content element as the panel
    * is activated/deactivated.
    .TabbedPanelsContentVisible {
    padding-right: 10px;
    /* Vertical Tabbed Panels
    * The following rules override some of the default rules above so that the
    * TabbedPanels widget renders with its tab buttons along the left side of
    * the currently active content panel.
    * With the rules defined below, the only change that will have to be made
    * to switch a horizontal tabbed panels widget to a vertical tabbed panels
    * widget, is to use the "VTabbedPanels" class on the top-level widget
    * container element, instead of "TabbedPanels".
    .VTabbedPanels {
    overflow: hidden;
    /* This selector floats the TabGroup so that the tab buttons it contains
    * render to the left of the active content panel. A border is drawn around
    * the group container to make it look like a list container.
    .VTabbedPanels .TabbedPanelsTabGroup {
    float: left;
    width: 338px;
    height: 240px;
    position: relative;
    overflow: hidden;
    /* This selector disables the float property that is placed on each tab button
    * by the default TabbedPanelsTab selector rule above. It also draws a bottom
    * border for the tab. The tab button will get its left and right border from
    * the TabGroup, and its top border from the TabGroup or tab button above it.
    .VTabbedPanels .TabbedPanelsTab1 {
    float: left;
    overflow: hidden;
    .VTabbedPanels .TabbedPanelsTab2 {
    float: left;
    overflow: hidden;
    .VTabbedPanels .TabbedPanelsTab3 {
    float: left;
    overflow: hidden;
    .VTabbedPanels .TabbedPanelsTab4 {
    float: left;
    overflow: hidden;
    .VTabbedPanels .TabbedPanelsTab5 {
    float: left;
    overflow: hidden;
    /* This selector disables the float property that is placed on each tab button
    * by the default TabbedPanelsTab selector rule above. It also draws a bottom
    * border for the tab. The tab button will get its left and right border from
    * the TabGroup, and its top border from the TabGroup or tab button above it.
    .VTabbedPanels .TabbedPanelsTabSelected {
    text-decoration:none;
    overflow: hidden;
    /* This selector floats the content panels for the widget so that they
    * render to the right of the tabbed buttons.
    .VTabbedPanels .TabbedPanelsContentGroup {
    clear: none;
    float: left;
    padding: 0px;
    width: 686px;
    height: 240px;
    background-color: #fff;
    /* Styles for Printing */
    @media print {
    .TabbedPanels {
    overflow: visible !important;
    .TabbedPanelsContentGroup {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    .TabbedPanelsContent {
    overflow: visible !important;
    display: block !important;
    clear:both !important;
    .TabbedPanelsTab {
    overflow: visible !important;
    display: block !important;
    clear:both !important;

  • Sliding Panels Question

    Hi there. I'm new to Spry, and I'm using 1.6.1 in Dreamweaver CS3. I want to create sliding panels to showcase some work I've done, but I wanted to know if it's possible to build a scroll function for one panel which will have multiple pieces of work (not a scrollbar).
    There's not enough horizontal real estate to show all the work in this particular panel at once, so I want to put a "continue" or "next" and a "previous" button/function on that panel so the user can automatically view differents areas of the panel to see the rest of the related work, without creating a number of different panels for all this.
    Is this possible in the sliding panels widget, or is there just one pass per panel? I hope my question is clear.
    I'm trying to decide whether to build this in Spry or Flash.
    Thanks in advance for any suggestions.
    L

    I dug around a bit more and saw an example that shows me that I can do this. Thanks anyway!

  • XFCE panel question

    I hope I can phrase this question right.  I'm not sure what kind of terminology to use but I'll give it a shot.
    How do I get the "Start Panel" and the "Application Tray" to both be on the same panel.  I've tried placing them right next to each other but when the Application Try grows when new windows are opened, it expands over the Start Panel.  I know it's possible to do because I've seen screenshots like this one:
    http://upload.wikimedia.org/wikipedia/c … ce-4.4.png
    but I'm not sure how to get it that way.  I've tried using Panel Manager but I don't know how to add the Application Tray.  Also, does anyone know which icon set that is?  I'd actually like my desktop to look almost exactly like that.

    A thought: is your panel set to be "full width", in the centre? A "normal width" panel in the bottom left, with the Task List's "Minimum Width" parameter set just nicely to hit the right edge of the screen when empty would behave exactly as you describe.
    Panel Manager: Fixed Position, centre (ie, one of the middle buttons in the square array of 12 placement buttons), Normal Width.
    Task List: Set the Minimum Width to 100. No, really. In a "normal width" panel, it'll always expand to fit the space available, and if you set this value to the lowest possible, you won't run into any more problems if you add more stuff to the panel, or your System Tray fills up with icons: the List will just contract to give them space. Obviously, if it gets too small, you might want to change it to something larger, but for the moment, it should work fine like that.

  • A few more Solaris questions

    I'm sure this isn't the best place to post this, but I currently have a file server running Solaris 11 with a raid-z2 pool and I'm building a new vmware server out of some parts I've managed to get some good deals on might I add.
    I'm building on a supermicro x8dt3-f board that has an LSI controller on board with a pair of xeon 5570's and 48gb ram. The processors and ram actually came from a sun blade that was tossed out for recycling, sadly the box had never been opened, but i got these for pennies on the dollar, so i'm happy
    I'd like to move the current Solaris file server into a VM on the new ESXi 5.1 host and passthrough the LSI controller.
    I've been reading, and reading and reading and i find the more i read, the more questions I have and the less clear some of the answers are getting.
    First, from what I gather, Solaris 11 has only been added to the supported guest list in ESXi with the recent esxi 5.1 version as I understand? So all should be fine here? Can someone confirm?
    second, i've read about issues with LSI controllers under solaris 11. Is this something that has been addressed in 11.1?
    Third, trying to find the best method to conver the physical system to virtual under ESXi
    The first thing I plan on doing is backing up my data from the pool, though it will be scattered across a few systems. Then I plan on exporting the pool to move the disks physically to the new controller in the VM. The question I have here, is will the share flags and permissions be retained when I import the pool? or do I have to redo all that?
    But then, what's the best method to move it to a VM? The one document I see come up the most is moving a physical solaris system into a zone on another system. Can it be transferred to the global zone? Could I do a new install in a VM, and move the existing install to the global zone, import my pool and call it a daY?
    Or do I dd the OS disk, convert the image and drop it into vmware, get the hardware working, and then import the pool?
    Or is there a better way? Has anyone got any online docs in mind that may help specifically with this migration? everything i'm finding is scattered, maybe i'm not looking for the right things but I could use some pointers if anyone has suggestions.
    I suppose I should note, i have it integrated with an Active directory, this is why i'm worried about permissions being retained when i import the pool
    I just want this to go as quickly and smoothly as possible, with as little headache as possible. it's my home setup, so realistically it takes the time it takes as long as things go smooth

    I know this may not be the answer you are looking for, but I think you are making it more difficult than it needs to be.
    One other option is to leave your Solaris Storage server on the bare metal of this new beast of a machine you are piecing together. Then, use VirtualBox 4.2.6 which is support quite well in Solaris to run whatever virtual machines you where intending ESXi to be used for.
    This way you have the fastest possible storage setup without the issues of hardware passthrough. And the fast storage now benefits the VMs running on it. Not to mention the other neat options now of running lzjb compression for the VMs. either using zvols for the VMs, or just virtualbox vdi files sitting on a compressed zfs filesystem.
    As far as the LSI 1068E controller goes, their website only shows drivers for Solaris 10. So unless Solaris 11 has the drivers built in, you may not be able to use that controller. Believe me I feel your pain in this one.. I have the d#$$!est time finding good SAS HBAs for Solaris 11.1 and the few I did find had questionable drivers. Areca 1320 cards seem to work well, as do Adaptec 64xx and 68xx raid cards. LSI has a new line that supposedly works with Solaris 11.
    My advice is to try a baremetal install of Solaris 11.1 on the new machine and see if you can recognize drives on the LSI controller, if not then use the 6 onboard SATA ports if that is enough for the drives. Otherwise purchase an Areca 1320 which is only like 230 bucks for the 8 port version. http://www.newegg.com/Product/Product.aspx?Item=N82E16816151116R

  • More JTextPane Questions

    Hi Guys
    I posted this question on the Java Ranch forums yesterday evening, but I haven't received a response yet, so I figured that I'd try these forums as well. You can view the other thread here; http://www.coderanch.com/t/554155/GUI/java/JTextPane-Questions.
    We're trying to build a simple WYSIWYG HTML editor using a JTextPane. I've used Charles Bell's example, available here; http://www.artima.com/forums/flat.jsp?forum=1&thread=1276 as a reference. My biggest gripe with it at the moment is that bullets aren't working as I would expect them to. If I highlight text and click the "Bullet" button, I want a bullet to be placed immediately before the highlighted text, on the same line. If I try to do this, my code is creating bullets, but it moves the selected text one line down. I've gone through the Oracle tutorial on text components, but I couldn't find anything that helped me with this particular issue.
    Also, if I copy and paste text into my JTextPane, the pasted text always appears on a new line (a new paragraph tag in the actual HTML). Is there a way to prevent the JTextPane from creating new paragraphs?
    Lastly, I'm flabbergasted as to why my buttons actually work. I can't see anything that explicitly links my buttons to my HTMLEditorKit or my JTextPane. Short of a little voodoo man living under my keyboard, how on earth do my buttons/actions know that they should update the JTextPane?
    The code is as follows;
    package myhtmleditor;
    import java.awt.BorderLayout;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javax.swing.SwingUtilities;
    import javax.swing.text.StyledEditorKit;
    import javax.swing.text.html.HTML;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.html.HTMLEditorKit;
    public class Main {
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    JFrame frame = new JFrame("My HTML Editor");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.setSize(500, 500);
                    frame.setLayout(new BorderLayout());
                    JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
                    HTMLDocument document = new HTMLDocument();
                    final JTextPane htmlEditorPane = new JTextPane(document);
                    Action bold = new StyledEditorKit.BoldAction();
                    Action italic = new StyledEditorKit.ItalicAction();
                    Action underline = new StyledEditorKit.UnderlineAction();
                    JButton boldButton = new JButton(bold);
                    boldButton.setText("Bold");
                    buttonsPanel.add(boldButton);
                    JButton italicButton = new JButton(italic);
                    italicButton.setText("Italic");
                    buttonsPanel.add(italicButton);
                    JButton underlineButton = new JButton(underline);
                    underlineButton.setText("Underline");
                    buttonsPanel.add(underlineButton);
                    HTMLEditorKit.InsertHTMLTextAction bulletAction = new HTMLEditorKit.InsertHTMLTextAction("Bullet", "<ul><li> </li></ul>", HTML.Tag.BODY, HTML.Tag.UL);
                    JButton bulletButton = new JButton(bulletAction);
                    bulletButton.setText("Bullet");
                    buttonsPanel.add(bulletButton);
                    JButton printButton = new JButton("Print to Console");
                    printButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            System.out.println(htmlEditorPane.getText());
                    buttonsPanel.add(printButton);
                    htmlEditorPane.setContentType("text/html");
                    HTMLEditorKit editorKit = new HTMLEditorKit();
                    htmlEditorPane.setEditorKit(editorKit);
                    frame.add(buttonsPanel, BorderLayout.NORTH);
                    frame.add(new JScrollPane(htmlEditorPane), BorderLayout.CENTER);
                    frame.setVisible(true);
    }Thank you for your input.
    Cheers,
    rfnel

    See how the bullet action changes HTML (compare getText() result before and after the bullet applying. It seems you need more smart way of adding bullets.
    Answer some questions if user selects whole paragraph should the <p> tag be removed and replaced with <li>? If user selects just one word in the paragraph and pressed bullet should the whole paragraph be bulleted?
    When you copy something you clipboard contains something like this "<html><body> content</body></html>". Try to override read() method of your kit (or Reader) to skip the main tags.
    For components see ObjectView class source.
    In fact when HTMLDocument is created from String components classes are created and stored in attributes of Elements. Then during rendering ComponentView extension (ObjectView) creates components.

  • I'm trying to purchase but buy results in "add 3 more security questions"

    After Press buy, message is add three security questions. But when i goto and manage my account, it has one security question and i don't see where to add more.
    Or why 3 in addition to the one I see already within my account?
    Thank you!

    Welcome to the Apple Community.
    Have you tried repurchasing again after amending your security at my Apple ID.

  • More XControl questions / issues

    XControl 1, X1, has two other XControls, X2 and X3, on its
    block diagram
    When I open a VI with X1 on it, the Init ability is called
    for X2 and X3 three times each.  X1’s
    Init ability is called one time.  (The
    other VIs you see pop up are called from X2 and X3 as a result of Init
    executing, so they illustrate the Init calls. 
    They close when Uninit is called, and you can see as much when you close
    the VI and project)
    When I close said VI, the Uninit ability is called for X1
    and called twice for X2 and X3.  This, of
    course, leaves one instance of X2 and X3 left open.  Consequently, references and VI’s I opened as
    a result of the Init call are left open (you notice the two subvi's still open). 
    Once I close the project, the Uninit abilities are called
    for X2 and X3, closing the remaining resources.
    There is a file in the folder called log.txt I write to in
    the init and Uninit abilities for each XControl.  If you open it after each step you can see
    what I’m talking about.
    Additional things: 
    After I close the VI, but not the project, X2 and X3 are of course
    locked.  When I right click “Unlock this
    library for Editing”, LabVIEW crashes with a .cpp error.  http://forums.ni.com/t5/LabVIEW/Error-when-I-Unlock-Library-for-Editing-with-XControl/m-p/1009044#M4...
    My real project loads the XControls (and executes the Init ability) as soon as it opens for
    some reason, and makes it nearly impossible to edit them unless I close and open the
    XControls individually, due to the .cpp error above.
    Questions
    Is it expected that an XControl an another XControl should be called more than once?
    Why don't they get unloaded when the main XControl is closed and unloaded?
    Why the .cpp error?
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect
    Attachments:
    XControl Forum Test source.zip ‏165 KB
    XControl demo video.zip ‏3598 KB

    Hello elset191
    Here is the Corrective Action Request that references your issue.  I have included you as a customer whom this problem is affecting.
    Request #: 302463
    Description: XControls remain open after corresponding VI is closed and crash occurs, XControl cpp error in LabVIEW 8.6.1f1 (Fatal Internal Error: "ThEvent.cpp", line 184) 
    I'm sorry that this has been a frustration to you.  The fastest way to resolve this issue appears to upgrade.  Have you attempted to reproduce this error in LabVIEW 2010 SP1?  I was unable to reproduce this situation in LabVIEW 2010 SP1.
    The CPP error is due to some issue with how this has been internally developed.  It appears to have been resolved in LabVIEW 2010 SP1 as do the other issues you have been dealing with.  Can you please confirm this for me?  I am happy to further address this issue to ensure your success.  All the best!
    P.S.  I have provided a link to the LabVIEW 8.6 Help simply for competeness.
    Editing XControls that are in Use
    http://zone.ni.com/reference/en-XX/help/371361E-01/lvhowto/editing_xcontrols_in_use/
    Sincerely,
    Greg S.

  • More clear question  for slideshow help - Kin?

    Hi Kin,
    You have been very helpful in getting me this far - I know
    this last detail would be a very easy thing for you to do.
    I tried to get it to work for the dssmTitle by adding another
    dssmTitle.addObserver
    http://www.tsgraphics.net/slideshow_test/
    The mouseover function is fine the way it is. It's how it
    behaves during the slideshow that is a little wierd - it just sits
    on the first story. It would be great if it switched to each story
    like the small nav at the bottom highlights to each corresponding
    nav to its story during the slideshow.
    I hope this is more clear.
    Thanks!
    TS

    Hi TS,
    So it sounds like you want to change the current row of
    dschapters and stop the slide show on mouesover, and then re-enable
    the slideshow on mouseout right?
    Try something like this:
    var gTimerID = 0;
    var gInterval = 3000;
    function StartSlideShow()
    StopSlideShow();
    gTimerID = setInterval(function(){
    dschapters.setCurrentRowNumber((dschapters.getCurrentRowNumber() +
    1) % dschapters.getRowCount()); }, gInterval);
    function StopSlideShow()
    if (gTimerID)
    clearInterval(gTimerID);
    gTimerID = 0;
    dschapters.addObserver(function(nt,n,d)
    if (nt == "onPostLoad")
    StartSlideShow();
    <div id="nav" spry:detailregion="dschapters"
    spry:repeatchildren="dschapters" spry:choose="choose">
    <div spry:when="{ds_RowID} == {ds_CurrentRowID}"
    id="nav2" class="currentChapter" spry:setrow="dschapters"
    spry:hover="hoverRow"><img src="{thPhoto}"
    onmouseover="StopSlideShow();
    dschapters.setCurrentRow('{ds_RowID}');"
    onmouseout="StartSlideShow();" /> </div>
    <div spry:default="default" id="nav2"
    spry:setrow="dschapters" spry:hover="hoverRow"><img
    src="{thPhoto}" onmouseover="StopSlideShow();
    dschapters.setCurrentRow('{ds_RowID}')"
    onmouseout="StartSlideShow();" /></div>
    </div>
    On a side note, if you are trying to bring your question to
    the top of the forum again, post a message in your original thread
    ... that is don't create a new thread each time ... that way the
    context of your questions is preserved for others to read. If you
    post new threads each time, folks have to search for your previous
    posts/threads to get context.
    Thanks,
    --== Kin ==--

  • More font questions

    What I can't seem to find in any of these replies--I probably just haven't found the right one yet!--is whether the new OS X Tiger can use older mac fonts or any of the free mac fonts available on the internet...and that goes for all free mac downloads. I can't seem to get ANYTHING in a format that actually works with this OS!
    I have hundreds of great fonts on my older macs, but I'm guessing if they are not TTF (which most, of course, will not be) they won't transfer. Also, it seems that the vast majority of downloads come through as .sit files--not sure what that is, but they are not registering as fonts. Now what?

    Hi rosy,
    Welcome to the discussions and the AppleWorks forum.
    This is more an OS X question than an Appleworks one, and you may get a more definitive reply by pisting in the Tiger forum.
    ".sit" is a suffix that identifies a file compressed using Stuffit, the 'standard' compression application for Mac under OS 9 and earlier. To open these you need the free download of Stuffit Expander.
    If your older fonts are TrueType (which most of the scaleable ones will be) they should be useable in Tiger. Bit Map fonts (any that showed some sizes in black and others in outline in the Font menu on your older Mac) may not be useable in OS X.
    Regards,
    Barry

  • More MOH Questions

    Hi Everyone
    I'm looking at the MOH options now and I have a question, I went to the MOH audio source and the MOH server configuration. And I see that each one has an option to allow multicasting, but in the server configuration they have base multi-cast IP and base mutli-cast port. I wanted to know is th IP 239.1.1.1 and what would I put for the port.
    Eric

    Hi,
    You have to put the valid multicast port numbers which include even numbers that range from 16384 to 32767.
    Here in your case the MoH server will be streaming a multicast audio source to 239.1.1.1 on RTP port specified.
    Refer below link for MOH Configuration and more detail,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/3_1_2/ccmcfg/b04moh.html#wp1035654
    Regards,
    Venkatesh

Maybe you are looking for

  • Error while upgrading EP 7.0 SP6 to SP9 (in java stack)

    Dear All, We have EP 7.0 with SP 6 , OS = Win2k3 SP2, DB = Oracle 10.2 g. Upgrading it to Sp9 , we have downloaded dumps from service marketplace. Kernel & ABAP stack upgradation have been completed and the system is showing it clearly from status me

  • Apple Care and 1st generation MBP-Should you get it?

    So, how many of you have got Apple Care? I have a 1st generation MBP (I got one a few weeks after they came out). Mine still has the whine, but I'm able to silence it with the mirror widget which I've been using for nearly a year. (I realize this can

  • Does the ipod touch 5th g support 40mm headphones?

    I want to buy some headphones, but they have 40mm driver diameter. i was wondering if the ipod touch's 3.5mm jack supported it

  • Increase of JVM in Tomcat

    I have an application with Apache + Tomcat who for many consultations to Db, having my server 4Gb of ram memory and I want to increase my JVM 2Gb or 3Gb and single allows this amount me - Xmx1550m Seth JAVA_OPTS=-server - Xincgc - Xms360m - Xmx1550m

  • Changing search results display

    When I search in my iTunes library, I hate the layout of the window that shows my results. It's confusing, and not as easy to find what I want in the results. I liked the old look better. Is there a way to change the way the results window looks.