Add Scroll Bars around Large JPG Image - JDev 11.1.2

Hello:
I have a panel tabbed componet and inside one of the show detail items, I would like to put a rather large image. I can put the af:image into the show detail item, but neither horizontal or vertal scroll bars appear, so I can only see the upper left corner of the JPG image. How can I make horizontal and vertical scroll bars appear around the image?
Thanks for the help.

Try to put the image into a panelGroupLayout in scroll mode...
Timo

Similar Messages

  • How to add scroll bar within af:showDetail

    I have added a af:panelGroupLayout to af:showDetail, and set the "layout" property of the panel group layout out to "scroll". However, the scroll bar still does not show up within af:showDetail. If I set the height for the panel group layout within af:showDetail, then the scroll bar shows. But then it will not stretch vertically upon stretching the dialog vertically. Is it possible to add scroll bar within af:showDetail?
    Here's a sample code which I tried -
    <*af:panelStretchLayout* id="psl1">
    <f:facet name="center">
    <*af:showDetail* disclosed="false" id="sd1" disclosedText="Metadata"
    undisclosedText="Metadata">
    <*af:panelGroupLayout* id="pgl2"
    inlineStyle="background-color:White;"
    layout="*scroll*">
    </panelGroupLayout>
    </af:showDetail>
    </f:facet>
    </af:panelStretchLayout>

    Yes, you can try panelStretchLayout as well.
    Copy following fragment into an empty <af:document> to see the difference.
    <af:form id="f1">
    <af:showDetail disclosed="true" id="sd1">
    <af:panelStretchLayout id="psl1">
    <f:facet name="bottom"/>
    <f:facet name="center">
    <af:panelGroupLayout id="pgl1" layout="scroll">
    <af:outputFormatted value="outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>"
    id="of1"/>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="start"/>
    <f:facet name="end"/>
    <f:facet name="top"/>
    </af:panelStretchLayout>
    </af:showDetail>
    <af:showDetail disclosed="true" id="sd2">
    <af:panelGroupLayout id="pgl2" layout="scroll">
    <af:outputFormatted value="outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>outputFormat1&lt;p>"
    id="of2"/>
    </af:panelGroupLayout>
    </af:showDetail>
    </af:form>
    Enjoy ADF...
    Todd

  • How to add scroll bar to a labview wave graph?

    I want to know if there is a to add scroll bar to a labview wave graph.

    Look here:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000001E400000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

  • How to add scroll bar in child form ( vb6.0 )

    look at this picture link (i think you will understand the issue)
    http://tinypic.com/r/25k232u/8
    These information(class1,class2 ……) are loaded from database and this time the information is too much and it moves down to the appearing part of the window and unable to view these items
    How to add scroll bar in visual basic child form so that the data items can be viewed by scroll in case it go beyond the screen.

    Hi,
    Welcome to MSDN.
    I am afraid that these forums donot support VB6 any more, you could refer to this thread:
    Where to post your VB 6 questions
    You could consider posting this issue in these forums below:
    These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
    VB Forums
    VB City
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Any Possible to add Scroll Bars to SysLink Control in MFC

    If there is any chance to add Scroll Bars to SysLink Control in VC++ MFC Application?

    Hi J Sathish Kumar,
    CLinkCtrl class derive form CWnd class, so it can create with the common windows style WS_VSCROLL. So we could create a syslink control with this style.
    https://msdn.microsoft.com/en-us/library/xw25kwch.aspx
    PTCHAR url =
    _T("Link 2) ")
    _T("<A HREF=\"http://msdn2.microsoft.com/en-us/visualc/default.aspx\">")
    _T("Microsoft VC++ Home")
    _T("</A>");
    //m_mylink is a object of a class derive from CLinkCtrl class.
    m_mylink.Create(url,
    (WS_VISIBLE | WS_TABSTOP | WS_CHILD | WS_BORDER|WS_VSCROLL),
    CRect(
    100, 100,
    400, 240),
    this,
    IDC_SYSLINK2);
    You need to create a class derive form CLinkCtrl class. And you will find the scrollbar cannnot scroll. Here is a workaround:
    LRESULT CMyLinkCtrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
    // TODO: Add your specialized code here and/or call the base class
    if (message == WM_NCHITTEST || message == WM_NCLBUTTONDOWN || message == WM_NCLBUTTONDBLCLK)
    return ::DefWindowProc(m_hWnd, message, wParam, lParam);
    return CLinkCtrl::WindowProc(message, wParam, lParam);
    Set the scrollbar information.
    int CMyLinkCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
    if (CLinkCtrl::OnCreate(lpCreateStruct) == -1)
    return -1;
    // TODO: Add your specialized creation code here
    SCROLLINFO vinfo;
    vinfo.cbSize = sizeof(vinfo);
    vinfo.fMask = SIF_ALL;
    vinfo.nPage = 30
    vinfo.nMax = 140
    vinfo.nMin=0;
    vinfo.nTrackPos = 0;
    SetScrollInfo(SB_VERT, &vinfo);//
    return 0;
    Handle the WM_VSCROLL message event in your new class CMyLinkCtrl.
    void CMyLinkCtrl::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
    // TODO: Add your message handler code here and/or call default
    SCROLLINFO scrollinfo;
    GetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    switch (nSBCode) {
    case SB_BOTTOM:
    ScrollWindow(0, (scrollinfo.nPos - scrollinfo.nMax) * 10); scrollinfo.nPos = scrollinfo.nMax;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); break;
    case SB_TOP: ScrollWindow(0, (scrollinfo.nPos - scrollinfo.nMin) * 10); scrollinfo.nPos = scrollinfo.nMin;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    break;
    case SB_LINEUP:
    scrollinfo.nPos -= 1;
    if (scrollinfo.nPos<scrollinfo.nMin) {
    scrollinfo.nPos = scrollinfo.nMin;
    break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    ScrollWindow(0, 10);
    break;
    case SB_LINEDOWN:
    scrollinfo.nPos += 1;
    if (scrollinfo.nPos>scrollinfo.nMax) {
    scrollinfo.nPos = scrollinfo.nMax; break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); ScrollWindow(0, -10);
    break;
    case SB_PAGEUP:
    scrollinfo.nPos -= 5;
    if (scrollinfo.nPos<scrollinfo.nMin) {
    scrollinfo.nPos = scrollinfo.nMin;
    break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); ScrollWindow(0, 10 * 5);
    break;
    case SB_PAGEDOWN:
    scrollinfo.nPos += 5;
    if (scrollinfo.nPos>scrollinfo.nMax) {
    scrollinfo.nPos = scrollinfo.nMax;
    break;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL); ScrollWindow(0, -10 * 5);
    break;
    case SB_ENDSCROLL:
    break;
    case SB_THUMBPOSITION:
    // ScrollWindow(0,(scrollinfo.nPos-nPos)*10); // scrollinfo.nPos = nPos;
    // SetScrollInfo(SB_VERT,&scrollinfo,SIF_ALL);
    break;
    case SB_THUMBTRACK:
    ScrollWindow(0, (scrollinfo.nPos - nPos) * 10);
    scrollinfo.nPos = nPos;
    SetScrollInfo(SB_VERT, &scrollinfo, SIF_ALL);
    break;
    CLinkCtrl::OnVScroll(nSBCode, nPos, pScrollBar);
    Above code is just for test and help you understand how to add the scrollbar, you could make it more suitable for your situation. Hope this helps some. Example Screenshot:
    Best regards,
    Shu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to add scroll bar in webi table

    Hi Experts,
    Currently i am working on webi report it consist lot of tables and charts. As per my requirement the webi table should contain scroll bar instead of showing all data in single shot. And user will scroll down  if he/she required.  Is it possible in webi?
    Regards,
    PRK.

    Hi Praveen,
    Adding scroll ball in Webi table is not possible currently.
    Requests has been raised by some people in SAP Idea place, see the link below for more details.
    You can vote in SAP Idea place for getting this feature
    Add scroll bars for Webi tables : View Idea

  • Scrolling Around Large, Complex Image

    The problem I am trying to solve is straitforward: I will be drawing a complicated graphic out of tens of thousands of individual small lines and circles. This graphic will need to be several thousand pixels wide and tall, so to be able to see all of it I will need to scroll around the image. I have been thrashing for hours trying to figure this out, but I really don't think it should be so complicated. I have posted the unsuccessful code I have so far below, but I am very much open to better approaches that don't use the framework I've laid out here.
    Thanks for your help,
    - Mark McG.
    import java.awt.*;
    import javax.swing.*;
    public class DrawingTest {
    JFrame frame;
    Container content_pane;
    public static void main(String[] args) {
    new DrawingTest();
    DrawingTest() {
    Container content_pane;
    JComponent my_component;
    JScrollBar oneJScrollBar;
    int frameWidth = 500;
    int frameHeight = 500;
    frame = new JFrame();
    frame.setSize(frameWidth, frameHeight);
    content_pane = frame.getContentPane();
    oneJScrollBar = new JScrollBar(JScrollBar.HORIZONTAL);
    content_pane.add(oneJScrollBar, BorderLayout.NORTH);
    my_component = new MyComponent();
    content_pane.add(my_component);
    frame.setVisible(true);
    class MyComponent extends JComponent {
    public void paint(Graphics g) {
    // Draw an oval bigger than the window
    g.drawOval(0, 0, 3000, 2000);
    }

    I get a feeling that I have been conned! One of my standard demos is not quite what you want but I'm sure you can adapt it
    import javax.swing.*;
    import java.awt.*;
    public class Test060202a extends JFrame
        class TestLabel extends JLabel
            TestLabel(String value)
                super(value, JLabel.CENTER);
                setFont(getFont().deriveFont(24.0f));
        public Test060202a()
            super("Tablet Test");
            JLabel north = new TestLabel("North");
            JLabel south = new TestLabel("South");
            JLabel east = new TestLabel("East");
            JLabel west = new TestLabel("West");
            getContentPane().add(north, BorderLayout.NORTH);
            getContentPane().add(east, BorderLayout.EAST);
            getContentPane().add(south, BorderLayout.SOUTH);
            getContentPane().add(west, BorderLayout.WEST);
            getContentPane().setPreferredSize(new Dimension(512, 512));
            Tablet tablet = new Tablet();       
            JScrollPane scroller = new JScrollPane(tablet);
            getContentPane().add(scroller, BorderLayout.CENTER);
            pack();
        public static void main(String[] args)
            Test060202a tester = new Test060202a();
            tester.setVisible(true);
        class Tablet extends JComponent
            Tablet()
                setPreferredSize(new Dimension(4096, 4096));
                setBackground(Color.cyan);
            public void paintComponent(Graphics g)
                super.paintComponent(g);
                Color savedColor = g.getColor();
                g.setColor(getBackground());
                g.fillRect(0, 0, getWidth(), getHeight());
                g.setColor(savedColor);
                g.setColor(Color.red);
                java.util.Random random = new java.util.Random(1234);
                for (int i = 0; i < 1000; i++)
                    g.fillRect(random.nextInt(getWidth()), random.nextInt(getHeight()), 10, 10);
    }

  • How to get transparency scroll bar to view background image of canvas.

    HI, 
    How to get transparency to path in canvas to view background image in canvas using scroll bar control.?
    This is my present output:
    My Xaml Code:
    <Grid Height="auto" Name="grid1">
    <TabControl Background="Bisque">
    <TabItem Header="Tools">
    <Grid Height="1000" Width="1000" Name="grid">
    <Border BorderThickness="0.2" BorderBrush="Black" Height="820" Width="820" ClipToBounds="True" Margin="90,99,90,81"></Border>
    <Grid>
    <Button Content="Original Size" Height="23" Name="btn_Original" Width="75" Click="btnOriginalSizePosition" Margin="4,4,921,973" />
    <TextBox Height="20" HorizontalAlignment="Left" Margin="62,49,0,0" x:Name="txtNoOfZones" VerticalAlignment="Top" Width="49"
    MaxLength="2" PreviewTextInput="txtNoOfZones_PreviewTextInput"/>
    <TextBox Height="20" HorizontalAlignment="Right" Margin="0,71,890,0" x:Name="txtSec" VerticalAlignment="Top" Width="49" PreviewTextInput="txtSec_PreviewTextInput" MaxLength="3"/>
    <Button Content="OK" Height="32" HorizontalAlignment="Left" Margin="117,59,0,0" Name="btnNoOfZones" VerticalAlignment="Top" Width="39" Click="btnNoOfZones_Click" />
    <Label Content="Zone Number selected :" Height="28" HorizontalAlignment="Right" Margin="0,0,451,0" Name="lblZone" VerticalAlignment="Top" />
    <Label Content="Sector Number in selected Zone :" Height="28" HorizontalAlignment="Right" Margin="364,22,451,0" Name="lblSector" VerticalAlignment="Top" />
    <Label Content="Filled Color applied in selected sector :" Height="28" HorizontalAlignment="Right" Margin="336,44,451,0" Name="lblColor" VerticalAlignment="Top" />
    <Label HorizontalAlignment="Left" Margin="569,0,0,0" Name="lblZoneNumber" Height="28" VerticalAlignment="Top" />
    <Label Height="28" HorizontalAlignment="Left" Margin="569,22,0,0" Name="lblSectorNumber" VerticalAlignment="Top" />
    <Label Height="30" HorizontalAlignment="Left" Margin="569,44,0,0" Name="lblFillColor" VerticalAlignment="Top" FontWeight="Bold"/>
    <Label Content="Sectors :" Height="28" HorizontalAlignment="Left" Margin="7,67,0,905" Width="69" />
    <Label Content="Zones :" HorizontalAlignment="Left" Margin="13,44,0,928"/>
    <TextBlock Height="23" HorizontalAlignment="Left" Margin="4,32,0,0" Text="Change No.of Zones, sectors below and click OK button" VerticalAlignment="Top" Width="294" FontFamily="Cambria" FontSize="12" FontStyle="Italic" FontWeight="Bold" />
    <RadioButton Content="Single Sector" Height="16" HorizontalAlignment="Left" Margin="744,24,0,0" Name="rBtnSingleSector" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Sector Zone" Height="16" HorizontalAlignment="Left" Margin="744,44,0,0" Name="rBtnSectorZone" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Circular Zone" Height="16" HorizontalAlignment="Left" Margin="744,64,0,0" Name="rBtnCircularZone" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Panning" Height="24" HorizontalAlignment="Left" Margin="744,4,0,0" Name="rBtnPanning" VerticalAlignment="Top" Width="74" GroupName="Selection"/>
    <Border x:Name="clipBorder" BorderBrush="Black" BorderThickness="0" ClipToBounds="True" Height="810" Width="810" Margin="95,104,95,86" CornerRadius="10">
    <Canvas x:Name="CanvasPanel" Height="800" Width="800" Background="Transparent" ClipToBounds="True"></Canvas>
    </Border>
    <RadioButton Content="Random Color" HorizontalAlignment="Left" Margin="868,5,0,979" Name="rdBtnRandomColor" GroupName="rdbtnGroupFillColor"/>
    <RadioButton Content="Red Color" Height="16" HorizontalAlignment="Left" Margin="868,24,0,0" Name="rdBtnRedColor" VerticalAlignment="Top" GroupName="rdbtnGroupFillColor" Foreground="#FFF81010" FontWeight="Bold" />
    <RadioButton Content="Green Color" Height="16" HorizontalAlignment="Left" Margin="868,44,0,0" Name="rdBtnGreenColor" VerticalAlignment="Top" GroupName="rdbtnGroupFillColor" Foreground="#FF175F17" FontWeight="Bold" />
    <RadioButton Content="Adjacent" Height="16" HorizontalAlignment="Left" Margin="435,81,0,0" Name="rdBtnAdjacent" VerticalAlignment="Top" GroupName="Selection" />
    </Grid>
    </Grid>
    </TabItem>
    <TabItem Header="Change Background">
    <Grid Height="1000" VerticalAlignment="Top" Background="Bisque">
    <Button Height="70" Width="70" Margin="6,1,892,929" Name="btnBrowseImage" Click="btnAll">
    <Image x:Name="browseIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\img.png" MouseLeftButtonDown="Image_MouseLeftButtonDown_1"/>
    </Button>
    <Button Height="70" Width="70" Margin="92,1,806,929" Name="btnCenterPoint" Click="btnAll">
    <Image x:Name="centerIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\center.jpg" Width="54" Height="48" />
    </Button>
    <Button Height="70" Width="70" Margin="179,1,719,929" Click="btnAll">
    <Image x:Name="boundaryIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\Path_Simple.png" Height="44" Width="49" />
    </Button>
    <Image Name="imgBackground" Height="800" Width="800" MouseLeftButtonDown="imgBackground_MouseLeftButtonDown">
    </Image>
    </Grid>
    </TabItem>
    </TabControl>
    </Grid>
    C# code:
    OpenFileDialog op = new OpenFileDialog();
    ImageBrush ib = new ImageBrush();
    private void Image_MouseLeftButtonDown_1(object sender, RoutedEventArgs e)
    op.Title = "Select a picture";
    op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
    "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
    "Portable Network Graphic (*.png)|*.png";
    if (op.ShowDialog() == true)
    ib.ImageSource = new BitmapImage(new Uri(op.FileName));
    imgBackground.Source = new BitmapImage(new Uri(op.FileName));
    CanvasPanel.Background = ib;
    Please help me out to get transparency for path in canvas to view background image in canvas.
    The complete code is in below link:
    https://onedrive.live.com/redir?resid=876CFAE94C306176!112&authkey=!AC1sQIYwyoRYT_o&ithint=file%2crar
    Regards,
    Viswa.

    Hi ViswAmmu,
    >>Please help me out to get transparency for path in canvas to view background image in canvas.
    If I'm not misunderstanding, I think you just need to loop through all Canvas.Children and set Opacity property for them:
    private void Image_MouseLeftButtonDown_1(object sender, RoutedEventArgs e)
    //Loop through all children items
    foreach(UIElement v in CanvasPanel.Children)
    v.Opacity = 0;
    op.Title = "Select a picture";
    op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
    "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
    "Portable Network Graphic (*.png)|*.png";
    if (op.ShowDialog() == true)
    ib.ImageSource = new BitmapImage(new Uri(op.FileName));
    imgBackground.Source = new BitmapImage(new Uri(op.FileName));
    CanvasPanel.Background = ib;
    Screenshot:
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to add scroll bars to a panel

    Hi
    Can anyone plz tell me how to add a scroll bar to a panel created within a JFrame
    Regards
    ats

    import javax.swing.*;
    import java.awt.*;
    class Testing extends JFrame
      public Testing()
        setLocation(300,200);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JPanel jp = new JPanel();
        jp.add(new JLabel("Label on a panel"));
        jp.setPreferredSize(new Dimension(200,300));
        JScrollPane sp = new JScrollPane(jp);
        sp.setPreferredSize(new Dimension(200,200));
        getContentPane().add(sp);
        pack();
      public static void main(String args[]){new Testing().setVisible(true);}
    }

  • How to add scroll bar to JDesktopPane?

    Hi All,
         After download the "InternalFrameDemo.java" from the swing tutorial, I want to add scrollbars to JDesktopPane so that whenever a internal frame moves off the desktop view port, a scrollbar will display. I have tried many ways to implement this but no success.
    Do you know how to add scrollbars to JDesktopPane?
    Thanks
    Anson

    You can't get there from here! Assuming that wou want is to make the desktop scrollable that is.
    The trick to make somthing scrollable is to make JScrollPane CONTAIN the component to be scrolled. If you could ask the desktop to return the component it contains, you might have a chance but no luck, the desktop pane actually inherits a layered pane which is most likey is what you would like JScrollPane to contain.
    Now here's another angle to this story... the desktop is complex enough without scrollbars, why would you want to complicate things by adding a scroll bar anyway? Say one of its window is maximized and has a scrollbar of its own AND the desktop has one.... that makes TWO scroll bars side by side. Talk about confusing.
    I believe the desktop was designed so scroll bars can't be added for a very good reason: good UI practises.

  • Add scroll bars to TextArea - how?

    I have an application which reads user input to a text file and then on click of JButDisplay reads the contents of the file to a TextArea.
    Problem is I can't seem to get scroll bars onto the TextArea, I tried using JScrollPane,
    but had no luck (I'm using gridBagLayout)
    Could someone please advise me how to add scrollbars to this component?
    TADisplay2 = new JTextArea(10,20);     
                   c.ipadx = 12;
                   c.ipady = 12;
                        c.gridx = 2;
                        c.gridy=18;
                        c.gridwidth = 2;   //2 columns wide
                        c.gridheight = 4;
                             gridbag.setConstraints(TADisplay2, c);
                             contentPane.add(TADisplay2);

    1) Create scrollPanel
    2) Make it fill your content pane (or whatever area you wish to cover)
    3) Add your textArea to the scrollpanel

  • Hide Scroll bars around  IViews

    EP6SP14..Got a page with number of IViews in it. When ever browser window is resized, scroll bars appers around IViews.
    If you see sdn page, even on resizing the browser windoe, no scroll bar appears around IViews.
    How to achieve this?...Rgds

    Hi GULSHAN,
    Try setting the iView's <i>Isolation Method</i> to 'Embedded'.
    This embeds the iView's html into the page, not using an iframe.
    For some iViews (url iView, application integrator iViews) this is not possible, since their content is not controlled by the portal, and therefore they must appear as an iframe within the page.
    Hope that helps,
    Yoav.

  • How can I add scroll bars to a textarea and setfocus at the end of the box.

    I didn't see a scrollbar option so I was wondering how would I add one? Also how can I setfocus to the last line in the textarea?

    You have to create a JScrollPane that will enclose the TextArea as in new JScrollPane (yourTextArea).
    You can setFocus to any Component and you can position the caret in an TextArea.
    Regards
    SH

  • How to add black bars to SIDES of image? Using 'Crop' won't work for this. I explain why.

    I have some clips that are off axis and I applied a bit of tilt to correct them. However, I now need to crop the sides giving me a 1.66:1 effect inside the 1.85:1 frame. But how/ Using CROP in Premiere Pro just crops the image off axis. Here is a screen grab...
    How can I get a nice, perfect side crop? I've searched, folks, so would appreciate some guidance. Thanks!

    4 point garbage matte to crop.
    Or overlay a title with black pillars.

  • ST2421L, black bars around image suddenly appeared

    This is a real puzzler. Suddenly, for no apparent reason, my ST2421L monitor displayed black bars around the screen image (doesn't matter if it is the desktop or a browser or MS Word). Seriously, when I started work in the morning, everything was normal. I blinked and then there were black bars. I've done some searching at the support forums and one suggestion was to install something called AMD Catalyst Suite. When I tried to do that, it ran and then the dreaded blue screen appeared. Using control panel, I checked to see if Windows felt the drivers for the monitor were up to date and they were. I've also gone through the factory reset via the OSD, unplugged the monitor's power and its HDMI cable, etc. Any suggestions would be greatly appreciated. Thanks in advance!
    John
    Monitor Details:
    CN-0TPDTP-74261-3AT-0W2U
    Dell 570
    Win 7 64 bit
    ATI Radeon HD 4200 version 8.850.0.0  HDMI, VGA
    HDMI to HDMI
    HDMI
    1080p
    Purchased from Dell

    Thank you, Chris. When I do that, I see the panel below. Note how it says the best driver is "win7_32_"  When I attempt a download, I eventually see an error message saying I have a 64 bit system and that driver is the wrong one and the process aborts. Any ideas?  And thanks! 

Maybe you are looking for