Force label width inside a scrollpane not working

hello
I have 7 buttons in a grid 7x1 one on top of another inside a scrolpane. i want to be able to scroll left/right 7200pixels but i can't get the scrollpane to be 7200 wide. if i make a component 7200 wide inside it, it does, but runs off the side. unless i put a 7200wide graphic as a label on that button, then i can traverse 7200 left and right with the jscrollbar. i am goign to want to select the number in the future though...have it be 1000 wide or 100000 wide on the fly....with a solid graphic that seems a kinda clunky way to do it. any ideas? i guess i need to find a way to force the scroll bar to always exist with X width.
thanks in advance

ignore me. i'm an idiot. the panel's preferred size was what was important, not the buttons inside it.

Similar Messages

  • Link inside webpage does not work.

    link inside webpage does not work ( http://ochre.lib.uchicago.edu/marathi/ ). i was able to launch a java program by clicking the link in the middle of the page in firefox 6. now it doesnt work in latest versions. link works fine in IE9

    Anyone?.

  • Typeahead function in search field inside Facebook does not work in Firefox 13.0

    Until 3 or 4 days ago, cool typeahead function inside search field inside Facebook always worked in Firefox. Now since 4 days ago, it does not work. But the typeahead function works inside search field inside Facebook on Internet Explorer BUT I prefer to use Firefox and do NOT want to switch to IE!!!
    Is there anything I can do to regain that function?
    Aharon

    Shalom DJST,
    Thank you for reply.
    The behavior did not start with Firefox 13. I actually upgraded to Firefox 13 in hope it would solve the problem that happened in previous older versions. It failed to solve the problem.
    It had been working for 3 years on Firefox until last or 2 weeks ago.
    Regarding search, I mean by "type-ahead" which is that FB's search field offers a drop down list of possible search results as I type. For example, if I type S, it will show list of all people or groups with first letter S. If I type sk, it will show list of anything such as people or groups that starts with Sk, and so on. This is most valuable time saving technique to look for my pals to say hi or groups that I do not belong to but want to read their news or info.
    I think it is Facebook's programming problem but if I ask them, they will point to Firefox's fault by saying that it works for my Internet Explorer but not for Firefox and I do not want to get involved into tug war between Facebook and Mozilla.
    I am just bummed that the valuable time saving search method no longer exists on Firefox.
    Regards,
    Aharon

  • UITextField inside an UIAlertView not working in iOS4.1 (works in 3.0)

    I have a UITextField added to an UIAlerView used to take user input on an alert box. Thats work perfect in iOS 3, But I cant type to that UITextField in iOS 4.1. in iOS 4.1. I do get focus to that textfield inside alertview, and keyboard appears, however typing doesn't work.

    tsteph wrote:
    I've included sample code.
    Also known as a (poorly indented) code snippet. Can you replicate the problem in an SSCCE *(<- link)?* Note that if you can get it to fail with just 2 checkboxes, only include 2, rather than 9. If you prepare an SSCCE, please use the standard indenting so that it does not look a mess.
    It could also help if you could load your failing applet up at an URL where others can visit it.

  • Column width for inetractive report not working in IE 8

    Hi all,
    I have an IR for which I don't want the columns to rap and the last column (DESCR) should have a fixed width, so this is what I added in the region header :
    <style type="text/css">
       table.apexir_WORKSHEET_DATA td {
          white-space:nowrap;
    </style>
    <style type="text/css">
    td[headers="DESCR"] {width:300px !important;max-width:300px; !important}
    #apexir_DESCR {width:10px;max-width:300px !important;max-width:300px; !important}
    </style>this works fine on FF and chrome, but IE seems to completely ignore this, even adding !important did not help
    I found on the internet that for IE 8 to obey this width the table should have as style : table-layout: fixed;
    e.g. :
    <table style=´width: 100%; table-layout: fixed;`>however I am a little bit lost as to how to do that
    Kr
    Martin

    Hi,
    I think you have mistake there. Try
    <style type="text/css">
    table.apexir_WORKSHEET_DATA td {
    white-space:nowrap !important;
    td[headers="DESCR"] {
    width:300px !important;
    max-width:300px !important;
    #apexir_DESCR {
    width:10px;
    max-width:300px !important;
    </style>And you can try add
    table.apexir_WORKSHEET_DATA {
    width: 100% !important;
    table-layout: fixed !important;
    }Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Setting the value of a JScrollBar inside a JScrollPane not working.

    I have a display area (JPanel) inside a JScrollPane. What i want to do is that every time the user closes my application a file is saved with some preferences, like position and size onscreen, and the values of the scrollbars. My problem is that when I try to set the values of the JScrollBars, they seem to be completely ignored.
    I made a small class to illustrate this:
    import java.awt.*;
    import javax.swing.*;
    public class ScrollExample extends JFrame
         private JPanel display;
         private JScrollPane displayScroll;
         public ScrollExample()
              display = new JPanel();
              display.setPreferredSize( new Dimension( 800, 600 ) );
              displayScroll = new JScrollPane( display );
              add( displayScroll );
              setSize( 400, 300 );
              setVisible( true );
              displayScroll.getHorizontalScrollBar().setValue( displayScroll.getHorizontalScrollBar().getMaximum() );
         public static void main( String args[] )
              new ScrollExample();
    }The behaviour of is as intended. However if we switch the two lines to be:
    displayScroll.getHorizontalScrollBar().setValue( displayScroll.getHorizontalScrollBar().getMaximum() );
    setVisible( true );and launch it, the scrollbar appears to have moved only a small amount. This leads me to believe that it has something to do with the main window being visible. In my actual application, this call to setValue is ignored, unlike in this sample one. Even placing it after the setVisible call, it does not do anything.
    When I tried to use:
         Runnable doScroll = new Runnable()
                 public void run()
                      taskDisplayScroll.getHorizontalScrollBar().setValue( 200 );
             SwingUtilities.invokeLater(doScroll);after the setVisible call, as mentioned on http://forum.java.sun.com/thread.jspa?threadID=723424, it rarely (maybe 3 out of 20 times) sets the scrollbar to the indicated value.
    My question is this: What does the setValue() call depend on to run properly, and how do I code it to work in my program?
    If you need any additional information, please ask.
    Note: In the sample class I provided, the scrollbar moves to its proper spot, I could not cause it to not move at all, as is the case in my application that seems to have the same calls.
    Thanks, Serge.
    Edited by: super_serge on Jun 26, 2008 8:23 AM

    Can you please explain to me how b) would be implemented.Read the Swing tutorial on Concurrency for the new approach in JDK1.6, or I still prefer to use SwingUtilities.invokeLater for somthing simple like this.

  • Variable contents inside "EXECUTE IMMEDIATE" not working properly.

    Hello,
    I have the following package:
    CREATE OR REPLACE PACKAGE "BACKUP"."PKG_BACKUP"
    IS
    PROCEDURE BACKUP_TABLE (TABLE_NAME IN VARCHAR);
    END PKG_BACKUP;
    CREATE OR REPLACE PACKAGE BODY "BACKUP"."PKG_BACKUP"
    IS
    PROCEDURE BACKUP_TABLE (TABLE_NAME IN VARCHAR) IS
    MYDATE VARCHAR(10);
    BEGIN
    MYDATE := to_char(sysdate,'YYYYMMDD');
    DBMS_OUTPUT.PUT_LINE(' Backing up '||TABLE_NAME||' table...');
    EXECUTE IMMEDIATE 'CREATE TABLE "BACKUP"."'||TABLE_NAME||'_'||MYDATE||'" AS SELECT * FROM "MYSCHEMA"."'||TABLE_NAME||'" COMPRESSED';
    END backup_table;
    END "PKG_BACKUP";
    /However, every time I execute it I get the following error:
    SQL&gt; exec BACKUP.PKG_BACKUP.BACKUP_TABLE('POOL');
    ** Backing up POOL table...*
    BEGIN BACKUP.PKG_BACKUP.BACKUP_TABLE('POOL'); END;
    ERROR at line 1:
    ORA-00942: table or view does not exist
    *ORA-06512: at "BACKUP.PKG_BACKUP
    ", line 9*
    *ORA-06512: at line 1*
    Table does exist and user executing the statement has the proper privileges (i've even executed the contents of "execute immediate" by hand and it works fine)
    What am I missing?
    Thanks in advance.

    SQL> CREATE OR REPLACE PACKAGE pkg_backup AUTHID CURRENT_USER
      2  IS
      3     PROCEDURE backup_table (table_name IN VARCHAR);
      4  END pkg_backup;
      5  /
    Package created.
    SQL> CREATE OR REPLACE PACKAGE BODY PKG_BACKUP
      2  IS
      3     PROCEDURE backup_table (table_name IN VARCHAR)
      4     IS
      5        mydate   VARCHAR (10);
      6     BEGIN
      7        mydate := TO_CHAR (SYSDATE, 'YYYYMMDD');
      8        DBMS_OUTPUT.put_line (' Backing up ' || table_name || ' table...');
      9 
    10        EXECUTE IMMEDIATE 'CREATE TABLE BACKUP'||table_name||'_'||mydate||' AS SELECT * FROM '|| table_name || ' COMPRESSED';
    11     END backup_table;
    12  END PKG_BACKUP;
    13  /
    Package body created.
    SQL> EXEC PKG_BACKUP.backup_table('EMP');
    Backing up EMP table...
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM BACKUPEMP_20090130;
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
          7566 JONES      MANAGER         7839 02-APR-81       2975                    20
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450                    10
          7788 SCOTT      ANALYST         7566 09-DEC-82       3000                    20
          7839 KING       PRESIDENT            17-NOV-81       5000                    10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
          7876 ADAMS      CLERK           7788 12-JAN-83       1100                    20
          7900 JAMES      CLERK           7698 03-DEC-81        950                    30
          7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
          7934 MILLER     CLERK           7782 23-JAN-82       1300                    10
    14 rows selected.Edited by: user10594152 on Jan 30, 2009 5:18 PM
    Edited by: user10594152 on Jan 30, 2009 5:19 PM

  • Scrollpane Not Working

    I am trying to have a JFrame with multiple panels, one of which will allow scrolling. I assign a scrollpane to a JPanel, which will contain multiple (dynamically changing) Labels. When the number of Labels exceeds the size that the JPanel is allocated (which is the reason the scrollpane is needed in the firstplace), the scrollable feature kicks in (which is good), but the entire list of labels appears, exceeding the region allocated to the JPanel and appearing over the panels below this one. How do I correct this? Thanks!
    import javax.swing.*;
    import java.awt.*;
    class TestScrollPane
         public static void main(String[] args)
              JFrame jf = new JFrame("Test Frame");
              jf.setLayout(new GridLayout(2,2));
              jf.setSize(400,500);
    jf.add(new Label("Top Left Panel"));
    JPanel jp1 = new JPanel(new BorderLayout());
              jp1.add("North", new Label("On top"));
              JPanel jp = new JPanel(new GridLayout(20,1));
              for(int i=0; i<20; i++)
                   Label l = new Label(i+ "th Label");
                   l.setBackground(Color.WHITE);
                   jp.add(l);
              JScrollPane scrollPane = new JScrollPane(jp);
              scrollPane.setPreferredSize(new Dimension(50, 50));
              jp1.add("Center", scrollPane);
              jf.add(jp1);
              jf.add(new Label("Bottom Left Panel"));
              jf.add(new Label("Bottom Right Panel"));
              jf.setVisible(true);
    }

    Your problem is one of the unexpected results that come from mixing AWT and Swing visual components. My answer: don't do this -- change all of your "Labels" to "JLabels".

  • Dropbox folder inside public folder not working

    Hello,
    In my previous office, we used the dropbox folders (located in the public folders, part of the Mac OS) to exchange files between several mac computers and I have not been able to do the same here at my home between 2 macs.
    Is there a step-by-step guide to assist in properly setting up the drop box in each computer?
    I have experimented with setting them up with no luck.
    Thank you in advance,
    grodr

    There is nothing to set up. Other users can see the folder (but not open it) at Users/yourname/Public/ - they can drop files into it but cannot open it. Only you can open it; and the same in reverse applies with other users' Drop Boxes.
    You may find the Shared folder (inside Users) more convenient as everyone can open it to drop files in or copy files out.
    All this applies over a network as well as between users on one computer.

  • Why is align stroke inside and outside not working correctly.

    I'm trying to add a stroke that's aligned to the outside of my path.  It appears to be offsetting the stroke *and* moving achor points at the same time.  It does the same kind of thing when I align the stroke to the inside.  It is fine when i align the stroke to center.  Please see my screenshots.  The one that is offset to the top-left is the align-inside one.  Why is this happening?  How do I fix it?  Help!

    It's also here

  • Force quit command option esc does not work in snow leopard

    When I try to use this command I am sent to front row. I can force quit throught the apple menu. This began when I upgraded to Snow Leopard.

    This might clear up some wierd inputs:
    PRAM RESET
    Zap the PRAM
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • IMac G3 force to start in OS9 - cdrom not working

    iMac G3 slot load 350 MHz - starts up in OSX with blank white screen with "prohibited" sign. How can I switch it back to OS 9 when the CDRom drive doesn't work?

    If the optical drive spins and spits out the CD, try cleaning it with one of the commercial disks. If it doesn't work at all, working replacements on eBay are quite reasonable - $20 to $40. Takeapart and replacement pictorial here Takeapart for swapping drives - slot load. It's for replacing hard drives, (which you may want to do also), but the CD drive is even easier to replace.
    Try reseating the drive cables just for laughs. Occasionally they get loose or suffer from micro-corrosion. (Beats replacing the drives)
    A working CD drive is essential. 'Bummer, eh?
    David

  • Af:clientlistener not working in af:column header

    Hi I am using jdeveloper 11.1.1.5.0 and my browser is IE 8.
    i have added client listener property in af:column to show the tooltip message on 'mouseover' action. This property is working fine If i am using inside the af:inputDate components. but, same clientlistenr is not working inside the table in column.
    the Working Code is : -
    <af:resource type="javascript" >
    function showPopupFromAction(actionEvent)
    actionEvent.cancel();
    var eventSource = actionEvent.getSource();
    var popup = eventSource.findComponent("popup");
    popup.show({align:AdfRichPopup.ALIGN_AFTER_START, alignId:eventSource.getClientId()});
    </af:resource>
    in client listener method is called in below componemnts:-
    <af:inputDate value="#{bindings.dateField.inputValue}"
    autoSubmit="true" columns="8"
    inlineStyle="padding-left:10px" partialTriggers="afDtId"
    required="#{bindings.dateField.hints.mandatory}"
    shortDesc="Searches the dateField" id="afDtId"
    binding="#{pageFlowScope.commonBean.afDtBind}"
    valueChangeListener="#{pageFlowScope.commonBean.valueChangeOfdateField}">
    <f:validator binding="#{bindings.dateField.validator}"/>
    <af:convertDateTime pattern="#{bindings.dateField.format}"/>
    <af:clientListener type="mouseOver" method="showPopupFromAction"/>
    </af:inputDate>
    But, Inside the column not working,
    <af:column sortProperty="dateField" sortable="true"
    headerText="dateField" width="85px"
    id="c2">
    <af:inputDate value="#{row.bindings.dateField.inputValue == null ? 'N/A' : row.bindings.dateField.inputValue}" readOnly="true"
    label="#{bindings.commonListTable.hints.dateField.label}"
    required="#{bindings.commonListTable.hints.dateField.mandatory}"
    shortDesc="#{bindings.commonListTable.hints.dateField.tooltip}"
    id="id2">
    <f:validator binding="#{row.bindings.dateField.validator}"/>
    <af:convertDateTime pattern="#{bindings.commonListTable.hints.dateField.format}"/>
    <af:clientListener type="mouseOver" method="showPopupFromAction"/>
    </af:inputDate>
    </af:column>
    And Table property is :
    <af:table value="#{bindings.commonListTable.collectionModel}" inlineStyle="width:1186px;border:none;background:rgb(243,243,243);margin-left:2px;"
    var="row" styleClass="adSeaAccT1"
    emptyText="#{bindings.commonListTable.viewable ? 'No data to display.' : 'Access Denied.'}"
    rows="#{bindings.commonListTable.rangeSize}" fetchSize="#{bindings.commonListTable.rangeSize}"
    autoHeightRows="10"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.commonListTable.collectionModel.selectedRow}"
    selectionListener="#{bindings.commonListTable.collectionModel.makeCurrent}"
    rowSelection="single" id="srcTbId" varStatus="tblStats">
    Edited by: user8739990 on Jan 31, 2013 8:37 PM

    For defining a tooltip message on af:column, you can use the below code:
    In the header facet of af:column add an output text with value same as column header Text. Provide the tooltip message in the shortDesc property.
    <af:column sortProperty="EmployeeId" sortable="true"
                     headerText="#{bindings.Employees.hints.EmployeeId.label}"
                     id="c4" shortDesc="Employees">
            <af:outputText id="ot5" text="#{row.EmployeeId}">
            </af:outputText >
            <f:facet name="header">
              <af:outputText value="EmployeeId" id="ot12" shortDesc="Employee"/>
            </f:facet>
          </af:column>Hope it helps.

  • Database Upgrade Agent not working for upgrading Oracle 9i DB to Oracle 10i

    Hi All,
    Presently I have completed my Oracle 10i installation on Solaris Server but I am facing an issue during the upgrade process of Oracle 9i to 10g. Whenever I try to upgrade the 9i databases to 10g using DBUA(Database Upgrade assistant) I am facing an issue that Data base not running from oracle home or pfile not found. The exact error message says:-
    The upgrade assistant failed in bringing up the database XIPCOTS. Oracle Home /opt/apps/home/oracle9i/product/releases/92/92 obtained from file /var/opt/oracle/oratab was used to connect to the database. Either the database is not running from Oracle Home /opt/apps/home/oracle9i/product/releases/92/92 or the correct Initialisation parameter file (pfile) was not found. To start the database , Oracle needs the pfile. Provide the full path name of the init file for the database XIPCOTS.
    In reality the XIPCOTS database is running fine in Oracle 9i and we can connect it using PL/SQL developer in windows.I have also provided the path of pfile but it is still not accepting the same.
    Path of pfile I provided :- /XIP/ofaroot/XIPCOTS/pfile/initXIPCOTS.ora
    Any help or suggestions would be greately appreciated.
    Our both Oracle 9i and 10g are installed on same Solaris server where solaris version is 9
    Installation path for 9i :- /opt/apps/home/oracle9i/product/releases/92/92
    Installation path for 10g :- /opt/apps/home/oracle/product/releases/10201
    Oracle 9i version :- 9.2.0.7
    Oracle 10g version :- 10.2.01
    Thanks in advance.
    Best Regards,
    Gourav Banerjee

    Can you please mention the specific folder name under oracle home where we need to put this pfile because there are two folder dbs and ds I have allready tried putting it inside dbs its not working. And my home path is correct I hope and is set for oracle 9i directories in the .oraenv file do we need to set it for oracle 10g before the DBUA upgrade.

  • My printer does not work with firefox but does work with explorer

    While using ebay I tried to print out a mailing label, and fox fire does not work with it anymore. My printer does work with internet explorer ?

    What printer? Does the page appear correctly in Print Preview? What happens when you try to print?

Maybe you are looking for

  • How to create a disabled account in Active Directory?

    Hi all, I got the assignment to create AD accounts as soon as a new employee is entered into the hr system, which might be several weeks before their contract actually starts. Therefore the account should be disabled until the start of their contract

  • How to make Management of row level restrictions easy for webi reports?

    Hi all Our BO Product version is 12.3.0.601 (BO 3.1) We are applying row level security for webi reports at universe level... Since  Universes are more in Number we have to create same restrictions and apply it to the users lets take a restrictions o

  • Easy way to scan file directory?

    I'd like to be able to dynamically scan my local file directory in order to offer various choices to a user based on the existence of files. Is there any way to do this? If it can only be done in a Projector or locally hosted .SWF that is fine.

  • Legacy java app & Web Logic App Server

    Hi, We have a legacy java application that we like to provide an EJB layer for. The legacy application provides a servelet interface, event queues, our own JDBC Conn Pools, etc... Can we integerate legacy java code into the Web Logic App Server? That

  • Custom configuration of packages

    Is it possible for a custom configuration of packages? For example, dwm has no configuration file for customization but instead make all customization via a C header file that gets built into the binary. Obviously in this example it would require the