Unable to grow and shrink a JTable within a JScrollPane

I need help with the following: I want to display a JTable component with a calendar like design. Dragging the size of the parent component (having a border to drag) should dynamically adapt the JTable' size and its cells. Since the JTable has a minimum size shrinking the parent component should show scrollbars if the minimum size is reached horizontal or vertical respectively.
I have the JTable put ijnto the viewport of a scrollpane and the scrollpane is the child component of a JPanel. So dragging appears with the panel.
The JTable cells do nicely but from a specific size on there is a grey area on the lower part of the JPanel which is not repainted. What is causing this? What do I have to do? I'm lost in the jungle of invalidate(), repaint(), update(), doLayout() etc.
Here is my SSCCE (at least I hope it is one):
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.UIManager;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableColumn;
import javax.swing.table.TableModel;
//public class MyComponent extends JScrollPane
public class MyComponent extends JPanel
///   class data
     static public final long serialVersionUID = -1L;
     static public final int c_ColWidth = 29;
     static public final int c_RowHeight = 18;
     static public final int c_TableWidth = 930;
     static public final int c_TableHeight = 234;
///   instance data
     private String[] m_strColHeader = {
          "01", "02", "03", "04", "05", "06", "07", "08", "09", "10",
          "11", "12", "13", "14", "15", "16", "17", "18", "19", "20",
          "21", "22", "23", "24", "25", "26", "27", "28", "29", "30",
          "31",
     private Object[][] m_Data = new Object[12][33];// data array
     private TableModel m_DataModel = new AbstractTableModel() {
          static public final long serialVersionUID = -1L;
          public int getColumnCount() { return m_strColHeader.length; }
          public int getRowCount() { return m_Data != null ? m_Data.length : 0; }
          public Object getValueAt(int row, int col) { return m_Data[row][col]; }
          public String getColumnName(int col) { return m_strColHeader[col]; }
          public Class getColumnClass(int col) { return String.class; }
          public boolean isCellEditable(int row, int col) { return false; }
          public void setValueAt(Object aValue, int row, int col) {
               m_Data[row][col] = aValue;
     protected BorderLayout myLayout = new BorderLayout();
     protected JTable tableView = new JTable(m_DataModel);
     protected JScrollPane scrollPane = new JScrollPane(tableView);
///   public class methods
     static public void main(String[] args)
          try
               UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
          catch(Exception e)
               e.printStackTrace();
          MyComponent comp1 = new MyComponent();
          JFrame frame = new JFrame("MyComponent");
          frame.addWindowListener(new WindowAdapter() {
               public void windowClosing(WindowEvent e) {
                    System.exit(0);
          frame.getContentPane().add(comp1);
          frame.pack();
          frame.setVisible(true);
///   constructors
     public MyComponent()
          try
               jbInit();
               initTable();
          catch(Exception ex)
               ex.printStackTrace();
///   protected instance methods
     protected void initTable()
          // do nor allow user interaction with calendar view
          tableView.getTableHeader().setReorderingAllowed(false);
          tableView.getTableHeader().setResizingAllowed(false);
          //tableView.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
          tableView.setRowHeight(c_RowHeight);
          // adapt all CellRenderers
          for (int i = 0; i < m_DataModel.getColumnCount(); i++)
               TableColumn column = tableView.getColumn(tableView.getColumnName(i));
               column.setMinWidth(c_ColWidth);
               column.setPreferredWidth(c_ColWidth);
///   private instance methods
     private void jbInit() throws Exception
          this.setLayout(myLayout);
          this.add(scrollPane, BorderLayout.CENTER);
          scrollPane.getViewport().setMinimumSize(new Dimension(c_TableWidth, c_TableHeight));
          scrollPane.getViewport().setPreferredSize(new Dimension(c_TableWidth, c_TableHeight));
          tableView.setPreferredSize(new Dimension(c_TableWidth, c_TableHeight));
          addComponentListener(new MyComponent_componentAdapter(this));
///   event handling
     public void componentBoundsChanged(ComponentEvent e)
          scrollPane.setBounds(0, 0, getWidth(), getHeight());
          scrollPane.getViewport().setBounds(0, 0, getWidth(), getHeight());
          //tableView.setBounds(0, 0, getWidth(), getHeight());
          tableView.setSize(scrollPane.getViewport().getWidth(), scrollPane.getViewport().getHeight());
          tableView.setRowHeight(getBounds().height / 13 < c_RowHeight ?
                    c_RowHeight : getBounds().height / 13);
          System.out.println("componentBoundsChanged: getBounds() = " + getBounds());
          System.out.println("componentBoundsChanged: getSize() = " + getSize());
          System.out.println("componentBoundsChanged: getViewport().getBounds() = " + scrollPane.getViewport().getBounds());
          System.out.println("componentBoundsChanged: getViewport().getSize() = " + scrollPane.getViewport().getSize());
          System.out.println("componentBoundsChanged: tableView.getBounds() = " + tableView.getBounds());
          System.out.println("componentBoundsChanged: tableView.getSize() = " + tableView.getSize());
///   event adapters
class MyComponent_componentAdapter extends ComponentAdapter
     protected MyComponent adaptee;
     MyComponent_componentAdapter(MyComponent adaptee)
          this.adaptee = adaptee;
     public void componentMoved(ComponentEvent e)
          adaptee.componentBoundsChanged(e);
     public void componentResized(ComponentEvent e)
          adaptee.componentBoundsChanged(e);
}

I guess i am facing exactly opposite problem.
What i want to do is, I have nested tables in a scroll pane. So I don't want a scroll pane to show exactly whatever visible rows are there in Table (No extra space). If i expand any row, i want scroll pane to be able to show expanded.

Similar Messages

  • Grow and Shrink the gallery's "mainImage"

    Grow and Shrink the gallery's "mainImage"
    I may pursue another option with the
    Class on trigger
    In this sample, a CSS class is set on the trigger to alert the user that something happens on the element. This is set as an option in the constructor.
    <script type="text/javascript">
    var highlight_tooltip = new Spry.Widget.Tooltip('highlighttrigger', '#classonme', {hideDelay:500, hoverClass:"enlarge"})
    </script>
    We have the main image in the photo gallery at full size.
    This is the image placeholder called "main image".
    Currently it is looks like this:
    <img id="mainImage" alt="main image" src=""/>
    I assume we add a mark-up similar to the icon grow effects code.
    So I will take a stab it now;
    <div id="Photograph" spry:region="dsPhotograph" onclick="HandlePhotograhClick('{ds_RowID}');" onmouseover="GrowPhotograph(this.getElementsByTagName('img')[0], '{@thumbwidth}', '{@Photographheight}');" onmouseout="ShrinkPhotograph(this.getElementsByTagName('img')[0]);"> <img src="galleries/{dsGalleries::@base}{dsGallery::Photograph/@base}{@Photographpath}" alt="Photograph for {@Photographpath}" width="Not Sure" height="Not Sure" id="tn{ds_RowID}" style="left: 0px; right: 0px;" onmouseover="this.style.cursor='pointer'" /> </div>
          <p class="ClearAll"></p>
    //need to look at ClearAll
        </div>
    //Now Add stuff the gallery.js
    // Show the image of the current selected row inside the dsPhotos data set.
    function ShowCurrentImage()
         var curRow = dsPhotos.getCurrentRow();
         SetMainImage("galleries/" + dsGalleries.getCurrentRow()["@base"] + "images/" + curRow["@path"], curRow["@width"], curRow["@height"], "tn" + curRow["ds_RowID"]);
    //I Need a variable like;
    ["@bigPhoto"]
    //Now I need add a function
    function HandlePhotographClick(id)
         //StopSlideShow();
         //dsPhotos.setCurrentRow(id);
         //ShowCurrentImage();
            //call Photograph grow ???
    // Trigger the animation of the Photograh growing to it's next largest size.
    function GrowPhotograph(img, width, height)
         Spry.Utils.addClassName(img, "inFocus");
         img.style.zIndex = 150;
         var id = img.getAttribute("id");
            //ADD This to the function GrowThumbnail in Gallery.js
    //after//
         //var twidth = Math.floor(width * .75);
         //var theight = Math.floor(height * .75);
         //var tx = (gThumbWidth - twidth) / 2;
         //var ty = (gThumbHeight - theight) / 2;
         var pwidth = Math.floor(width * 1.75);
         var pheight = Math.floor(height * 1.75);
         var px = (pThumbWidth - pwidth) / 2;//need to check this may not need
         var py = (pThumbHeight - pheight) / 2;//need to check this
         SizeAndPosition(id, tx, ty, twidth, theight, function(b){gBehaviorsArray[id] = null;});
    // Trigger the animation of the Photograph shrinking.
    function ShrinkPhotograph(img)
         Spry.Utils.addClassName(img, "inFocus");
         img.style.zIndex = 1;
         var id = img.getAttribute("id");
    //Need to look at this stuff below, any input from anybody would be good....
         SizeAndPosition(id, 0, 0, gThumbWidth, gThumbHeight, function(b){gBehaviorsArray[id] = null; Spry.Utils.removeClassName(img, "inFocus");});
    // Show the image of the current selected row inside the dsPhotos data set.
    function ShowCurrentImage()
         var curRow = dsPhotos.getCurrentRow();
         SetMainImage("galleries/" + dsGalleries.getCurrentRow()["@base"] + "images/" + curRow["@path"], curRow["@width"], curRow["@height"], "tn" + curRow["ds_RowID"]);
    Message was edited by: W_Bell

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class GrowRight
    public static void main (String args[]) throws InterruptedException
    JLabel label = new JLabel ("this is a test...");
    final JFrame frame = new JFrame ("GrowRight");
    frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().setLayout (new FlowLayout());
    frame.getContentPane().add (label);
    frame.setSize (label.getPreferredSize());
    frame.pack();
    final Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation (d.width - frame.getSize().width, 0);
    frame.setVisible (true);
    frame.addComponentListener(new ComponentAdapter(){//<---------------------
      public void componentResized(ComponentEvent ce){
        frame.setLocation (d.width - frame.getSize().width, 0);
    Thread.sleep (5000);
    label.setText ("for the next sixty seconds, this station...");
    frame.setSize (label.getPreferredSize());
    frame.pack();
    }

  • Grow and shrink JLabel to the left?

    I'm interested in putting a JLabel on the right hand side of the screen and having it resize (grow and shrink) on an on-going basis to the left. Any pointers on this? Here's some code that places a label on the upper right of the screen and then resizes the label. It grows off the right hand side of the screen...
    import javax.swing.*;
    import java.awt.*;
    public class GrowRight
    public static void main (String args[]) throws InterruptedException
    JLabel label = new JLabel ("this is a test...");
    JFrame frame = new JFrame ("GrowRight");
    frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().setLayout (new FlowLayout());
    frame.getContentPane().add (label);
    frame.setSize (label.getPreferredSize());
    frame.pack();
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation (d.width - frame.getSize().width, 0);
    frame.setVisible (true);
    Thread.sleep (50000);
    label.setText ("for the next sixty seconds, this station...");
    frame.setSize (label.getPreferredSize());
    frame.pack();
    Any help would be appreciated! Thanks.

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class GrowRight
    public static void main (String args[]) throws InterruptedException
    JLabel label = new JLabel ("this is a test...");
    final JFrame frame = new JFrame ("GrowRight");
    frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().setLayout (new FlowLayout());
    frame.getContentPane().add (label);
    frame.setSize (label.getPreferredSize());
    frame.pack();
    final Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation (d.width - frame.getSize().width, 0);
    frame.setVisible (true);
    frame.addComponentListener(new ComponentAdapter(){//<---------------------
      public void componentResized(ComponentEvent ce){
        frame.setLocation (d.width - frame.getSize().width, 0);
    Thread.sleep (5000);
    label.setText ("for the next sixty seconds, this station...");
    frame.setSize (label.getPreferredSize());
    frame.pack();
    }

  • Growing and shrinking text

    hi,
    does anyone know how to make text grow and shrink? i'm using oprea web browser, and when i place my mouse over some buttons text appears and then moving it off the button the text shrink, it does not appear and disappear, but actually grows out and shrinks in from a point. does anyone know how to do this?
    Thank you.

    hi,
    thank you for the response, i know about the listener, question was really regarding how to resize text so that it resizes smoothly, looks like it's growing and shrinking not just one second it's size 10 and then size 1, i want to make it flow from 10 to 1 for example, like opera browser, should i use a thread or is there a better way?
    Thank you.

  • HashMap will grow and shrink dynamically

    Hi,
    By default Hashmap takes 16 as an initial capacity. If it is more than 16 it will grow dynamically based on the constant factor.
    If it is less than 16 elements set whether it will shrink dynamically as well? Please clarify.
    Thanks.

    797836 wrote:
    Hi,
    By default Hashmap takes 16 as an initial capacity. If it is more than 16 it will grow dynamically based on the constant factor.
    If it is less than 16 elements set whether it will shrink dynamically as well? Please clarify.
    Thanks.The size() call will give you a reduced number of entries. Entries are stored internally in an array, that will grow, but never shrink. I.e. if you add 25 entries to a new HashMap it will have a capacity of 32 and a size of 25. After removing 10 of those entries capacity will still be 32, but size will be 15.

  • ArrayList will grow and shrink implicitly

    Hi,
    I have an ArrayList which is going to hold 1000 elements, hence I have defined the List as :-
    List list = new ArrayList(1000);
    If the number of elements is less than 1000 , in such case whether the ArrayList will shrink implictly and similarly
    if the number of elements grows from 1000 to 1500 whether the ArrayList will increase the size implicitly to 1500?
    I know that ArrayList will increase the size of its internal array to 50 % when compared to Vector?
    If the above wont happen then it will be a problem as unnecessary memory space will be available List?
    Please clarify.
    Thanks.

    797836 wrote:
    Thanks.
    This clearly indicates that if we are entirely sure that you are going to work with 1000 elements then better to define the initial capacity that way ,It can be better. In many cases--probably most cases--it will make no noticeable difference.
    if not, use always use the default value (ie) 10. That can be better. In many cases, it will make no noticeable difference. Also note that resizing costs time and memory. For a brief period, there are two copies of the backing array--the initial one and the new, larger one. And of course copying the references takes CPU cycles. Most of the time this will not be noticeable, but if you're comparing specifying the initial size vs. going with the default, it's worth considering.
    Also note that there exists a method to shrink the array. I think it's called trimToSize() or something like that.
    In the end, if you think you have a rough idea how big the list will get, you may get some benefit from creating it with an appropriate initial capacity. Most of the time, however, it won't make a noticeable difference either way, so it's not usually worth spending much time thinking about it. When you test for scalability, if you find a bottleneck there, you can adjust the initial capacity as needed.

  • Dynamically grow and wrap the column within the page

    Hi All,
    I have the situation where my xml includes a lot of cells (columns) but only about 5 cells (columns) can fit in a page with 8 1/2 in. Can i set up a form to dynamically wrap the table when it hit the maximum of width? Anyone have any idea about this. In the designer i only see the option to set row grow but not cell (column). Is this possible to dynamically grow the column.
    Thanks
    --Khiem

    Your only option would be to increase the width of a page. You could use a landscape page or simply make the width of the page as big as necessary.
    Paul

  • Images should grow or shrink when the user chooses a larger or smaller font size in ADE.

    Hi All,
    I use percentage values (in "width" attribute within "img" element) for image that should grow or shrink when the user
    chooses a larger or smaller font size. The adjustment affects not only the size of the text but also images but the images
    are getting distorted or blurred when user chooses larger font size in Adobe Digital Editions.
    Can anyone, please guide me; how to get non-distorted and non-blur images in epub package?
    If I directly use images, without svg format i.e. png or jpg files, then images get overlapped on body-text in two column display in ADE.
    OR
    if I directly use jpg or png with width attribute varying in percentage value then image shrinks and grows as user chooses smaller and larger font size but the problem of distorted image remains as it is
    <div class="media-group"><img src="images/pa0000016g26001.png or jpg" alt="Image" width="60 or 70%" /></div>
    Attached is the package (Book.epub) which has test cases.
    ========================================================
    Please find below sample coding used in attached epub package;
    In XHTML:
    <div class="media-group"><img src="images/pa0000016g26001.svg" alt="Image" width="100%" /></div>
    In SVG:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448)  -->
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
    <!ENTITY ns_svg "http://www.w3.org/2000/svg">
    <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
    ]>
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
    width="386px" height="554px" viewBox="0 0 386 554" enable-background="new 0 0 386 554" xml:space="preserve">
    <image overflow="visible" width="772" height="1108" xlink:href="pa0000016g26001.png"  transform="matrix(0.50 0 0 0.50 0 0)">
    </image>
    </svg>
    ========================================================
    Cheers
    Vikas

    Hi DenisonDoc,
    There is no option right now to set properties globally primarily for Text fields. You may make sure fields doesn't contain anything.
    Select all the text filed from the form and right click any of the selected field make sure all of them are selected choose properties --> Appearance there you can choose Font Size and Font type.
    - End users cant change size and type of font. It is up to designer.
    Regards,
    Ajlan Huda.

  • SharePoint Foundation Sandboxed Code Service - Unable to activate worker process proxy object within the worker process

    Issue:
    On a vanilla installation, the sandboxed code service (e.g. SPUCHostService.exe) is started; however, SPUCWorkerProcessProxy.exe and subsequently SPUCWorkerProcess.exe fails to start.
    Resolution/Workarounds attempted:
    Attempted 2 different Load balancing settings – local and remote (i.e. affinity)
    Ensured local computer policy on server for ‘RPC Endpoint Mapper Client Authentication’ and ‘Restrictions for Unauthenticated RPC clients’ is disabled.
    Ensured following key in registry is set properly - HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\RPC
    Attempted to bypass SharePoint’s check for certificate revocations at crl.microsoft.com
    Ensured the service account is added to the respective groups (e.g. Performance Log Users, Performance Monitor Users, IIS_IUSRS, WSS_ADMIN_WPG, WSS_WPG)
    Increased limit of ‘AbnormalProcessTerminationCount’ of SPUserCodeService via Powershell
    We have tried all possible workarounds from the following MSDN reference:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/02/08/error-the-sandboxed-code-execution-request-was-refused-because-the-sandboxed-code-host-service-was-too-busy-to-handle-the-request.aspx
    ULS:
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              fe8a               
    Medium               -  - Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000  
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              fe8c               
    Medium               -  - Error activating the worker process manager instance within the worker process. - Inner Exception: System.InvalidOperationException: Unable to activate worker
    process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000     at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()    
    02/21/2014 05:24:50.64  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service              ei0t               
    Medium               - Process creation/initialization threw an exception. Stopping this process. "ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000"
    02/21/2014 05:24:50.65  SPUCHostService.exe (0x0230)  0x0F74  SharePoint Foundation Sandboxed Code Service             
    fe87                Medium               -  - Error activating the worker process manager instance within
    the worker process. - Starting worker process threw - Inner Exception: System.InvalidOperationException: Unable to activate worker process proxy object within the worker process: ipc://38432b45-2f32-4926-ade2-ef53ae1cd501:7000     at Microsoft.SharePoint.UserCode.SPUserCodeWorkerProcess.CreateWorkerProcessProxies()   
    Any other insights on how I can troubleshoot the issue described?
    Thanks in advance!

    Hi ,
    For resolving your issue , you can do as the followings:
    1. Logged into the Web Server with the Timer Service Account.
    2. Ran the powershell command to check the SID of the account running the spucworkerprocessproxy.exe:  
    $(Get-SPManagedAccount -Identity "THE SERVICE ACCOUNT").Sid.Value
    3. Checked the registry :
    HKEY_USERS\[SID OF THE SERVICE ACCOUNT]\Software\Microsoft\Windows\CurrentVersion\WinTrust\Trust Providers\Software Publishing\State
    4. Changed the value 0x00023c00 to 0x00023e00
    In addition, here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/aae497df-5f0d-4f86-a724-c7b805ccd07f/sharepoint-sandboxed-code-service-troubles?forum=sharepointgeneralprevious
    http://blogs.technet.com/b/operationsguy/archive/2011/01/17/sharepoint-2010-sandboxed-code-solutions-and-web-proxy.aspx
    http://social.msdn.microsoft.com/Forums/en-US/c21e2c3a-a259-4d5f-8071-eff52b7bddc3/issue-sandbox-solution-too-busy-to-handle-the-request?forum=sharepointgeneralprevious
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Unable to Copy and Paste XML View with BI Office Add In

    Hi there,
    I'm having issues with the BI Add-In for MS Office. I am able to connect and insert views from within Excel or Powerpoint. However when I log into Answers using my browser and copy a compound answer, I am unable to paste it back into excel or Powerpoint.
    When I try to paste the view, I recieve the error "No Oracle BI view in clipboard".
    So I assume the error is with capturing that information in the clipboard. I've tried with both Internet Explorer and Firefox.
    Any help would be greatly appreciated...
    I'm using:
    Add-in v. 10.0.3
    OBIEE 10.1.3.3.3
    Thanks in advance,
    Tom
    Edited by: user11086798 on 3/06/2010 22:41

    Hi saichand, thanks for the link.
    I've looked through that thread and the work around the poster comes up with is not actually Office integration. He is able to simply import an image into his powerpoint. It doesn't appear to be able to refresh the data that way. I am looking to be able to paste in a report definition so that the data can be updated.
    Do you have any other suggestions?
    Thanks in advance,
    Tom

  • I have an 10x14" InDesign image that I'd like to shrink to fit within a 8.5x11 printed document.

    I have an 10"x14" InDesign image that I'd like to shrink to fit within a 8.5"x11" printed document (using InDesign) without losing the quality of the image (especially on print). What is the correct/least destructive process to do this?
    And how is it that you can view different image sizes on Flickr (of the same image) and it doesn't seem to effect the quality of the image?
    I have tried saving/exporting the InDesign image as an EPS file, then opening the file in Photoshop, adjusting the size to my liking, saving it as a Photoshop file, then placing that file in a new InDesign document, and the image comes up distorted looking/pixelated even with my screen zoomed at 100%. I've also tried this same process with exporting it as a PDF file instead of an EPS file with the same distorted/pixelated results.
    Help!?!?!  Thank you in advance!!
    Linds10m

    I am assuming you are in InDesign CS5:
    Change your InDesign Document Size, but before you do this you must make sure the "Enable Layout Adustment" is on.
    Under: Layout/Layout Adjustment/Check the "Enable Layout Adjustment" box is checked and adjust Snap Zone.
    ALSO: Make sure your horizontal and vertical margins touches your live area.
    Then you can change size of document

  • How to populate Tree structure from BAPI while tree grows or shrinks

    Hi All
    Currently I am populating the tree structure from BAPI based on the HLevel (Hierarchy  Level) parameter, but when ever insertion and deletion happens in the tree at any level in the UI and at the same time i am updating these tree node values with HLevel value(example : 1 is first level , 2 is second level, 3 is third level etc)  updating successfully& correctly  into the BAPI, no issues.
    Once it is updated into the BAPI, next time when i refreshed the UI then i am not populating the tree structure correctly from BAPI with updated new nodes based on the HLevel. when tree struture grows or shrinks in the BAPI after updating into BAPI from UI then i am not populating the tree sturcture correctly based on the HLevel value from the BAPI.
    Please let me know any sample code how to populate tree structure correctly when tree structure grows or shrinks based on the HLevel value ( Hierarchy Level , for example : 1 is level , 2 is 2nd level , 3 is third level nodes etc)
    anybody helps in this regard with sample code on the populating tree tructure then it would be great help to me.
    Thanks in advance
    Regards
    Kalki Reddy
    Edited by: KalkiReddy on Nov 29, 2009 3:48 PM

    Bapi output node:
    Value     | Text     | HLevel
    01     | A     | 1               
    0101     | AA       | 2
    010101     | AAA     | 3
    01010B     | AAB     | 3
    0102     | AB     | 2
    02     | B     | 1
    0201     | BA        | 2
    This code is used to build the tree in wdDoInit method
         IE_T_CatalogueNode catalogueNode = wdContext.nodeE_T_Catalogue();
         int size = catalogueNode.size();
         ICatalogoElement level1elem = null;
         for (int i = 0; i < size; i ++)
              IE_T_CatalogueElement catalogueElem = catalogueNode.getE_T_CatalogueElementAt(i);
              if (catalogueElem.getLevel().equals("1"))
                   // 1 Livello
                   level1elem = wdContext.createCatalogoElement();
                   level1elem.setKATALOGART_CODE(catalogueElem.getKatalogart());
                   level1elem.setCODEGRUPPE_CODE(catalogueElem.getCodegruppe());
                   level1elem.setCODE(catalogueElem.getCode());
                   level1elem.setCODE_DESCR(catalogueElem.getKatalogart_Descr());
                   level1elem.setDESCR(catalogueElem.getKatalogart_Descr());
                   wdContext.nodeCatalogo().addElement(level1elem);
                   for (int j = i + 1; j < size; j ++)
                        IE_T_CatalogueElement catalogueElem2level =
                                                 catalogueNode.getE_T_CatalogueElementAt( j );
                        String level2 = catalogueElem2level.getLevel();
                        if (level2.equals("2"))
                             ICatalogoElement level2elem = level1elem.nodeChild().createCatalogoElement();
                             level2elem.setKATALOGART_CODE(catalogueElem2level.getKatalogart());
                             level2elem.setCODEGRUPPE_CODE(catalogueElem2level.getCodegruppe());
                             level2elem.setCODE(catalogueElem2level.getCode());
                             level2elem.setCODE_DESCR(catalogueElem2level.getCodegruppe_Descr());
                             level2elem.setDESCR(catalogueElem2level.getCodegruppe_Descr());
                             level1elem.nodeChild().addElement(level2elem);
                             for (int k = j + 1; k < size; k ++)
                                  IE_T_CatalogueElement catalogueElem3level =
                                                           catalogueNode.getE_T_CatalogueElementAt( k );
                                  String level3 = catalogueElem3level.getLevel();
                                  if (level3.equals("3"))
                                       ICatalogoElement level3elem = level2elem.nodeChild().createCatalogoElement();
                                       level3elem.setKATALOGART_CODE(catalogueElem3level.getKatalogart());
                                       level3elem.setCODEGRUPPE_CODE(catalogueElem3level.getCodegruppe());
                                       level3elem.setCODE(catalogueElem3level.getCode());
                                       level3elem.setCODE_DESCR(catalogueElem3level.getCode_Descr());
                                       level3elem.setDESCR(catalogueElem3level.getCode_Descr());
                                       level2elem.nodeChild().addElement(level3elem);
    Damiano

  • After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    Even simpler than that.
    Clicking once in a text box selects it.
    Clicking once in a selected text box places the insertion point in the box.
    The clicks do not need to be close enough in time to be read as a double click.
    The same behaviour applies to table cells in Pages and in Numbers.
    Regards,
    Barry

  • Desktop Manager Folders getting unchecked and Unable to Read and Modify Filters with DM...

    Like most people I have sub folders within Outlook to keep clients and employees separated. I just upgraded to the 8330 from a Dino 7100i. I set up my folders under Email Settings, General, Choose Folders so that I can send email to the device that is important.
    The problem is I stop getting email from employees randomly and when I go check the Desktop Manager (DM) the boxes are unchecked. I've never had this problem with the Old BB. The folder structure is only a few deep, meaning: Inbox\Employee\Employee folders that are checked or not checked.
    Desktop Manager v4.6
    BB 8330 Curve - Sprint Firmware 4.5.0.77
    Anybody have any ideas? Your help will be greatly appreciated.
    I'm also unable to view and edit my Filters in this version of DM. The window is unreadable and all jammed together..... am I the only one with this problem?

    I am also having an issue viewing and editing my Filters.  They are all jammed together.  I have uninstalled the DM completely including all registry entries, recreated my profile in Outlook and reinstalled.  This has done nothing to fix the issue.  I am using DM v4.7, BB 8130 Pearl, Sprint Firmware 4.3.0.203, Outlook 2007 on a Vista Enterprise 32 bit machine.  Anyone have a fix for this issue?

  • Updated to firefox 4.0. since then my computer is very slow accessing the internet, websites and getting information from within a website.

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

Maybe you are looking for

  • Exporting (sharing) just a single scene in the middlw of many scenes?

    Exporting (sharing) just a single scene in the middlw of many scenes? I have just imported a 15 minute clip of some pets I have split it into 7 scenes scene 3 is of a dog while all the others are of rabbits Is it possible, I haven't found a way yet,

  • Microsoft ODBC for Oracle / Microsoft Server 2008 r2

    We are testing the operational system Windows Server 2008 r2 in one of our clients. This system does not accept the installation of the tool Microsoft ODBC for Oracle. We'd like to know how to install this Driver, once Microsoft's webpage does not me

  • Can't sync PalmV with Imac

    I have been using a Palm V with my PC for several years without problems. I recently purchased a new Imac and would like to sync my handheld with it so that I don't have to totally recreate an address book with dozens of names, adddresses and phone n

  • How to test a class with array which is being declared?

    Dear All I am doing a question which involved the day of the week. I had written a class which is name WeekDay and here is the code : public class WeekDay private int index; private static String[]dayStrings = {"Sunday","Monday","Tuesday","Wednesday"

  • Downloaded song missing

    I successfully downloaded a song and listened to it on my iPhone. I hadn't, since, synced back up with my computer so it did not get copied back to my iTunes. I'm not sure when it went missing, but I downloaded it on Saturday. Yesterday (Monday) was