Scroll bar....isn't in the JScrollBar...why?

Hey, Ive created a perfect scroll bar, in a swing app, it looks perfect...except in my JScrollBar, there are no bars....why?
Here's my code...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Beginning of Code~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
* Summary description for gui
public class MapEditor extends JFrame
private JScrollPane jScrollPane1;
private JScrollPane jScrollPane3;
private JButton jButton2;
private JButton jButton3;
private JButton jButton6;
private JButton jButton7;
private JButton jButton8;
private JButton jButton9;
private JButton jButton10;
private JButton jButton11;
private JButton jButton12;
private JPanel contentPane;
// TODO: Add any attribute code to meet your needs here
public MapEditor()
     super();
     initializeComponent();
     // TODO: Add any constructor code after InitializeComponent call
     this.setVisible(true);
private void initializeComponent()
     jScrollPane1 = new JScrollPane();
     jScrollPane3 = new JScrollPane();
     jButton2 = new JButton();
     jButton3 = new JButton();
     jButton6 = new JButton();
     jButton7 = new JButton();
     jButton8 = new JButton();
     jButton9 = new JButton();
     jButton10 = new JButton();
     jButton11 = new JButton();
     jButton12 = new JButton();
     contentPane = (JPanel)this.getContentPane();
     // jScrollPane1
     // jScrollPane3
     // jButton2
     jButton2.setText("Rock");
     jButton2.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton2_actionPerformed(e);
     // jButton3
     jButton3.setText("Grass");
     jButton3.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton3_actionPerformed(e);
     // jButton6
     jButton6.setText("Grass2");
     jButton6.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton6_actionPerformed(e);
     // jButton7
     jButton7.setText("Water 1");
     jButton7.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton7_actionPerformed(e);
     // jButton8
     jButton8.setText("Path");
     jButton8.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton8_actionPerformed(e);
     // jButton9
     jButton9.setText("Water 3");
     jButton9.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton9_actionPerformed(e);
     // jButton10
     jButton10.setText("Dirt");
     jButton10.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton10_actionPerformed(e);
     // jButton11
     jButton11.setText("Snow");
     jButton11.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton11_actionPerformed(e);
     // jButton12
     jButton12.setText("Water 2");
     jButton12.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e)
               jButton12_actionPerformed(e);
     // contentPane
     contentPane.setLayout(null);
     addComponent(contentPane, jScrollPane1, 0,0,476,408);
     addComponent(contentPane, jScrollPane3, 476,86,248,290);
     addComponent(contentPane, jButton2, 476,1,83,28);
     addComponent(contentPane, jButton3, 559,1,83,28);
     addComponent(contentPane, jButton6, 643,1,83,28);
     addComponent(contentPane, jButton7, 476,30,83,28);
     addComponent(contentPane, jButton8, 476,58,83,28);
     addComponent(contentPane, jButton9, 643,30,83,28);
     addComponent(contentPane, jButton10, 643,58,83,28);
     addComponent(contentPane, jButton11, 559,58,83,28);
     addComponent(contentPane, jButton12, 560,30,83,28);
     // gui
     this.setTitle("gui - extends JFrame");
     this.setLocation(new Point(0, 0));
     this.setSize(new Dimension(729, 627));
/** Add Component Without a Layout Manager (Absolute Positioning) */
private void addComponent(Container container,Component c,int x,int y,int width,int height)
     c.setBounds(x,y,width,height);
     container.add(c);
// TODO: Add any appropriate code in the following Event Handling Methods
private void jButton2_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton3_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton6_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton7_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton8_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton9_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton10_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton11_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
private void jButton12_actionPerformed(ActionEvent e)
     // TODO: Add any handling code here
// TODO: Add any method code to meet your needs in the following area
public static void main(String[] args) {
          new MapEditor();
}

Hi,
please use code tag when posting so much code.
It eases a lot reading your code.
Hey, Ive created a perfect scroll bar, in a swing app,
it looks perfect...except in my JScrollBar, there are
no bars....why?basically because there is nothing to scroll and even to view !!
nowhere in your code appears a call to :
jScrollPane1.setViewportView(Component view);
Moreover the scroll bar appearance policy, by default is when needed.
When needed means that if the component prefered size you wish
to view is greater than the one of the JScrollPane, they will appear
otherwise they won't.
So, what would you like to see in you JScrollPane ? the buttons ?
regards,

