×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    21

    Question [eSWT] Problem about scrolling composite

    I found an implementation of ScrolledComposite in this page
    http://dev.eclipse.org/viewcvs/index...va?view=markup

    but I found that the scroll bars are not able to be scrolled
    It cannot be focused and dragged even I use the code attached in javadoc.

    How to solve or are there any methods that can scroll the composite?
    Thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: [eSWT] Problem about scrolling composite

    Hello nwoedf,

    which Nokia device or SDK emulator do you use for testing this example?


    Please note that ScrolledComposite has been enabled only recently starting from Java Runtime for Symbian 2.1:

    Java Developer's Library 3.5 > Implementation notes > eSWT API > Changes between releases

    Also, you might want to check related topics available on Forum Nokia Java Developer's Library for Java developers targetting Nokia platforms:

    Regarding ScrolledComposite: Java Developer's Library 3.5 > Developer's Guides > UI and graphics > eSWT > Using eSWT > ScrolledComposite

    -Developer's Guides: Java Developer's Library 3.5 > Developer's Guides > UI and graphics > eSWT

    -Implementation Notes: Java Developer's Library 3.5 > Implementation notes > eSWT API


    -Examples:

    Java Developer's Library 3.5 > Source codes for examples > eSWT Showcase

    Java Developer's Library 3.5 > Source codes for examples > eSWT - MovieBooking


    Regards,
    r2j7
    Last edited by r2j7; 2010-05-15 at 16:09.
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    21

    Re: [eSWT] Problem about scrolling composite

    Quote Originally Posted by r2j7 View Post
    Hello nwoedf,

    which Nokia device or SDK emulator do you use for testing this example?


    Please note that ScrolledComposite has been enabled only recently starting from Java Runtime for Symbian 2.1:
    I am using 5800 with Java Runtime 2.1
    I just copy the code I mentioned above and a layout class for this.
    The height of the scroll bar is correct but it cannot be scrolled.

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: [eSWT] Problem about scrolling composite

    Hello nwoedf,

    thanks for the clarification on the device information.

    In case of an established bug, I think it would be good to notify the RnD team of Java Runtime for Symbian on this. The RnD team can be interfaced via Nokia Beta Labs:

    http://betalabs.nokia.com/apps/java-...bian/bugreport

    Other related Nokia Beta Lab forums (forums for discussions / suggestions):

    http://betalabs.nokia.com/apps/java-...ian/discussion

    http://betalabs.nokia.com/apps/java-...ian/suggestion


    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  5. #5
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    Hi,

    So in order to summary :
    > the ScrolledComposite is not included into the Java runtime except for the last 2.1;
    > this component must be used to scroll some components in a Shell for simple controls (button, label) as well as List, ListBox, Table and anothers components;
    > there is perhaps a bug when the original source code of the SWT ScrolledComposite, ScrolledCompositeLayout is used on Nokia device (with runtime minor than 2.1).

    Is someone has tested the Java Runtime 2.1 on a 5800 XpressMusic with a firmware V31.0.101 (my operator don't give access to newer firmware) ? This runtime is said to be compatible only with higher firmware...

    Thanks
    Last edited by frasene; 2010-08-10 at 13:30.

  6. #6
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    With the last runtime for Nokia 5800 (v51) and using the source codes of ScrolledComposite and ScrolledCompositeLayout of SWT, the problem is always here... I have a shell S with a scrolled composite SC and a composite C. The scrollers are displayed but the controls of the composite C are not displayed as if they have a zero size...

    So a size has to be defined to C...

    The size can be calculated with the computeSize method of the composite C. The computed size has to been set to the composite with the setSize method...

    You can use the getClientArea method of SC combined with the computeSize method of C to set the best size to C.

    You can set the size to C which is the maximum between the client area of SC and the compute size of C for instance (if you want to use the two scrollbars)...

    The size must been defined at each time C is modified (like after adding or removing controls) and at each time the screen orientation changed...

    With RDA, this method is OK on 5800, X6, 5250, C6 and N97 mini...

    If someone knows a best method I will be pleased to know it...

    Thanks
    Last edited by frasene; 2010-09-24 at 07:11.

  7. #7
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    Hi, is someone can explain me how to compile a jar file with ScrolledComposite on Symbian 3 (0.9) without copying the source code of ScrolledComposite from SWT ? This code is said to be included in the java runtime 2.1 of Symbian 3 but not seem to be known on the Symbian SDK 3 v0.9 ? I think the ScrolledComposite is a very important component so the use of this component must be explained... Thanks

  8. #8
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    Hi,

    Nobody work with eSWT and ScrolledComposite ?

    I know that QML is a good solution but eSWT is easy to use... It will be more easy to use if the ScrolledComposite was included by default on SDK and runtime... A user interface with component scroll is very important...

    Nobody can make a point on the ScrolledComposite ? Perhaps r2j7 ?

    Thanks

  9. #9
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    I go on with ScrolledComposite...

    I have taken the ScrolleComposite and ScrolledCompositeLayout sources of org\eclipse\swt\custom.

    I have a ScrolledComposite "sc" in a shell and a composite "ctr" associated with setContent method...

    To define the ScrolledComposite :

    sc.setAlwaysShowScrollBars(false);
    sc.setExpandHorizontal(true);
    sc.setExpandVertical(true);

    To define the size of the ScrolledComposite :

    Point size = ctr.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    sc.setMinSize(size);
    ctr.layout();

    So it runs very well on 5ed (Nokia 5800) : the components of "ctr" are resized all in the same time.

    But with the N8 (Symbian^3) it runs but perfectly : the components of "ctr" are correctly resized but not in the same time : the user has the time to see each component to be resized...

    It seems to be the same thing with the double-buffered for a canvas : with double-buffered, the screen is displayed when all the drawing operations are finished; with not double-buffered, the display is not perfect...

    If you see what I mean, do you know this problem ?

    Thanks

  10. #10
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    This problem seems to be resolved with Symbian Anna (tested on RDA with E6 phone)...

  11. #11
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    I confirm this problem is resolved in Symbian Anna on a right N8.

  12. #12
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    Hi,

    I try my program on Symbian Belle (RDA) and there is no problem with the scrolled composite... But... The canvas widget seems to have a problem of performance or another because with a program which runs well (for the eSWT canvas widget) on Symbian 5ed, Symbian^3 and Symbian Anna, it no runs well on Belle : the canvas is not displayed or displayed very lately (more than 15 seconds)...

    I drew my picture (guitar or piano) into an image and then write the image into the canvas...

    Is someone has encountered the problem ?

    Thanks

  13. #13
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: [eSWT] Problem about scrolling composite

    Hello frasene,

    this sounds like an unexpected performance problem which would need to be examined more in detail.

    Could you go here and submit a bug report (by pressing 'Select Java' on the page) so that issue can be examined by Nokia please?: http://www.developer.nokia.com/bugs/enter_bug.cgi

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  14. #14
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: [eSWT] Problem about scrolling composite

    Hi, I submit the bug... Thanks

  15. #15
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: [eSWT] Problem about scrolling composite

    Thank you frasene.

    Nokia Developer will examine the bug report and communicate about the follow-up actions in near future.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. 编译Qt样例出错,请看如下
    By TD3 in forum [Archived] Qt General ( Qt技术)
    Replies: 14
    Last Post: 2009-12-24, 03:23
  2. CEikEdwin Scrolling Problem
    By sahdev_nitin in forum Symbian
    Replies: 2
    Last Post: 2008-01-30, 09:55
  3. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  5. PJava runtime problem within Nokia 9210, Hrlp~!
    By Nokia_Archive in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-28, 13:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×