Help, a question about jtextpane.

i want to known of something abouut jtextpane.
when i use a jtextpane in a jscrollpane in a jpanel, i can not use jtextpane by the horizonalbar in jscrollpane.
can you tell me why/
thanks!
if i want to display multi_format character and scroll horizonal bar, how can i do in java.
[email protected]

These might help hope they do
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
          scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);

Similar Messages

  • Need help with question about Microsoft Excel?

    I have recently begun using Microsoft Office for Mac. My question is related to the Excel program. I have used this for years on a PC where when the program opens, it shows a Workbook with a single page. However, on the Mac, when it opens, it shows many pages, the first going from column A to G, the second going from H to N, etc. and each page with the text "Click to add data". This continues forever. I would like to have just one sheet as on the PC. I have not found a way to limit this view to a single page. I have looked in the Preferences and in "View", but nothing seems to change the configuration. Any suggestions?
    Thanks

    My zoom only shows the magnification and does not give a "one page" option. However, I did find an icon that I loaded into the menu bar which gives the one page view. This may be due to the version 2004 that I am using.
    I also find that if I want to change the number of columns and rows, I change the size of each. I assume this is correct.
    Thanks for the help. This is slightly different that the PC version, but I am sure over time, there will be no problem.

  • Please help, simple question about Smart Playlists and Live Updating

    PLEASE for some reason I've never gotten an answer on this.
    I have a Smart Playlist called "Recently Played" with Live Updating. No matter how I set the parameters, the most recently played *song will ALWAYS appear on the bottom of the list when using my iPhone on the go.* I bolded that because I want you to be aware I'm not talking about on iTunes - I'm aware you can change how the list is viewed on iTunes.
    When using your iPod/iPhone on the fly and Live Updating is enabled, is there any way to make the most recently played song appear at the very top???
    Thanks so much

    Haven't seen that problem before but try the following: in iTunes, right-click the playlist name and enable the option "Copy to Play Order." Then sync.
    The normal use of "Copy to Play Order" when you have the playlist displayed in iTunes in some sort order, but you want it to display in the iPod in shuffled order (as it will actually play). Different problem than you are observing, but the same thing "might" help.... Let us know.

  • Please help..question about sending pdf file from my ipad to another

    I have a pdf file in Kindle that shows up under documents. I am wanting to locate it and send it from my ipad to another..whether through email or even share through kindle. I contacted kindle and they said I have to contact apple with instructions to retreiving the pdf before I can send it. Anyone know how to do it. It shows up in docs on my kindle app but doesnt show up in itunes or on amazon. Help appreciated!!!!

    I copied this from another discussion - that ironically enough - James and I both participated in. The OP never responded to what I suggested, but I think that this may work.
    I think that the Kindle app uses file sharing so see if you can transfer the files to the computer via iTunes with file sharing.
    iOS: About File Sharing
    Then drag the pdf file from the file sharing window (or use the save to button) onto your desktop. Email it from there and you can even email it to yourself on the iPad and store it any other other PDF app that you may have.

  • Please help! --Question about lauching application by JavaWebStart

    Hi,
    I am a new user of the Java Web Start technique. When I tried to launch my application by it, I got the error of
    javaw.exe -- Application error
    "the instruction" at "0x5006bf974" referenced memory at "0x000000e7f". The memory could not be "read"".
    Could anyone tell me what is the cause of this problem and how to fix it? Many thanks!
    Ling

    I'm having the same problem. Specs are:
    Win2K SP2
    IBM Pentium 4 1500 MHZ 512MB RAM
    Java Web Start 1.01
    JRE 1.2.2 and 1.3.1_02 and 1.4.0_01 (setting default to any of these results in the same problem).
    Any help is appreciated.
    Lon

  • Need help with question about upgrading phone

    Okay, so, here's what's going on:
    I currently have a Samsung Galaxy Nexus on Verizon.
    It's dying/freezing/battery life is terrible. Looking to upgrade.
    I don't have an upgrade available for my line, but my wife does.
    She's giving me permission to use hers, which a Verizon rep told me is fine.
    I want to use her upgrade to get a Samsung Galaxy Note II.
    The best price (subsidized) right now is on Dell's site ($169.99), which I could price-match at Best Buy (employee confirmed this). However, it's still a little high for me.
    I could get a better price by adding a line with this device - shave off $40 ($129.99).
    So here's my question: is there any way to add a line, get some immediate savings on the purchase, then immediately cancel the line (maybe only taking a little bit of a hit, getting most of the cost reimbursed for not using it)? In other words, how can I get this phone as cheap as possible?
    Thanks for your suggestions!

    If you add a line as you suggest, that new line will come with a 2 year (24 month) contract for service that will have a $350 Early Termination Fee (ETF) if you cancel the line immediately like you indicated.  There goes the thought of getting the Note II for the cheaper than the upgrade price.
    I recommend going with the price match upgrade @ $169.99 at Best Buy.  I can confirm they do the price match.  I bought my last phone from Best Buy and they matched the Radio Shack price I brought them and  I had a good experience.
    Good luck.

  • Need help with question about indesign 2014...

    I am using indesign 6 on a pc - simple question: when I update to indesign 2014, will the update keep all of my previous and current work?

    Yes. Your documents will be unaffected by any new versions you install unless you open them in the new version and save them with the same name, then you will lose the ability to open them again in the old version.

  • Help! Question about Java Server Pages

    Hi everybody!
    I'm new to Java, and I wonder if anybody could help me with this:
    I need to know the "extension" of this file (I don't physically have the file, I have only its contents!):
    </GX>
    <GX ID=Beetle>
    <BR>
    Thank you for choosing <GX TYPE=cell ID=common.Title></GX> for your travel arrangements<BR> <BR>
    <GX TYPE=tile ID=resInfo>
    Reservation Information<BR>
    Reservation Number: <GX TYPE=cell ID=resInfo.recLoc></GX><BR>
    </GX>
    <BR>
    <GX TYPE=tile ID=buyer>
    Billing Address<BR>
    Buyer: <GX TYPE=cell ID=buyer.name></GX><BR>
    <GX TYPE=cell ID=buyer.isResPhone> Residence Phone: <GX TYPE=cell ID=buyer.rPhone></GX><BR></GX>
    <GX TYPE=cell ID=buyer.isBizPhone> Business Phone: <GX TYPE=cell ID=buyer.bPhone></GX><BR></GX>
    <GX TYPE=cell ID=buyer.isFaxPhone> Fax Phone: <GX TYPE=cell ID=buyer.fPhone></GX><BR></GX>
    Address: <GX TYPE=cell ID=buyer.addrOne></GX><BR>
    <GX TYPE=cell ID=buyer.isAddr2> <GX TYPE=cell ID=buyer.addrTwo></GX><BR></GX>
    City: <GX TYPE=cell ID=buyer.city></GX><BR>
    <GX TYPE=cell ID=buyer.isState> State/Province: <GX TYPE=cell ID=buyer.state></GX><BR></GX>
    Country: <GX TYPE=cell ID=buyer.country></GX><BR>
    <GX TYPE=cell ID=buyer.isPostal> Postal/Zip Code: <GX TYPE=cell ID=buyer.postal></GX><BR></GX>
    </GX><GX VISIBLE=false> <!-- end of buyer tile --> </GX>"
    After many searches on the web, I can't find out if it's a HTML or GXML template, or if it has to do with JSP (is it a .jsp web page?)
    Thanks in advance!

    Thanks very much both of you for your prompt help!
    I had already found this link but now with your explanations, it seems a bit clearer now...
    After another search, it seems that this file is a HTML or GXML template to be rendered by a template engine (I've read that GXML templates only contain GX tags like my file) . Does it sound familiar to you?
    I need now to know which extension would have this file it is were like I believe a HTML or GXML template? Will it have simply a .html or .gxml suffix?
    Many thanks in advance!

  • Urgent help! question about list.toStirng()?

    currently, i am working on a word counter programe, i stored each word and it's corresponding occurrence in a linkedlist. now i need to sort the list in the decreasing order of occurrence.
    and the output would look like this:
    not 2
    a 2
    i 1
    am 1
    girl 1
    yet 1
    woman 1
    but the output so far i got looks like the following:
    [not   2, a   2, i   1, am   1, girl   1, yet   1, woman   1]
    and i know it becasue i uesed the "list.toString()"method. the question is how can i convert this format to the previous one or i could reach it in someway else?would anyone give me some tips?
    the following code is i used for sorting:
    public String results() //Compare the occurrences of  every two words in the list and reorder each node of
      {                       //the list in decreasing order of it's corresponding occurrence
           String str = "";
           ListIterator iter = list.listIterator();
           int length = list.size();
           int i,j;
           int count1, count2;
           WordNode temp1, temp2;
          for(i = 0; i < length-1; i++)
                for(j = i + 1; j<length; j++)
                   temp1 = (WordNode)list.get(i);
                   temp2 = (WordNode)list.get(j);
                   count1 = temp1.getCount();
                   count2 = temp2.getCount();
                   if(count1 < count2)
                        list.remove(i);
                        list.add(i,temp2);
                        list.remove(j);
                        list.add(j,temp1);
          str = list.toString(); //Call the toSting() method in WordNode class to get each word and it's occurrence
          return str;
      }much appreciated.

    Hi there,
    The problem you have here is that you are not separating the distinct phases of your program. These are:
    - build the sorted list
    - print report
    Thus, if I had to write the code below, I would change your results by two methods:
    List sortedResult = sortWords();
    printReport(sortedResult);
    My sortWords() would be your results(), except that I would return list at the end, not list.toString().
    Then, I would have all the flexibility in the world inside my printReport( List ) method. As a start, it would probably look like this:
    public void printReport(List aList) {
      Iterator iter = list.iterator();
      while(iter.hasNext()) {
        System.out.println(iter.next());
    }Regards,
    Manuel Amago.

  • Could someone help with question about PNG export from Illustrator?

    I am having issues with PNG exports from Illustrator not opening up once exported.

    ANd exactly sorry, this is useless. You have not provided any details about your export settings, version of AI, system info, how you are trying to view and so on. Just saying that it doesn't work is simply not good enough.
    Mylenium

  • HELP! Question about "Locking" ipod

    I am an elementary teacher that is trying to get ipods integrated into the school curriculum, school administrators have expressed concerns about students putting inappropriate content onto the ipods, is it possible to "lock" unauthorized editing on an ipod, possibly password protection, or only allowing it to be updated on one cpu?

    No, it's not possible to do what you want.
    There is a screen lock that locks the iPod so another user can't use it without a code being entered, but this would lock the whole iPod.
    There's no way to selectively lock specific content, either adding it or viewing it.

  • Pls help - Syntax question about EJB QL

    Hello,
    I'm new learner on EJB. I went through the specification 2.0 of EJB QL released by Sun, I'm not quite understand the syntax definition of SELECT clause in finder method which described in the following words:
    "In the case of a find method, the SELECT clause is restricted to contain either a single range variable or a single value path expression that evaluates to the abstract schema type of the entity bean for which the finder method is defined.
    Because finder method cannot return arbitrary types, the SELECT clause of an EJB QL defined for a finder method must always correspond to the abstract shcema type fo the entity bean for which the finder method is defined.In contrast, the SELECT clause of a query defined for a select method can return the abstract schema types of other entity beans or the values of cmp-fields."
    As my understanding, I think the SELECT clause of finder method can only contain a single range variable instead of single value path expresson, it should have only one format, which is "SELECT [DISTINCT] OBJECT(identification_variable)".
    For example: the query below is defined in OrderBean findByProductType();
    SELECT OBJECT(o) FROM Order o, IN(o.lineItems) l
    WHERE l.product.product_type = 'schoolsupplies'
    how it could be a single value path expression , I think this format can only be used in Select method.
    The other thing is EJB QL2.0 does not support subquery and "NOT EXIST" clause, does this mean that a SQL query with subquery or "NOT EXIST" clause can't be translated to EJB QL?
    I don't know if I'm correct or not. I'd appreciate if anybody can help me with this.
    Thanks!
    Maggie

    Hi,
    Weblogic
    =======
    In the Weblogic-cmp-rdbms-jar.xml file, we define the Table name as created in the DBMS along with cmp-field mapped to the dbms-columns of the table as described below
    <table-map>
    <table-name>SalesAccounts</table-name>
    <field-map>
    <cmp-field>salesaccountId</cmp-field>
    <dbms-column>sales_acctid</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>salesbalance</cmp-field>
    <dbms-column>sales_bal</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>salesaccountType</cmp-field>
    <dbms-column>sales_type</dbms-column>
    </field-map>
    </table-map>
    Here SalesAccounts is the actual table defined in DBMSD like Oracle say which has columns sales_acctid, sales_bal and sales_type.
    In ejb-jar.xml, you define an abstract schema name ie some sort of alias for your table name (SalesAccounts) along with defining the cmp fields required for writing a EJB-QL.
    <abstract-schema-name>SalesAccountBean</abstract-schema-name>
    <cmp-field><field-name>salesaccountId</field-name>
    </cmp-field>
    <cmp-field><field-name>salesbalance</field-name>
    </cmp-field>
    <cmp-field><field-name>salesaccountType</field-name>
    </cmp-field>
    <primkey-field>salesaccountId</primkey-field>
    Here salesaccountid is defined as a Primary key.
    Now your EJB-QL can be defined in the ejb-jar.xml file as follows
    <query>
    <query-method>
    <method-name>findSalesAccountsCondition</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
         <![CDATA[SELECT OBJECT(a) FROM SalesAccountBean AS a WHERE a.salesbalance > ?1]]>
    </ejb-ql>
    </query>
    This should clear ur doubts. Case u have any, revert back to me.
    Rgds,
    Seetesh

  • Help:A question about stack

    Hi, I met a weird problem,
    try {
    Stack stack=new Stack();
    stack.push(a);
    stack.push(b); //a,b are Objects
    while(stack.peek() instanceOf Objects)
    stack.pop;
    System.out.println("Done")
    }catch(Exception e) {
    System.out.println("Error");
    It could be worked, however, I always got the error message, which is so weird.
    Can anyboy tell me the reason? Thanks a lot!
    Iris

    Try the following program:
    import java.util.Stack;
    public class StackTry
         public static void main(String args[])
              try
                   Stack stack=new Stack();
                   Integer a  = new Integer(10), b = new Integer(11);
                   stack.push(a);
                   stack.push(b); //a,b are Objects
                   while(stack.peek() instanceof Object)
                        System.out.println(stack.pop());
                   System.out.println("Done");
              }catch(Exception e)
                   e.printStackTrace();
                   System.out.println("Error");
    }The problem is when u are doing stack.peek()
    After all the elements in stack are poped, stack.peek() is done in the while loop which causes exception to occur. Hence the Error message.
    Put a condition to check whether the stack is empty before peeking into the stack.
    This should help, i guess.
    Manish.

  • Help, a question about transaction...

    sorry for my english:(
    my application env:
    kodo 3.2.3 / Oracle 9i /JBoss 3.2.5
    Application logic is written in EJB(CMP) and Stored procedure. they must
    be finished in a transaction :
    ejb business method begin....
    get PM;
    do kodo database operate ....;
    get Connection from PM;
    get stored procedure from connection;
    (1) execute stored procedure;
    close stored procedure;
    close connection;
    close PM
    ejb biz method finished.
    It's a so simple function .
    My question is:
    when I reach (1) line, the new data that generated by stored procedure
    has committed to database!! ----Why! The Connection gotten from PM is out
    of the Transaction??? In fact, I can't rollback the modification made by
    stored procedure when exceptions occurred:(
    What can I do ?

    Are you using managed datasource? Are you using pessimistic or
    optimistic transactions?
    In the first case, Kodo will defer to the managed datasource so if your
    transaction is not rolled back, the stored procedure will run through.
    If using optimistic transactions, you should trigger some other
    transactional change so that Kodo will know to start a datastore
    transaction. Otherwise, depending on how your stored procedure is
    written, it may change the datastore.
    Kodo 4.0 includes a KodoPersistenceManager.beginStore () to ensure that
    the connection is transactional.
    yan wrote:
    sorry for my english:(
    my application env:
    kodo 3.2.3 / Oracle 9i /JBoss 3.2.5
    Application logic is written in EJB(CMP) and Stored procedure. they must
    be finished in a transaction :
    ejb business method begin....
    get PM;
    do kodo database operate ....;
    get Connection from PM;
    get stored procedure from connection;
    (1) execute stored procedure;
    close stored procedure;
    close connection;
    close PM
    ejb biz method finished.
    It's a so simple function .
    My question is:
    when I reach (1) line, the new data that generated by stored procedure
    has committed to database!! ----Why! The Connection gotten from PM is out
    of the Transaction??? In fact, I can't rollback the modification made by
    stored procedure when exceptions occurred:(
    What can I do ?
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

  • Help with questions about upgrading iLife'08 onto an older PowerBook G4

    I am seeking help/advice for a very low tech guy. I upgraded my PowerBook G4 (ancient I know but I have trouble with our thow away society), to Leopard 10.5.2. However, my iDVD no longer works. I plan on upgrading to iLife'08, but based on the system requirements, I am not certain all of the features (i.e. iMovie'08) will work on my older processor. Before I upgrade to iLife, can anyone tell me if I should do it and if they will work on my all the features will work on my PowerBook G4?

    You can upgrade to iLife 08. All the apps should install except iMovie.
    However, if you have iMovie 06, it will still work. And if you don't have iMovie 06, you can get it as a free download on the iMovie 08 Support Page.

Maybe you are looking for

  • Cant upload large files to Sharepoint site through S-160 proxy

    Hi, I've got the following setup in our Windows AD infrastructure. Client admin websites hosted in our dmz, whose url is accessed via an externally hosted DNS reference. I've built up an Ironport S-160 to replace a defrunct Bluecoat and have trouble

  • HT1904 My iBooks say failed to load book because requested resource is missing? ?

    I purchased three books that won't let me have access. Give me an error message that says "failed to load book because requested resource is missing. How do I resolve this problem?

  • EXECUTE permission denied

    hi  Im getting  the following error when querying  a database :    <b> Error when executing statement for table/stored proc. 'procedure name' (structure 'Select'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]EXECUTE p

  • To write data into TDMS at a interval time

     Hi, I am developing sensors (mass flow controller, thermocouple etc) and uses DAQ to read the data. Then I write the data into TDMS format. The problem is I need to read the data at 1sec interval but write the data into TDMS format in 10sec interval

  • ITtunes won't delete music

    I decided I didn't want a few of my songs but when I delete them from iTunes, they won't erase from my iPod! I don't know what to do!