Similar Messages

  • Why is there a scroll bar though I set the background image to "scale to page size"?"

    Why is there a scroll bar though I set the background image to "scale to page size"?"

    The current build of iTunes may occasionally draw the scroll bar off the edge of the screen. It should be possible to resize the window to reveal the scroll bar.
    You can restore much of the look & feel of the previous version with these shortcuts:
    Ctrl-B to turn on the menu bar.
    Ctrl-S to turn on the sidebar.
    Ctrl-/ to turn on the status bar.
    Click the magnifying glass top right and untick Search Entire Library to restore the previous search behaviour.
    You can also open the menu bar temporarily by pressing Alt.
    tt2

  • How do I keep the scroll bar from disappearing in the Mountain Lion update 10.8.5?

    When I got the prompt yesterday that there was an update for Mountain Lion I went ahead and downloaded it, and it is awful!  The scroll bar on the right side of the screen disappears too quickly now to use it easily, and is difficlut to get back, which adds extra steps (clicking on the down arrow while the cursor is in the scroll area then quickly clicking the arrow cursor while it is in the temporary scroll down bar.  Or else this is from a Firefox update I did NOT actually download, but indications when I started up my computer today are that it did download somehow by itself without my permission, as there was a notice that some of my Mozilla ad-ons might not be compatible with this version of Firefox.  I couldn't understand that since it should have been the same version of Firefox I used yesterday!  I know I didn't download the new Firefox because the pop-up box went away very quickly each time it came up so I never did click on it.  Does anyone know if the change in scrolling is a Firefox update or the OSX 10.8.5 update?  I HATE it and want it off, but don't know which one is the culprit nor how Firefox updated itself without my consent.  Aaaarrrggghhh!

    System Preferences > General > Show scroll bars:
    Make sure that "Always" is selected.
    Best.

  • How can I get the scroll bar to go to the top or bottom of the page with a right click command?

    When I right click on the scroll bar nothing happens. I have to spin the mouse wheel repeatedly to get to the top or bottom of the page. I just switched from explorer. I'm used to being able to do this. It's much less time consuming and frustrating. I hope someone can help. Thanks.

    You can hold down the Shift key and left-click the scroll bar to go to that position.
    If you set the Boolean pref <b>middlemouse.scrollbarPosition</b> to "<i>true</i>" (default on Linux) on the <b>about:config</b> page then you can middle-click the scroll bar to go to that position.
    *http://kb.mozillazine.org/middlemouse.scrollbarPosition
    *http://kb.mozillazine.org/ui.scrollToClick

  • The scroll bar stops moving with the cursor after the frist inch or so down the page, even though the cursor keeps moving as does the page itself.

    This problem started about 4-5 days ago.
    After i scroll down a bit on a longer page, the scroll bar is still near (not at) the top. The page is scrolling at that point based only on me continuing to move the cursor in the scroll bar vertical column - even though not in line with the actual scroll bar itself. Then when I put the cursor on the actual scroll bar the page jumps back up to near the top of the page.
    Thanks for any help.

    Are you using code in userContent.css or Stylish?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    Firefox Safe mode also disables the customizations in the userChrome.css and userContent.css files.
    See also:
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=787465 bug 787465] - scrollbars don't update sometimes

  • How to identify the presence of scroll bars in browser from the plug-in

    I am developing a plug-in for the type application/x-shockwave-flash. In windowless mode, firefox window client area shared by all the plug-ins. Since plug-in runs in plugincontainer.exe, and DC is passed from firefox.exe, i couldn't the any api or the way to query the firefox for the presence of scrolling bars.
    Could you please tell me the way to identify the presence of scrolling bars in the browser from the plug-in?

    Go to DB02 --> Additional functions --> BW analysis , you will see rows (in pink) highlighted for cubes , dsos and PSA.
    For cubes click on highlighted row for cube and put filter *cube name * , it will shows all related tables with the space . Space occupied by different tables of the cube can be summed up to get total value .
    Similarly for DSO and PSAs.
    You may download this information on an excel and then put descending order on space column to get cubes occupying max space .
    Also look for table RSDODSO (directory for all DSOs) and RSDCUBE ( directory for all cubes) , i suppose you will get space information there as well.

  • How do I reposition image scroller bar from middle to the right

    I am customising an image thumb scroller. and trying to follow up previously developed code.
    All worked fine until the last moment when thumbnails bar is positioned as if its starting point is in the middle of the screen. I suppose it was developed for the flash screen layout with centered coordinates. My stage probably has them set to the upper left corner.
    I can not make the bar move.
    My stage size is 1024 x 768
    Where do I do my math in the code so the thumbnails will be located in the middle of the screen rather than in its right hand.
    Here are the code snippets responsible for the thumbnails build up:
      const _THUMB_WIDTH:Number = 50;
      const _THUMB_HEIGHT:Number = 64;
      const _IMAGE_WIDTH:Number = 860;//550;original #
      const _IMAGE_HEIGHT:Number = 500;//355;original #
      const _THUMB_GAP:Number = 2;
      const _SCROLL_SPEED:Number = 12;
      const _SCROLL_AREA:Number = 150;
    var _progressBar:MovieClip;
    var _arrowLeft:MovieClip;
    var _arrowRight:MovieClip;
    var _slides:Array;
    var _curSlide:Slide; //Slide that is currently displaying
    var _loadingSlide:Slide; //only used when a Slide is supposed to show but hasn't been fully loaded yet (like if the user clicks "next" many times before all the images have loaded). We keep track of the one that's in the process of loading and should be shown as soon as it finishes, then we set _loadingSlide back to null.
    var _imagesContainer:Sprite; //the Sprite into which the full-size images are placed (this helps manage the stacking order so that the images can always be behind everything else and yet we can addChild() each image so that it shows up on top of the previous one)
    var _thumbnailsContainer:Sprite; //the Sprite into which the thumbnail images are placed. This also allows us to slide them all at the same time.
    var _destScrollX:Number = 0; //destination x value for the _thumbnailsContainer which is used for scrolling it across the bottom. We don't want to use _thumbnailsContainer.x because it could be in the process of tweening, so we keep track of the end/destination value and add/subtract from it when creating our tweens.
    var _minScrollX:Number; //we know the maximum x value for _thumbnailsContainer is 0, but the mimimum value will depend on how many thumbnail images it contains (the total width). We calculate it in the _setupThumbnails() method and store it here for easier/faster scrolling calculations in the _enterFrameHandler()
    _thumbnailsContainer = new Sprite();
    addChild(_thumbnailsContainer);
    //_thumbnailsContainer.x = -550;//moves x position of thumbnails, instead done in line 273 thumbnail.x = curX - 590;
    _thumbnailsContainer.y = _IMAGE_HEIGHT;//moves y position of thumbnails
    _thumbnailsContainer.alpha = 0; //we want alpha 0 initially because we'll fade it in later when the thumbnails load.
    _thumbnailsContainer.visible = false; //ensures nothing is clickable.
    var xmlLoader:XMLLoader = new XMLLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/data.xml", {onComplete:_xmlCompleteHandler});
    xmlLoader.load();
    function _xmlCompleteHandler(event:LoaderEvent):void {
    _slides = [];
    var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
    var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
    //loop through each <image /> node and create a Slide object for each.
    for each (var image:XML in imageList) {
    _slides.push( new Slide(image.@name,
    image.@description,
    new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
    name:image.@name + "Thumb",
    width:_THUMB_WIDTH,
    height:_THUMB_HEIGHT,
    //centerRegistration:true,
    //x:260, y:320,//doesn't work here but works in line 69
    scaleMode:"proportionalInside",
    bgColor:0x000000,
    estimatedBytes:13000,
    onFail:_imageFailHandler}),
    //loops through all the thumbnail images and places them in the proper order across the bottom of the screen and adds CLICK_THUMBNAIL listeners.
    function _setupThumbnails():void {
    var l:int = _slides.length;
    var curX:Number = _THUMB_GAP;
    for (var i:int = 0; i < l; i++) {
    var thumbnail:Sprite = _slides[i].thumbnail;
    _thumbnailsContainer.addChild(thumbnail);
    TweenLite.to(thumbnail, 0, {colorTransform:{brightness:0.5}});
    _slides[i].addEventListener(Slide.CLICK_THUMBNAIL, _clickThumbnailHandler, false, 0, true);
    thumbnail.x = curX;
    thumbnail.y = -234;//defines y position of the thumbnails row
    curX += _THUMB_WIDTH + _THUMB_GAP;
    _minScrollX = _IMAGE_WIDTH - curX;
    if (_minScrollX > 0) {
    _minScrollX = 0;
    function _enterFrameHandler(event:Event):void {
    if (_thumbnailsContainer.hitTestPoint(this.stage.mouseX, this.stage.mouseY, false)) {
    if (this.mouseX < _SCROLL_AREA) {
    _destScrollX += ((_SCROLL_AREA - this.mouseX) / _SCROLL_AREA) * _SCROLL_SPEED;
    if (_destScrollX > 0) {  //this number is 1/2 the stage size, previously was at 0 it defines the left position of the thumbnails scroll end, has to be indentical to the number below
    _destScrollX = 0;    //this number is 1/2 the stage size, previously was at 0 it defines the left position of the thumbnails scroll end, has to be indentical to the number above
    TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});
    } else if (this.mouseX > _IMAGE_WIDTH - _SCROLL_AREA) {
    _destScrollX -= ((this.mouseX - (_IMAGE_WIDTH - _SCROLL_AREA)) / _SCROLL_AREA) * _SCROLL_SPEED;
    if (_destScrollX < _minScrollX) {
    _destScrollX = _minScrollX;
    TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});

    Hi, thanks for taking a look at my problem.
    I assume that the code was difficult to read due to an unusual line brakes, which somehow I got when pasting on this site.
    Please take a look I am pasting the code anew in it entirety:
    (please let me know if you would like me to separate the areas which I believe give me troubles to address my previously describe problem:
    All worked fine until the last moment when thumbnails bar is positioned as if its starting point is in the middle of the screen. I suppose it was developed for the flash screen layout with centered coordinates. My stage probably has them set to the upper left corner.
    I can not make the bar move.
    My stage size is 1024 x 768
    Where do I do my math in the code so the thumbnails will be located in the middle of the screen rather than in its right hand.)
    (Also wanted to mention that there an external file Slide.as which is not responsible for the construction and positioning of the thumbnails)
              import com.greensock.*;
              import com.greensock.loading.*;
              //import com.greensock.events.LoaderEvent;
              import com.greensock.loading.display.*;
              //import com.greensock.TweenLite;
              import com.greensock.events.LoaderEvent;
              //import com.greensock.loading.ImageLoader;
              //import com.greensock.loading.SWFLoader;
              //import com.greensock.loading.LoaderMax;
              //import com.greensock.loading.XMLLoader;
              import com.greensock.plugins.AutoAlphaPlugin;
              import com.greensock.plugins.ColorTransformPlugin;
              import com.greensock.plugins.GlowFilterPlugin;
              import com.greensock.plugins.BlurFilterPlugin;//i added this filter to blur the progressBar
              import com.greensock.plugins.TweenPlugin;
              import flash.display.MovieClip;
              import flash.display.Sprite;
              import flash.events.Event;
              import flash.events.MouseEvent;
              //public class SlideshowExample extends MovieClip {
                          const _THUMB_WIDTH:Number = 50;
                          const _THUMB_HEIGHT:Number = 64;
                          const _IMAGE_WIDTH:Number = 860;//550;original #
                          const _IMAGE_HEIGHT:Number = 500;//355;original #
                          const _THUMB_GAP:Number = 2;
                          const _SCROLL_SPEED:Number = 12;
                          const _SCROLL_AREA:Number = 150;
                         var _progressBar:MovieClip;
                         var _arrowLeft:MovieClip;
                         var _arrowRight:MovieClip;
                         var _slides:Array;
                         var _curSlide:Slide; //Slide that is currently displaying
                         var _loadingSlide:Slide; //only used when a Slide is supposed to show but hasn't been fully loaded yet (like if the user clicks "next" many times before all the images have loaded). We keep track of the one that's in the process of loading and should be shown as soon as it finishes, then we set _loadingSlide back to null.
                         var _imagesContainer:Sprite; //the Sprite into which the full-size images are placed (this helps manage the stacking order so that the images can always be behind everything else and yet we can addChild() each image so that it shows up on top of the previous one)
                         var _thumbnailsContainer:Sprite; //the Sprite into which the thumbnail images are placed. This also allows us to slide them all at the same time.
                         var _destScrollX:Number = 0; //destination x value for the _thumbnailsContainer which is used for scrolling it across the bottom. We don't want to use _thumbnailsContainer.x because it could be in the process of tweening, so we keep track of the end/destination value and add/subtract from it when creating our tweens.
                         var _minScrollX:Number; //we know the maximum x value for _thumbnailsContainer is 0, but the mimimum value will depend on how many thumbnail images it contains (the total width). We calculate it in the _setupThumbnails() method and store it here for easier/faster scrolling calculations in the _enterFrameHandler()
                         //function SlideshowExample() {
                                  //super();
                                  //activate the plugins that we'll be using so that TweenLite can tween special properties like filters, colorTransform, and do autoAlpha fades.
                                  TweenPlugin.activate([AutoAlphaPlugin, ColorTransformPlugin, GlowFilterPlugin, BlurFilterPlugin]);//i added BlurFilterPlugin at the end
                                  _progressBar = this.getChildByName("progress_mc") as MovieClip;
                                  _arrowLeft = this.getChildByName("arrowLeft_mc") as MovieClip;
                                  _arrowRight = this.getChildByName("arrowRight_mc") as MovieClip;
                                  //////////my additions to make progress bay blurry
                                  TweenLite.to(progress_mc.progressBar_mc.gradientbar_appLoader_mcPopUp_mc, 0, {blurFilter:{blurX:21, blurY:8}});//i added this line to make ProgressBar_mc to blur
                                  TweenLite.to(progress_mc.rectangleGray, 0, {blurFilter:{blurX:21, blurY:8}});//i added this line to make ProgressBar_mc to blur
                                  _arrowLeft.visible = _arrowRight.visible = false;
                                  _imagesContainer = new Sprite();
                                  this.addChildAt(_imagesContainer, 0);
                                  _thumbnailsContainer = new Sprite();
                                  addChild(_thumbnailsContainer);
                                  //_thumbnailsContainer.x = -550;//moves x position of thumbnails, instead done in line 273 thumbnail.x = curX - 590;
                                  _thumbnailsContainer.y = _IMAGE_HEIGHT;//moves y position of thumbnails
                                  _thumbnailsContainer.alpha = 0; //we want alpha 0 initially because we'll fade it in later when the thumbnails load.
                                  _thumbnailsContainer.visible = false; //ensures nothing is clickable.
                                  var xmlLoader:XMLLoader = new XMLLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/data.xml", {onComplete:_xmlCompleteHandler});
                                  xmlLoader.load();
                         function _xmlCompleteHandler(event:LoaderEvent):void {
                                  _slides = [];
                                  var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
                                  var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
                                  //loop through each <image /> node and create a Slide object for each.
                                  for each (var image:XML in imageList) {
                                            _slides.push( new Slide(image.@name,
                                                                                                        image.@description,
                                                                                                        new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                                                                                                                                                          name:image.@na me + "Thumb",
                                                                                                                                                          width:_THUMB_W IDTH,
                                                                                                                                                          height:_THUMB_ HEIGHT,
                                                                                                                                                          //centerRegist ration:true,
                                                                                                                                                          //x:260, y:320,//doesn't work here but works in line 69
                                                                                                                                                          scaleMode:"pro portionalInside",
                                                                                                                                                          bgColor:0x0000 00,
                                                                                                                                                          estimatedBytes :13000,
                                                                                                                                                          onFail:_imageF ailHandler}),
                                                                                                        new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                                                                                                                                                  name:image.@name + "Image",
                                                                                                                                                  width:_IMAGE_WIDTH,
                                                                                                                                                  height:_IMAGE_HEIGHT,
                                                                                                                                                  //centerRegistration:true,
                                                                                                                                                  x:-420, y:-260,
                                                                                                                                                  scaleMode:"proportionalInside",
                                                                                                                                                  bgColor:0x000000,
                                                                                                                                                  estimatedBytes:820000,
                                                                                                                                                  onFail:_imageFailHandler})
                                  //now create a LoaderMax queue and populate it with all the thumbnail ImageLoaders as well as the very first full-size ImageLoader. We don't want to show anything until the thumbnails are done loading as well as the first full-size one. After that, we'll create another LoaderMax queue containing the rest of the full-size images that will load silently in the background.
                                  var initialLoadQueue:LoaderMax = new LoaderMax({onComplete:_initialLoadComplete, onProgress:_progressHandler});
                                  for (var i:int = 0; i < _slides.length; i++) {
                                            initialLoadQueue.append( _slides[i].thumbnailLoader );
                                  initialLoadQueue.append(_slides[0].imageLoader); //make sure the very first full-sized image is loaded initially too.
                                  initialLoadQueue.load();
                                  _setupThumbnails();
                         function _initialLoadComplete(event:LoaderEvent):void {
                                  //now that the initial load is complete, fade out the progressBar. autoAlpha will automatically set visible to false once alpha hits 0.
                                  TweenLite.to(_progressBar, 0.5, {autoAlpha:0});
                                  //fade in the thumbnails container
                                  TweenLite.to(_thumbnailsContainer, 1, {autoAlpha:1});
                                  _setupArrows();
                                  //setup the ENTER_FRAME listeners that controls the thumbnail scrolling behavior at the bottom
                                  this.stage.addEventListener(Event.ENTER_FRAME, _enterFrameHandler, false, 0, true);
                                  //now put all the remaining images into a LoaderMax queue that will load them one-at-a-time in the background in the proper order. This can greatly improve the user's experience compared to loading them on demand which forces the user to wait while the next image loads.
                                  var imagesQueue:LoaderMax = new LoaderMax({maxConnections:1});
                                  for (var i:int = 1; i < _slides.length; i++) {
                                            imagesQueue.append( _slides[i].imageLoader );
                                  imagesQueue.load();
                                  //now start the slideshow
                                  _showNext(null);
                        //loops through all the thumbnail images and places them in the proper order across the bottom of the screen and adds CLICK_THUMBNAIL listeners.
                         function _setupThumbnails():void {
                                  var l:int = _slides.length;
                                  var curX:Number = _THUMB_GAP;
                                  for (var i:int = 0; i < l; i++) {
                                            var thumbnail:Sprite = _slides[i].thumbnail;
                                            _thumbnailsContainer.addChild(thumbnail);
                                            TweenLite.to(thumbnail, 0, {colorTransform:{brightness:0.5}});
                                            _slides[i].addEventListener(Slide.CLICK_THUMBNAIL, _clickThumbnailHandler, false, 0, true);
                                            thumbnail.x = curX;
                                            thumbnail.y = -234;//defines y position of the thumbnails row
                                            curX += _THUMB_WIDTH + _THUMB_GAP;
                                  _minScrollX = _IMAGE_WIDTH - curX;
                                  if (_minScrollX > 0) {
                                            _minScrollX = 0;
                         function _setupArrows():void {
                                  _arrowLeft.alpha = _arrowRight.alpha = 0;
                                  _arrowLeft.visible = _arrowRight.visible = true;
                                  _arrowLeft.addEventListener(MouseEvent.ROLL_OVER, _rollOverArrowHandler, false, 0, true);
                                  _arrowLeft.addEventListener(MouseEvent.ROLL_OUT, _rollOutArrowHandler, false, 0, true);
                                  _arrowLeft.addEventListener(MouseEvent.CLICK, _showPrevious, false, 0, true);
                                  _arrowRight.addEventListener(MouseEvent.ROLL_OVER, _rollOverArrowHandler, false, 0, true);
                                  _arrowRight.addEventListener(MouseEvent.ROLL_OUT, _rollOutArrowHandler, false, 0, true);
                                  _arrowRight.addEventListener(MouseEvent.CLICK, _showNext, false, 0, true);
                         function _showNext(event:Event=null):void {
                                  //if there's a _loadingSlide we should assume that the next Slide would be AFTER that one. Otherwise just get the one after the _curSlide.
                                  var next:int = (_loadingSlide != null) ? _slides.indexOf(_loadingSlide) + 1 : _slides.indexOf(_curSlide) + 1;
                                  if (next >= _slides.length) {
                                            next = 0;
                                  _requestSlide(_slides[next]);
                         function _showPrevious(event:Event=null):void {
                                  //if there's a _loadingSlide we should assume that the previous Slide would be BEFORE that one. Otherwise just get the one before the _curSlide.
                                  var prev:int = (_loadingSlide != null) ? _slides.indexOf(_loadingSlide) - 1 : _slides.indexOf(_curSlide) - 1;
                                  if (prev < 0) {
                                            prev = _slides.length - 1;
                                  _requestSlide(_slides[prev]);
                         function _requestSlide(slide:Slide):void {
                                  if (slide == _curSlide) {
                                            return;
                                  //kill the delayed calls to _showNext so that we start over again with a 5-second wait time.
                                  TweenLite.killTweensOf(_showNext);
                                  if (_loadingSlide != null) {
                                            _cancelPrioritizedSlide(); //the user must have skipped to another Slide and didn't want to wait for the one that was loading.
                                  //if the requested Slide's full-sized image hasn't loaded yet, we need to show the progress bar and wait for it to load.
                                  if (slide.imageLoader.progress != 1) {
                                            _prioritizeSlide(slide);
                                            return;
                                  //fade the old Slide and make sure it's not highlighted anymore as the current Slide.
                                  if (_curSlide != null) {
                                            TweenLite.to(_curSlide.image, 0.5, {autoAlpha:0});
                                            _curSlide.setShowingStatus(false);
                                  _curSlide = slide;
                                  _imagesContainer.addChild(_curSlide.image); //ensures the image is at the top of the stacking order inside the _imagesContainer
                                  TweenLite.to(_curSlide.image, 0.5, {autoAlpha:1}); //fade the image in and make sure visible is true.
                                  _curSlide.setShowingStatus(true); //adds an outline to the image indicating that it's the currently showing Slide.
                                  TweenLite.delayedCall(5, _showNext); //create a delayedCall that will call _showNext in 5 seconds.
                         function _prioritizeSlide(slide:Slide):void {
                                  TweenLite.to(_progressBar, 0.5, {autoAlpha:1}); //show the progress bar
                                  _loadingSlide = slide;
                                  _loadingSlide.imageLoader.addEventListener(LoaderEvent.PROGRESS, _progressHandler);
                                  _loadingSlide.imageLoader.addEventListener(LoaderEvent.COMPLETE, _completePrioritizedHandler);
                                  _loadingSlide.imageLoader.prioritize(true); //when the loader is prioritized, it will jump to the top of any LoaderMax queues that it belongs to, so if another loader is in the process of loading in that queue, it will be canceled and this new one will take over which maximizes bandwidth utilization. Once the _loadingSlide is done loading, the LoaderMax queue(s) will continue loading the rest of their images normally.
                         function _cancelPrioritizedSlide():void {
                                  TweenLite.to(_progressBar, 0.5, {autoAlpha:0}); //hide the progress bar
                                  _loadingSlide.imageLoader.removeEventListener(LoaderEvent.PROGRESS, _progressHandler);
                                  _loadingSlide.imageLoader.removeEventListener(LoaderEvent.COMPLETE, _completePrioritizedHandler);
                                  _loadingSlide = null;
                         function _completePrioritizedHandler(event:LoaderEvent):void {
                                  var next:Slide = _loadingSlide; //store it in a local variable first because _cancelPrioritizedSlide() will set _loadingSlide to null.
                                  _cancelPrioritizedSlide();
                                  _requestSlide(next);
                         function _progressHandler(event:LoaderEvent):void {
                                  _progressBar.progressBar_mc.scaleX = event.target.progress;
                         function _clickThumbnailHandler(event:Event):void {
                                  _requestSlide(event.target as Slide);
                         function _rollOverArrowHandler(event:Event):void {
                                  TweenLite.to(event.currentTarget, 0.5, {alpha:1});
                         function _rollOutArrowHandler(event:Event):void {
                                  TweenLite.to(event.currentTarget, 0.5, {alpha:0});
                         function _enterFrameHandler(event:Event):void {
                                  if (_thumbnailsContainer.hitTestPoint(this.stage.mouseX, this.stage.mouseY, false)) {
                                            if (this.mouseX < _SCROLL_AREA) {
                                                      _destScrollX += ((_SCROLL_AREA - this.mouseX) / _SCROLL_AREA) * _SCROLL_SPEED;
                                                      if (_destScrollX > 0) {  //this number is 1/2 the stage size, previously was at 0 it defines the left position of the thumbnails scroll end, has to be indentical to the number below
                                                                _destScrollX = 0;    //this number is 1/2 the stage size, previously was at 0 it defines the left position of the thumbnails scroll end, has to be indentical to the number above
                                                      TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});
                                            } else if (this.mouseX > _IMAGE_WIDTH - _SCROLL_AREA) {
                                                      _destScrollX -= ((this.mouseX - (_IMAGE_WIDTH - _SCROLL_AREA)) / _SCROLL_AREA) * _SCROLL_SPEED;
                                                      if (_destScrollX < _minScrollX) {
                                                                _destScrollX = _minScrollX;
                                                      TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});
                        //if an image fails to load properly, remove it from the slideshow completely including its thumbnail at the bottom.
                         function _imageFailHandler(event:LoaderEvent):void {
                                  var slide:Slide;
                                  var i:int = _slides.length;
                                  while (--i > -1) {
                                            slide = _slides[i];
                                            if (event.target == slide.thumbnailLoader || event.target == slide.imageLoader) {
                                                      slide.dispose();
                                                      _slides.splice(i, 1);
                                                      _setupThumbnails();
                                                      return;

  • My scroll bar is now on the left. how do I move it back to the right side?

    When Firefox updated overnight I woke up to a nightmare. My scrollbar was now on the left. How do I get it moved back to the right?

    You may have other problems as well.
    ''Scrollbars in the user interface may appear on the left or right side of the content, depending on whether the language viewed is read right-to-left or left-to-right. However, a user may want to keep the scrollbar on one side irrespective of the content’s language, or even the host OS’s language. This preference is an attempt to make the scrollbar position as customizable to the end user as possible.''
    * http://kb.mozillazine.org/Layout.scrollbar.side
    In your '''about:config''' change configuration variable '''layout.scrollbar.side''' to '''2''' to place the scrollbar on the right side of the content.
    '''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config (entries)] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config (How to change)]

  • Horizontal scrolling bar half way up the page

    anyone know how to do it, like this?
    http://www.dominicgoldman.com/html/bbh_set.html
    many thanks for any replies

    it's a frameset, which is something you can't natively do in iweb. google around and i'm sure someone has a hack for it.

  • In FF 4.0 why does the down arrow no longer function in the vertical scroll bar?

    Prior to FF 4.0 when I positioned my cursor over the down arrow of the vertical scroll bar in Hotmail and depressed the left mouse button, the scroll bar moved downward toward the bottom of it's column limit. Now in 4.0 it turns into an adjustment cursor forcing me to readjust the size of the Hotmail window rather than moving the scroll bar down the column. This only seems to happen in Hotmail.

    Check: http://kb.mozillazine.org/Website_colors_are_wrong
    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * You can see the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * You can see all exceptions in Tools > Options > Content: Load Images > Exceptions
    * You can check the Tools > Page Info > Media tab for blocked images (scroll through all the images)
    There are also extensions (Tools > Add-ons > Extensions) that can block images.

  • In Columns mode, Preview QTs no longer have scroll bars...Why?

    I used to really like looking for files in the Finder mode, in the Column view; then finding the QT, and previewing it in the Preview column, complete with scroll bar. That was the Old Days. Is there anyway in Leopard to get the scroll bar back? (BTW, I'm not a fan of the Space Bar Preview, unless someone can tell me a way to keep the preview playing even after I click into another window/app.)
    Thanks!

    I think the answer is "fashion" or the latest interface thing.... Anyway, what ya get now is the little play button smack dab in the middle of the preview, just like YouTube! Only better! Because this play button doesn't appear until you mouse over the preview button! Isn't that cool? No? Tell Apple what you think of this devolution of usefulness:
    http://www.apple.com/feedback/macosx.html
    So if you want to have a scrollbar that you can scrub you must use QuickLook (the spacebar thing). But all you can do with volume in the scrub bar is mute it. And you can't switch to something else while it plays. If you want it to play when you switch you have to use the play button in the Preview pane. But you can't scrub when you switch back.
    Francine
    Francine
    Schwieder

  • TileList does not recognize the size of vertical Scroll Bar

    Hi,
          I have a tileList with a custom vertical scroll bar that I made, the problem is that when the tilelist gets filled, it does not recognize that the vertical scroll bar width is not the default 16 pixels (I think the default value it's 16, but I'm not really sure) but 5 or 6 pixels, so the first time it gets filled it shows 3 columns of items (no problems with the rows). The columnWidth is set to 185, if I lower it to 180, it shows the 4 columns that I want it to show (instead of 3). I know that there is enough space because when I scroll down, and then scroll up, the fourth column appears. That's why I think that the TileList is not recognizing that the width of the vertical scroll Bar is less than the default width.
    Does anybody know how to make it recognize the new width? And how is  it that it has to take a scroll down to get it to recognize it.
    Thank you for your help.
    Sebasti'an Toro O.

    Yeah, you can try signing up for DropBox - it's a free service that allows you to sync any files between your iPhone and your computer.  More info here:  http://www.dropbox.com/about

  • Why my scroll bar of a data block doesn't work?

    Hi,
    I have a data block that displays a maximum of 9 records at one time. When the query returns more than 9 records i want to use a vertical scroll bar to navigate to the last records.
    In some forms it works fine but in others not , i still didn't find why ??
    Cheers,
    Nuno

    Nuno,
    Rather than trying to find a needle in a hay stack, I would recommend taking a step backward.  This will help to rule out whether the issue is something you caused or if there is an issue with the environment or product.
    Create a new module in the Builder.  Do not add any of your own code.
    In the Builder, connect to a database (File > Connect).
    From the Builder menu, select Tools > Data Block Wizard
    In the Wizard first screen (after Welcome), select Table or View then click Next
    On the next screen, click on Browse to display the tables available to you.  Choose one.
    All the columns in that table should appear on the left.  Click on the double arrow (>>) to select all of them.  Then click on Next
    Click on Next again
    Choose the option to create the data block then open the Layout Wizard.  Then click Finish
    In the Layout Wizard, click on Next (after the Welcome scree) to choose the default Canvas.  Then click on Next
    Click on the double arrow (>>) to choose all columns. Then click Next
    Click Next again.
    Choose Tabular as the layout style.  Click on Next
    Change Records Displayed to 4 and check the box labeled "Display scroll bar".
    Click on Finish
    Again, do not make any changes to anything in this form.  Run it.  Does it reproduce the same problem you experience in your previous form?  If this form works correctly, likely the issue is in the design of your other form.  If this test form fails in the same manner then you are either exposing a defect or there is an odd configuration issue.

  • Ok.  I'm stumped.  The right side scroll bar on my pages documents disappears sometimes.  I don't know how to restore that function.  If I widen the page field, it will appear for a short time.  Very annoying if I am just using trackpad.  What to do?

    Ok.  I'm stumped.  The right side scrool bar on Pages documents disappears sometimes.  I have no idea why. Nor do I know how to get it back.  I've tried closing and reopening and restarting my macbook pro.  If I widen the right side, I get the scroll bar for just a few seconds and then if fades away.  I can't find anything it the help menus that fits it.

    geek,
    The scroll bar is consistent with the Full Screen approach in trying to maximize the working area of your screen. The scroll bar fades to make room for data. So, use your 2-fingered scroll or arrow keys for short moves. If you have a long way to scroll, the scroll bar will activate any time you scroll with the trackpad or the arrow keys and you can grab it and pull it to your desired position in the document.
    One man's innovative is another man's irritant, I suppose.
    Jerry

  • How can we remove the scroll bars from the table?

    Hi,
    I have a dynamic table. Currently the table appears with the scroll bars. But there is a requirement that the scroll bar should not appear and the table should stretch in the entire page. How can this be achieved.
    Thanks in advance
    Nita

    Thanks Mohammad for the reply.
    Was able to remove the scroll bars by using only the styleClass as AFStretchWidth. But there is a default partition in middle of the page still? Can i remove that too by any way.

Maybe you are looking for

  • Menu bar won't stay when I click on safari or any other app

    I click on safari and autoatically the menu bar on the top AND bottom go away. It's really frustrating. No one online has asked the same question and I need to fix thi now. I want my menu bars to always show and never go away. I searched for help on

  • Exporting BPs to application server

    Hi, I'm working in CRM 3.1 and need to export target groups to application server due to too large target groups. I found a note (459913) which seems to explain some of the procedure for how to configure this, but this note is actually a correction f

  • Stream audio from a source

    Hi, I was wondering if it were possible to stream audio from an internet radio station. Can anyone point me in the right direction? Many thanks in advance!

  • How to access dynamic fields in a field symbol

    hi how do i access the dynamic fields created in side a field-symbol.... wht i mean is i have a table, whose workarea i assign to field symbol. but this table is runtime, altough i have debugged and found the values in this table, I want to accees th

  • Flagged email in shared inbox won`t refresh

    When i place a red flag by a email in one shared inbox the flag wil not refresh it self untill i switch tabs or something, in all my other shared inboxes the flags refreshes properly..... PLZ HELP!! Best regards, Roy