How to make Canvas on a JSCrollPane Vertical/Horizontal splittable

I have a JScrollPane on which i placed a JTree(Vertical/Horizontal Scrollable)
I have a ScrollPane on which i placed a Canvas(Vertical/Horizontal Scrollable)
I was able to do it but, its splitting towards the JScrollPane area only.
So i tried to make a JScrollPane and tried to add a Canvas to it setting the options as JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS.
But the problem is its showing the Scrollable bars but not able to Scroll when more images are there on the Canvas.
My problem will be solved if i was able to add a Canvas to the JScrollPane with Vertical/Horizontal Scrollable.

Don't mix Swing and AWT components. Don't use a Canvas. Use a JPanel instead.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

Similar Messages

  • TS3274 How do I lock and unlock the vertical/horizontal screen positions?

    How do I lock and unlock the vertical/horizontal screen positions?

    Use the Side Switch or Rotation Lock in Control Center.

  • How to make spry tab open or scroll horizontally.

    I saw a bunch of spay panels that scrolls horizontally. But
    dont know how this is achieved.
    There is a slide effect in Dreamweaver Behavior panel but it
    only goes up and down or vertically.
    I'm trying to create a bunch of Spry Tab panels, basically I
    hide the tabs using CSS display none property, then I add a "next"
    and Prev button, this allows the user to browse the panels without
    the tabs.
    The problem is, I need the spray content area to open or
    scroll horizontally instead of vertically or up and down.
    Any ideas? Thanks
    Patrick

    Webethics wrote:
    > I saw a bunch of spay panels that scrolls horizontally.
    But dont know how this
    > is achieved.
    > There is a slide effect in Dreamweaver Behavior panel
    but it only goes up and
    > down or vertically.
    >
    > I'm trying to create a bunch of Spry Tab panels,
    basically I hide the tabs
    > using CSS display none property, then I add a "next" and
    Prev button, this
    > allows the user to browse the panels without the tabs.
    >
    > The problem is, I need the spray content area to open or
    scroll horizontally
    > instead of vertically or up and down.
    >
    > Any ideas? Thanks
    Sounds like you really should be using the Spry Sliding
    panels:
    http://labs.adobe.com/technologies/spry/samples/slidingpanels/SlidingPanelsSample.html
    You can make them go vertical, horizontal, or even a
    combination. This widget isn't built into Dreamweaver, so you'll
    need to add the appropriate markup manually. FOr more info check
    out the Spry API docs:
    http://labs.adobe.com/technologies/spry/articles/data_api/index.html
    Select Sliding panels on the left, and then start off with
    Overview.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • How to make server behaviors repeat region vertical?

    I have done many "Server Behavior, Repeat Region" showing vertical list without any other setup, now I’m doing a new one and is showing horizontal which doesn't make any sense. Does anybody know why and how to fix this “bad behavior”?

    This is very simple page no external or internal css is for internal use only to retrieve data base information. I currently have to more from different sites working fine without any third party app or any extra coding effort.  here are codes.
    Thank you guys for your prompt response.
    <?php require_once('Connections/customers.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_Recordset1 = 10;
    $pageNum_Recordset1 = 0;
    if (isset($_GET['pageNum_Recordset1'])) {
      $pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
    $startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
    mysql_select_db($database_customers, $customers);
    $query_Recordset1 = "SELECT * FROM customers";
    $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
    $Recordset1 = mysql_query($query_limit_Recordset1, $customers) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    if (isset($_GET['totalRows_Recordset1'])) {
      $totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
    } else {
      $all_Recordset1 = mysql_query($query_Recordset1);
      $totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
    $totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
    ?>
    <!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="viewport" content="width=device-width" />
    <title>Untitled Document</title>
    </head>
    <body>
    <table width="158%" border="1">
      <tr>
      <th scope="col">ID</th>
        <th scope="col">Name</th>
        <th scope="col">Last Name</th>
        <th scope="col">Address</th>
        <th scope="col">City</th>
        <th scope="col">State</th>
        <th scope="col">Zip Code</th>
        <th scope="col">E-mail</th>
        <th scope="col">Phone</th>
        <th scope="col">Username</th>
        <th scope="col">Password</th>
        <th scope="col">Role</th>
      </tr>
      <tr>
        <?php do { ?>
          <td align="left"><?php echo $row_Recordset1['id']; ?></td>
          <td align="left"><?php echo $row_Recordset1['name']; ?></td>
          <td align="left"><?php echo $row_Recordset1['lname']; ?></td>
          <td align="left"><?php echo $row_Recordset1['address']; ?></td>
          <td align="left"><?php echo $row_Recordset1['city']; ?></td>
          <td align="left"><?php echo $row_Recordset1['state']; ?></td>
          <td align="left"><?php echo $row_Recordset1['zip']; ?></td>
          <td align="left"><?php echo $row_Recordset1['email']; ?></td>
          <td align="left"><?php echo $row_Recordset1['phone']; ?></td>
          <td align="left"><?php echo $row_Recordset1['username']; ?></td>
          <td align="left"><?php echo $row_Recordset1['password']; ?></td>
          <td align="left"><?php echo $row_Recordset1['role']; ?></td>
          <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
      </tr>
    </table>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>

  • How to make the Time Line in Vertical ?

    Hi All
    I have created a Schedule Board using the Schedule Viewer but
    including the Flexlib in my project .
    Now the thing is that the Timeline which us to come on the
    top of the
    ScheduleViewer I need to get that Time line Vertically in
    left side
    of the ScheduleViewer to display the time in left side,and
    all the
    date's in the top .
    How can I do that to get the Timeline Vertically and the Date
    at the
    position of TimeLine .
    Thanks
    Vivek Manchanda
    Theikos IT Solution

    One improvement.. To get a line that is neat, use a bit of Graphics2D
        public void paintComponent(java.awt.Graphics g)
            int w = getSize().width;
            int h = getSize().height;
            // draw a line between (0,0) and (w,h)  
            g.setColor(getForeground());
            if (strTop == null)
                strTop = "  ";
            if (strBottom == null)
                strBottom = "  ";
                java.awt.Graphics2D g2 = (java.awt.Graphics2D)g;
              g2.setRenderingHint(java.awt.RenderingHints.KEY_ANTIALIASING,java.awt.RenderingHints.VALUE_ANTIALIAS_ON);
              //g2.setStroke(new java.awt.BasicStroke(14.0f));
            g.drawLine(0, 0, w, h);
            //the following lines will draw the two strings,
            //one above the top of the line and the above below it.     
            g2.drawString(strTop, (w/2)+2, (h/2)-2);
            g2.drawString(strBottom, 2, (h / 2) + 2);
            //the x,y for drawString are only based on assumption.   //do necessary changes to suit ur needs.
        }Then create a TableCellRenderer and set it to the Table Header for ur table's 1st row.....
    Cheers

  • How to make a UI element at the horizontal middle of a View?

    a browser like IE , if  the computer screen size is different,  UI Element position will change.
    How can i make the UI in the middle of the screen. like the WebDynpro Longon page.

    Hi Jason,
    You will have to use three transparent containers in the view.
    Adjust your transparent containers so that it will cover the 100% area of
    the view.
    Use matrix layout for root container and put all three transparent containers
    one below other i.e. in a single column. Apply matrix head data for two
    containers.
    Now put all your UI elements in the middle transparent container in a group.
    so that you can apply grid layout to your 'group' UI element.
    I hope this will solve your problem as this solution helped me in my
    developement.
    Or else,
    Just use the system logon, it's already pre-configured. The link is:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ff/c7de3fc6c6ec06e10000000a1550b0/frameset.htm
    Always use UI elements so that 100% area can be used. Because this will automatically adjust your screen for different computer screen sizes. Do not use UI elements in pixels. These might vary as per the screen size.
    Cheers,
    Darshna.

  • Double Toolbar - How to Make It Permanent?

    I understand how to make the toolbar a double vertical configuration by clicking on the double left arrows. If I stop and restart Photoshop it always comes back to a single column. How do you make this change permanent?

    What version of elements and operating system?
    As far as i can tell that has to do with your screen resolution in newer versions of elements.
    If you have a lower resolution like 1280 x 800 then the toolbox is double row.
    If you have a higher screen resolution like 1920 x 1200 then the toolbox is single row.
    On windows (pse 10) you might try undocking the toolbox (float the toolbox) and then it seems to stay double row if you have a higher screen resolution.
    It works well that way if you use floating window documents, not so good if you use tabs.

  • Can 3 vertical Radio Buttons span 3 rows in a table? AND how to make form highlight when radio butto

    I am trying to add 3 grouped vertical radio buttons where one is on each line of a 3 row table. When I group the 3 buttons it squeezes them into one row, is there a way I can have them grouped and one in each.
    Also, I would like to know how to make part of the form highlight when one of the 3 buttons is selected

    Hi,
    If I am not wrong, a table cell can hold only one component or none. In order to place the radio group to different positions vertically, you can use subforms instead of table.
    Asiye

  • Anyone know how to make vertical text in a table in keynote?

    anyone know how to make vertical text in a table in keynote?

    Just to add a bit more about this question. I have seen in other related questions that this feature (vertical text) is not available in (apparently) the whole iWork09. someone even said that it should be asked to the developers, so they include this feature in iWork10. I find this issue a bit sad. This feature has been present in msOffice since a while, and at least for me, this is quite important for my work. It is also apparently not possible to have different page orientation in the same document, meaning portrait and landscape, so one can have wide tables in a whole page, for example. If this is true, it is again sad, and I just cannot understand why such a basic feature is not available in an already 09 version. I am using only the trial version of iWork, but already in the first day I have discovered that I actually cannot do what I was used to. Again sadly I (and many others I guess) will have to stick to Office until the mac software is fully developed.

  • How to make a JScrollPane not getting Focus?

    How to make a JScrollPane not getting Focus?
    When i tab out from a textfield inside a scroll pane focus is going to ScrollPane .And if i press tab once more then only focus is going to other textField which is outside the scrollpane.
    For me when i press tab from a text field inside a scrollPane ,i should go to textfield out side the scroll pane.
    satish

    Hi,
    I've the same problem, that I have to double click on tab
    to step from a textfield with a scrollpane to the next textfield in my panel.
    I tried to implement a FocusListener on my JScrollPane, but without success.
    Can you tell me in detail how to implement this listener ?
    Kind regards
    Andy Kanzlers

  • How to make HTMLPANEL have a vertical scroll bar?

    The content that I load into the panel is longer than the panel itself. How do I make the
    panel have a vertical scroll bar to contain all the data within it.

    Add
    overflow: auto;
    or
    overflow: scroll;
    to your style definition of the panel. You can also use
    overflow-y: auto;
    or
    overflow-y: scroll;
    which gives only a vertical scroll bar.
    Beth

  • How to make JScrollpane not to fetch data while scrollbar is adjusting?

    how to make JScrollpane not to fetch data while scrollbar is adjusting?
    Hi,
    I need to make the jscrollpane get data only when the scrollbar stops scrolling.
    for instance if I hold the scrollbar's thumb and drag it to pass 1000 records, I want the view to wait until I release the thumb before taking any action( ex. adjust the view). in other words if the value of getValueIsAdjusting() of scrollbar is true, then the jscrollpsne should wait until it changes to false before doing anything. this is the same approach that Outlook takes when browsing through the list of emails in your mailbox.
    I don't know how to solve this issue. any help regarding this issue would be appreciated.
    thanks
    Saba

    You are planning to mention your cross-post(s) somewhere in this post, correct?

  • How to make baseline vertical

    Hello All,
         how to make baseline vertical.
    Always baseline is horizontal i.e we can draw the text only in
    horizontal line . How to make baseline vertical . Is there any method
    in jdk1.1.8 to make baseline vertical.
    Can any one answere?
    Sharmila

    in 1.1.8, no
    AffineTransform (introduced in java1.2) allows an arbitrary transform to be applied to the origin, so it can be used to perform the task you want. However, this functionality is unavailable in <1.2 JREs.
    rob,

  • How to make JList scrollable left right?

    Hi,
    How to make JList scrollable left right?
    Ty.

    jList MyList = new JList();
    JScrollPane  sp = new JScrollPane(MyJList,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);then the horizontal (and vertical if its the case) scrollbar will show up
    hope this helps

  • Can't figure out how to make "sub-tabs" / Too many "top-tabs" / Other ?

    First of all, the website that I am webmaster for is: www.cindydennis.org .
    I am having some problems:
    1) There are TOO MANY tabs at the top. I can't figure out how to make sub-headings on one page...
    For example, I'd like on the "About CDM" page, tabs that can be clicked on to go to other information tabs, but that don't end up appearing on the top (e.g.: having "Remarks" and "What We Believe" tabs go there, but not appear at the top).
    Another example, if you look at the home screen, I'd like to have the link to the "Privacy Policy" and Terms of Service" pages on the bottom, but not have them appear as tabs in the top, too.
    How do I do this, please? I've searched, and can't figure out/___sbsstatic___/migration-images/migration-img-not-avail.png
    2) How do I add "Copyright 2011" automatically? I saw in the Rapidweaver trial version, it automatically adds it when you publish... is there a way to tell this program to do this? Or do I need to type that in on each page? (I don't want to purchase RW... I'm not ready for that yet.)
    Thank you in advance
    Cindee

    Cindee ~ One way to do the copyright notice is to use a Text Clipping — Select (highlight) the copyright text you want to use and drag it to the Desktop. If necessary, change the name of the Clipping icon so that it's more easily identifiable on the Desktop. Then, when you need it in iWeb, simply drag the Clipping icon from the Desktop to iWeb's main canvas.
    By the way, rather than posting your URL here like this:
    www.cindydennis.org
    ...include the prefix to make it conveniently clickable:
    http://www.cindydennis.org

Maybe you are looking for

  • When I try to execute any workflow I get the error "Something went wrong.."

    Hello, Last weekend I updated the servers farm and I executed "SharePoint 2013 products configuration wizard" But I had an error and the wizard showed this: Conpleted configuration settings will not be rolled back. From this moment when I try to exec

  • Java Script and LOV

    Hi * I used in an PL/SQL Packages, which creat an HTML Pages the folloing Portal funktion to open an LOV ! htp.print(''); The folloing Link open the LOV : htp.print(''); With the Netscape Navigator 4.75 is no problem, but the Internet Explorer 5 coul

  • How to recover missing desktop files?

    While in Adobe Bridge, my friend accidently dragged his User folder to the Shared User folder (the graphics pen sorta grabbed it withouthim noticing). He tried to drag it back out of Shared, but it said it couldn't be modified. So he rebooted, and it

  • Reg. EDI-2-R3 IDOC integration.

    Hi,       We are going to implement a new project on EDI-2-IDOC XI integration using See burger BIC adaptor. EDI would be configured as outbound and R3 would configured as inboud. So where can I get the EDI ANSI X12 messages in .XDS format for 850, 8

  • Correcting Incorrect Price in the PO

    We have a PO with incorrect price that need to be corrected The PO was created for a raw material with qty 1200 CS for price 120 EUR/CS (this price is incorrect). The goods are received and are now consumed. The Vendor has now sent the invoice for th