Problem with jpanel size

Hi I want to add a view port to a JPanel
the main problem is that the Jpanel change size as the frame.
how can i make it independent from the frame so having it; own w, h
thanks
package help;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import javax.swing.*;
public abstract class MyFrame extends JFrame {
private static final long serialVersionUID = 1L;
private static JButton drawCircle, drawRectangle, drawSquare, drawStar, start, clear,quit,back, screenshoot;
static final int FPS_MIN = 0;
static final int FPS_MAX = 150;
static final int FPS_INIT = 0;
static int fps;
double x1,x2;
double y1,y2;
int dr =1;
int dy= 1;
int Selection=0;
boolean click=true; //check if start has been clicked
int width = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;  // screen width
int height = java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;     //screen higth
protected static int count;
int R,G,B;  //color
Cursor c;                    //cursor object
private static ShapePanel bpnl;
public MyFrame()
        R=G=B=0;
        int width = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;
        int height = java.awt.Toolkit.getDefaultToolkit().getScreenSize().height-100;
        JFrame frame=new JFrame();
        BorderLayout layout=new BorderLayout();
        frame.setLayout(layout);
        frame.setTitle("Game");
        //panel to hold buttons
        JPanel upPanel = new JPanel();
        upPanel.setLayout(new FlowLayout());
        upPanel.setSize(width, height/5);
        //panel to hold SLIDERS
        JPanel leftPanel = new JPanel();
        leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));
        leftPanel.setSize(50, height);
        //initialize buttons and add to the upPanel
        drawCircle=new JButton("Draw Circle");
        upPanel.add(drawCircle);
        drawStar=new JButton("Draw Star");
        upPanel.add(drawStar);
        drawRectangle=new JButton("Draw Rectangle");
        upPanel.add(drawRectangle);
        drawSquare=new JButton("Draw Square");
        upPanel.add(drawSquare);
        start=new JButton("Start");
        start.setBackground(Color.GREEN);
        //upPanel.add(start);
        clear=new JButton("Clear");
        upPanel.add(clear);
        back=new JButton("Back");
        upPanel.add(back);
        quit=new JButton("Quit");
        quit.setBackground(Color.red);
        upPanel.add(quit);  
        screenshoot=new JButton("ScreenShoot");
        c = new Cursor (Cursor.CROSSHAIR_CURSOR);     //Change cursor to cross hair
     this.setCursor (c);
        //new object spanel to hold TIMER
        JPanel spanel=new JPanel();
            spanel.setLayout(new GridLayout());
            //slider dimension construction
            JSlider sDimension = new JSlider(JSlider.HORIZONTAL,FPS_MIN, FPS_MAX, FPS_INIT);
            sDimension.setMajorTickSpacing(30);
            sDimension.setMinorTickSpacing(3);
            sDimension.setPaintTicks(true);
            sDimension.setPaintLabels(true);
            Font font = new Font("Serif", Font.ITALIC, 15);
            sDimension.setFont(font);
            sDimension.setBorder(BorderFactory.createTitledBorder("Shape Dimension"));
            //slider speed construction
            int FPS_MIN_s = 0;
            int FPS_MAX_s = 60;
            int FPS_INIT_s = 0;    //initial frames per second
            JSlider sSpeed = new JSlider(JSlider.HORIZONTAL,FPS_MIN_s, FPS_MAX_s, FPS_INIT_s);
            sSpeed.setBorder(BorderFactory.createTitledBorder("Shape Speed"));
         ////////////////////////// // slider colors////////////////////////////////////////////////////
            int FPS_MIN_C = 0;
            int FPS_MAX_C = 250;
            int FPS_INIT_C = 0;  
            JSlider sliderR= new JSlider(JSlider.HORIZONTAL,FPS_MIN_C, FPS_MAX_C, FPS_INIT_C);
            sliderR.setBorder(BorderFactory.createTitledBorder("Red Channel"));
            JSlider sliderG= new JSlider(JSlider.HORIZONTAL,FPS_MIN_C, FPS_MAX_C, FPS_INIT_C);
            sliderG.setMajorTickSpacing(50);
            sliderG.setMinorTickSpacing(25);
            sliderG.setPaintTicks(true);
            sliderG.setPaintLabels(true);
            sliderG.setFont(font);
            sliderG.setBorder(BorderFactory.createTitledBorder("Green Channel"));
            JSlider sliderB= new JSlider(JSlider.HORIZONTAL,FPS_MIN_C, FPS_MAX_C, FPS_INIT_C);
            sliderB.setBorder(BorderFactory.createTitledBorder("Blue Channel"));
          //     spanel.add(sSpeed,BorderLayout.EAST);
              frame.add(upPanel,BorderLayout.NORTH);
              frame.add(leftPanel,BorderLayout.WEST);
              bpnl = new ShapePanel(3000,3000);
                    System.out.println("panel width = "+bpnl.getWidth() +"  heigth = " + bpnl.getHeight());
                    bpnl.setFocusable(true);
              upPanel.setBackground(Color.DARK_GRAY);
              upPanel.setBorder(BorderFactory.createLineBorder(Color.white));
        frame.add(spanel,BorderLayout.SOUTH);       
        frame.add(bpnl, BorderLayout.CENTER);
        frame.setSize(width, height);
        frame.setVisible(true);               
           leftPanel.add(sliderR);
           leftPanel.add(sliderB);
           leftPanel.add(sliderG);
           leftPanel.add(sDimension,BorderLayout.WEST); 
             System.out.println("panel width = "+bpnl.getWidth() +"  heigth = " + bpnl.getHeight());
          public static  int getPanelWidth()
              System.out.println("panel width   "+bpnl.getWidth());
              return bpnl.getWidth();
          public static  int getPanelHeigth()
              System.out.println("Panel heigth  " +bpnl.getHeight());
              return bpnl.getHeight();
          public static void main(String args[])
              new MyFrame() {};
package help;
import java.awt.Cursor;
import java.awt.Graphics;
import javax.swing.JPanel;
class ShapePanel extends JPanel  {
     private static final long serialVersionUID = 1L;
     private javax.swing.Timer animationTmr;
     private float heigth;
     private float width;
     private Cursor c;
     public ShapePanel(int w, int h) {
                int W=w;
                int H=h;
                c = new Cursor (Cursor.CROSSHAIR_CURSOR);     //Change cursor to cross hair
                this.setCursor (c); 
                this.setPreferredSize(3000,3000);
     public void paintComponent(Graphics g) {
          super.paintComponent(g);
          g.fillRect(0, 0, this.getWidth(), this.getHeight());
    private void setPreferredSize(int i, int i0) {
    thanks

sorry i hope this is better
package help;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public abstract class MyFrame extends JFrame {
private static final long serialVersionUID = 1L;
int dr =1;
int dy= 1;
int Selection=0;
int width = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;  // screen width
int height = java.awt.Toolkit.getDefaultToolkit().getScreenSize().height-100;     //screen higth
private static ShapePanel bpnl;
public MyFrame()
        JFrame frame=new JFrame();
        BorderLayout layout=new BorderLayout();
        frame.setLayout(layout);
        bpnl = new ShapePanel(3000,3000);
        System.out.println("panel width = "+bpnl.getWidth() +"  heigth = " + bpnl.getHeight());
        bpnl.setFocusable(true);
          frame.add(bpnl);
        frame.setSize(width, height);
           pack();
        frame.setVisible(true);               
System.out.println("panel width = "+bpnl.getWidth() +"  heigth = " + bpnl.getHeight());
          public static  int getPanelWidth()
              System.out.println("panel width   "+bpnl.getWidth());
              return bpnl.getWidth();
          public static  int getPanelHeigth()
              System.out.println("Panel heigth  " +bpnl.getHeight());
              return bpnl.getHeight();
          public static void main(String args[])
              new MyFrame() {};
package help;
import java.awt.Cursor;
import java.awt.Graphics;
import javax.swing.JPanel;
class ShapePanel extends JPanel  {
     private static final long serialVersionUID = 1L;
     private Cursor c;
     public ShapePanel(int w, int h) {
                int W=w;
                int H=h;
                c = new Cursor (Cursor.CROSSHAIR_CURSOR);     //Change cursor to cross hair
                this.setCursor (c); 
                this.setPreferredSize(3000,3000);
     public void paintComponent(Graphics g) {
          super.paintComponent(g);
          g.fillRect(0, 0, this.getWidth(), this.getHeight());
    private void setPreferredSize(int i, int i0) {
   

Similar Messages

  • Problem with Jpanel repaintingl

    Hi!
    I have a problem with Jpanel.
    First , I add a Jscrollpane to the panel and I don't
    see it.
    Second, I have a paint method in the Jpanel and I do there some painting but when I exe the application I can see the panel painting only when I put the mouse cursor
    on the place where the panel need to be.
    It is very strange.
    Help me.
    Yair.

    Example code??
    Can't tell what's wrong otherwise.
    First , I add a Jscrollpane to the panel and I don't
    see it.Have you added anything to this JScrollPane? Unless you set the scroll bar policies to always on you won't see anything if you haven't added anything to the scrollpane.
    Also, if you're only adding this scrollPane to your JPanel initilise it with
    JPanel whippet = new JPanel(new BorderLayout())
    .. then when you add your scrollPanel to your JPanel do this to make sure its added slap in the in middle of it:
    whippet.add(yourScrollPanel, BorderLayout.CENTER);
    Bit more info please - duuuuuuuuuuuuuuuude (man, "Finding Nemo" was well funny didn't you think.. anyways, that's besides the point.... could just be my 8 year old mental age though.. who knows.)?

  • Problem with Cell size in Excel output of XML report

    Dear all,
    I am facing a problem with cell size when i run my XML report in Excel output. I found that it imitates the cell size of whatever i gave in the RTF. I cannot increase the cell size in RTF as my report contains 60 columns and max width of MS Word table is 22 inches.
    Can any one suggest a way of doing this which shows full data in Excel sheet depending on the column data size with out any word wrap.
    Thanks
    RAJ

    Hi ,
    You can try with
    <xsl:attribute xdofo:ctx="block" name="wrap-option">no-wrap</xsl:attribute>
    may be helpful to you
    Thanks,
    Ananth
    http://bintelligencegroup.wordpress.com/

  • Problem with font size, not showing up as expected.

    I've been wrestling with this for a few weeks now, but surely must be getting closer to having it resolved. It's just a problem with font size on just this one page.
    http://www.kgngroup.net/logos_and_packaging.html
    I want the body text to be 10px, but after two weeks, have played with every conceivable way, altering body font size in CSS and in the document itself. I've viewing it in Safari but others on Windows machines tell me that it is out of whack also.
    My main problem is that I can change the font size to extremes but it still shows up as the same size in the browser (about 12px.) I know changes can be made because I can modify the wording and that does change online. It's just a problem with the font size. Oh, and in the third column, the one to the right, in Dreamweaver, the font looks like it is miniscule, cannot even be read, but in the browser, since the style11 is applied, all three columns look equal size.
    Not sure where to go from here. I just want to get the body font down to 10 pixels.
    TIA,
    Ken

    John Waller wrote:
    I guess this a follow up to your earlier thread
    http://forums.adobe.com/message/3627681
    What would really help you in diagnosing issues such as this is to install the Firebug add-in for Firefox (as suggested in the earlier thread).
    Firebug shows you visually what CSS rules apply to whatever element you click on the screen.
    In this case, you have a confusion of CSS font sizes cascading on top of each other and that's confused again by mixing units for no real reason. .style11 is unnecessarily applied to lots of individual <p> tags. Remove those classes and delete the rule.
    e.g.
    The tiny font in the RHS column is affected first by
    .style8 {
    font-size: 0.5em;
    affecting the <td> then by
    .style11 {font-size: 75%}
    affecting the <p> tag.
    End result = tiny text (approx 2px).
    In these cases of mass confusion, my approach is to strip out all font sizing from the CSS and start over.
    Avoid %. Use px.
    Apply font sizing rules logically starting from the <body> tag downwards.
    That'll give you a solid baseline without weird effects.
    Ah, I find your answer worth repeating.
    Very cool that you have diagnosed so well and spelled it out here.
    I will get the Firefox add-on you mention, plus, print out this response and follow it like a recipe.
    It makes perfect sense and you have saved me from the 'clutter' of being wound up in too many directions with this because I could not make all of the connections that you have done here. I appreciate your help very much.
    Thank You,
    Ken

  • Problem with JPanel in JFrame

    hai ashrivastava..
    thank u for sending this one..now i got some more problems with that screen .. actually i am added one JPanel to JFrame with BorderLayout at south..the problem is when i am drawing diagram..the part of diagram bellow JPanel is now not visible...and one more problem is ,after adding 6 ro 7 buttons remaing buttons are not vissible..how to increase the size of that JPanel...to add that JPanel i used bellow code
    JFrame f = new JFrame();
    JPanel panel = new JPanel();
    f.getContentPane().add(BorderLayout.SOUTH, panel);

    Hi
    JFrame f = new JFrame();
    JPanel panel = new JPanel();
    // Add this line to ur code with ur requiredWidth and requiredHeight
    panel.setPreferredSize(new Dimension(requiredWidth,requiredHeight));
    f.getContentPane().add(BorderLayout.SOUTH, panel);
    This should solve ur problem
    Ashish

  • Weird problem with jpanel vs jframe

    I'm using jmathplot.jar from JMathTools which lets me do 3d plotting. I used a JFrame to get some code to work and it worked fine. Here's the code that worked for a JFrame:
    public class View extends JFrame
        private Model myModel;
        private Plot3DPanel myPanel;
        // ... Components
        public View(Model m)
            myModel = m; 
            // ... Initialize components
            myPanel = new Plot3DPanel("SOUTH");
            myPanel.addGridPlot("Test",myModel.getXRange(),myModel.getYRange(),myModel.getZValues());
            setSize(600, 600);
            setContentPane(myPanel);
            setVisible(true);
    }Here's the class that starts everything:
    public class TestApplet extends JApplet
        public void init()
            //Execute a job on the event-dispatching thread; creating this applet's GUI.
            try
                SwingUtilities.invokeAndWait(new Runnable()
                    public void run()
                        createGUI();
            catch (Exception e)
                e.printStackTrace();
        private void createGUI()
            System.out.println("Creating GUI");
            Model model = new Model();
            View view = new View(model);
    }And here's the Model:
    public class Model
        private double[] myXRange,myYRange;
        private double[][] myZValues;
        public Model()
            createDataSet();
        public double[] getXRange()
            return myXRange;
        public double[] getYRange()
            return myYRange;
        public double[][] getZValues()
            return myZValues;
        private void createDataSet()
            myXRange = new double[10];
            myYRange = new double[10];
            myZValues = new double[10][10];
            for(double i=0;i<10;i++)
                for(double j=0;j<10;j++)
                    double x = i/10;
                    double y = j/10;
                    myXRange[(int) i] = x;
                    myYRange[(int) j] = y;
                    myZValues[(int) i][(int) j]= Math.cos(x*Math.PI)*Math.sin(y*Math.PI);
    }However, as you can see, my main class is a JApplet because ideally I want View to be a JPanel that I add to the applet. All I did was change "extends JFrame" to "extends JApplet" and changed:
    setSize(600, 600);
    setContentPane(myPanel);
    setVisible(true);to
    this.add(myPanel);and added these two lines to createGUI():
            view.setOpaque(true);
            setContentPane(view);When I run it however, it appears really really small. It seems like its drawing the panel to the default size of the applet viewer and doesn't resize it when I resize the applet. I don't know if it's a problem with the library or if I'm doing something wrong in my applet.

    However, as you can see, my main class is a JApplet because ideally I want View to be a JPanel that I add to the applet. All I did was change "extends JFrame" to "extends JApplet" and (...)What do you mean? View extends JApplet? I thought View was meant to extend JPanel in the end...
    When I run it however, it appears really really small. It seems like its drawing the panel to the default size of the applet viewer and doesn't resize it when I resize the applet.Or, the panel has its preferred size, and this latter is too small. Actually the panel has the size its container's layout manager awards it (taking or not the panel's preferred, minimum, and maximum sizes into account). See the tutorial on [layout managers|http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html] .
    In particular, this line adds the myPanel to a parent panel (presumably, it is in class View which extends JPanel, whose default layout is FlowLayout):
    this.add(myPanel);
    I don't know if it's a problem with the library or if I'm doing something wrong in my applet.Likely not (presumably the library interfers only in how it computes the Plot3DPanel's preferred size). There's an easy way to tell: try to layout correctly a custom JPanel of yours, containing only e.g. a button with an icon. Once you understand the basics of layout management, revisit the example using ther 3rd-party library.
    N.B.: there are a lot of "likely" and "presumably" in my reply: in order to avoid hardly-educated guesses especially on what is or isn't in your actual code, you'd better provide an SSCCE , which means reproducing the problem without the 3rd party library.

  • Problem with JPanel.updateUI()

    Hello,
    i have a problem with updateUI(), here's a simple example what's wrong. just compile and run the following piece of code and look what happens after 2 seconds: the left panel will be decrease its width after calling updateUI(), but why? is it a bug of updateUI() or is it my fault?
    import java.awt.*;
    import javax.swing.*;
    public class Test extends JPanel
            private JList m_list;
            private DefaultListModel m_listModel;
            private JPanel m_buttons;
            public static GridBagConstraints creategbc (int x, int y, int w, int h, int wx, int wy, int f)
                    GridBagConstraints gbc = new GridBagConstraints();
                    gbc.gridx = x;
                    gbc.gridy = y;
                    gbc.gridwidth = w;
                    gbc.gridheight = h;
                    gbc.weightx = wx;
                    gbc.weighty = wy;
                    gbc.fill = f;
                    gbc.insets = new Insets(5, 5, 5, 5); // kleinen Rahmen ziehen
                    return gbc;
            public Test ()
                    GridBagLayout gbl = new GridBagLayout();
                    setLayout(gbl);
                    GridBagConstraints gbc;
                    initButtons();
                    gbc = creategbc(0, 0, 1, 1, 20, 100, GridBagConstraints.NONE);
                    gbc.anchor = GridBagConstraints.NORTH;
                    gbl.setConstraints(m_buttons, gbc);
                    add(m_buttons);
                    initList();
                    JScrollPane sp = new JScrollPane(m_list);
                    gbc = creategbc(1, 0, 1, 1, 100, 100, GridBagConstraints.BOTH);
                    gbl.setConstraints(sp, gbc);
                    add(sp);
            public void addItem (String item)
                    m_listModel.addElement(item);
            public void initList ()
                    m_listModel = new DefaultListModel();
                    m_list = new JList(m_listModel);
            public void initButtons ()
                    m_buttons = new JPanel();
                    m_buttons.setLayout(new GridLayout(4, 1, 0, 20));
                    m_buttons.add(new JButton("Neu"));
                    m_buttons.add(new JButton("Bearbeiten"));
                    m_buttons.add(new JButton("L�schen"));
                    m_buttons.add(new JButton("Abfrage"));
            public static void main (String[] args)
                    JFrame f = new JFrame();
                    Test t = new Test();
                    f.setContentPane(t);
                    f.setSize(600, 450);
                    f.setVisible(true);
                    try
                            Thread.sleep(2000);
                    catch (Exception e)
                    t.addItem("Hallo");
                    t.updateUI();

    Hello,
    i have a problem with updateUI(), here's a simple
    example what's wrong. just compile and run the
    following piece of code and look what happens after 2
    seconds: the left panel will be decrease its width
    after calling updateUI(), but why? is it a bug of
    updateUI() or is it my fault?updateUI() its called when the L&F is changed, there is
    rarely a case when you need to call updateUI().
    Why do you call updateUI() if you remove the call to updateUI()
    everything will work OK.
    merry xmas

  • Problem with JPanel and JDesktopPane

    Hi,
    I am having a problem with my app and I wonder if someone can see what I am doing wrong. I have a class that extends JFrame that holds a centered JPanel to draw on. There are also 3-4 other JInternalFrames that are in use.
    From what I have read to use JDesktopPane to organize the JInternalFrames, all you do is add the JInternalFrames to the JDesktopPane and setContentPane to be the JdesktopPane:
            Jpanel panel = new JPanel();
            JDesktopPane dm = new JDesktopPane();
            setContentPane(dm);
            dm.add(panel, BorderLayout.CENTER);
            dm.add(internalFrame1);
            dm.add(internalFrame2);
            dm.add(internalFrame3);But as soon as I add the panel to the JDesktopPane then my JPanel doesnt show up. As I had it before I was adding the panel to the content pane of the Jframe, and adding the JinternalFrames to the layeredPane like this:
            getContentPane().add(panel, BorderLayout.CENTER);
            lp = getLayeredPane();
            lp.add(internalFrame1);
            lp.add(internalFrame2);
            lp.add(internalFrame3);and this worked but the JInternalFrames behaved badly, not getting focus or moving to the top frame when clicked, which I guess is what JDesktopPane is supposed to do. But how do I get my original JPanel in my JFrame to show up when added to the JDesktopPanel?
    Am I missing something here?
    Thanks,
    Paul

    Thanks for your response. I will try that when I get home, although I will be surprised if that works because I am already using setPreferredSize() . It seemed to me that once a Jframe's content pane gets assigned to a JDesktopPane, then the JPanel no longer has anywhere to draw itself, as according to the Sun documentation, you can only add a JInternalFrame to a JDesktopPane.
    So I am thinking its not possible to have a JPanel as the content pane of a JFrame while having a JDesktopPane containing my JInternalFrames. Is this indeed the case?
    Thanks,
    Paul

  • Printing Problem with custom size paper in Illustrator

    Hi having problems with my custom sized paper print using my canon printers it's the same on both the ip100 and the pro-100s,  it was printing fine until i've updated my illustrator and mac os Yosemite, it prints the image at a reduced size on the paper to what it should be does anyone have any understanding of this? I've tried everything i know, is this a driver or system problem?

    Hi there wasn't an option to set the default printer to pdf where would I do this?
    I've done a bit of a work around that seems to be working. I've put the page set up as A4 and then clicked on the printer utility custom settings and then unticked detect paper width, so I can put through the paper I want just got to tweak the x and y to get it right, its not the best but sitting here for four hours trying to figure it out, it will have to do for now. Thanks Jacob for your help, no doubt I'll be back in the morning, I'm burnt out now!

  • Having problem with "artwork size & resolution exceeds the max that can be rasterized"

    Hi all,
    Ok, I created a 162.7" x 90.6" document (artboard) for an exhibition display I'm designing. The document was created using all the defaults - i think this is where i went wrong. Illustrator is now telling me that "the combination of artwork size and resolution exceeds the maximum that can be rasterized" after i open the document and when i try to add a drop shadow to anything.
    Other than some vector graphics i created in illustrator, I only have 3 180ppi and 4 300ppi photos tranfered right off the photograpers camera.
    I selected :
    1. "Print Document" from the initial splash window.
    2. I entered the artboard size, bleed and left the "Raster Effects" setting to "High (300ppi)"
    I think leaving the Raster Effects setting at 300ppi is where the problem is.
    Do i have to create a new document or can i fix the existing one?

    nados you are a little confused that's all I think things are ll right and you are probably set to go with out going to Photoshop.
    1. Your file is probably fine as is
    2. Make certain you images are linked and not embedded
    3. Your Images are probably ok as far as they are for the the specs required do not lower the resolution just make certain they are linked.
    You may have to reimport them and in the place dialog make certain link is checked.
    4. The Raster Image Effects setting is fine leave it as is.
    5. The jpegs are fine lee your images as is if that was what was supplied to you and they look clean.
    6. When saving the file save as .AI format and in the AI save as option dialog uncheck include linked files
    (you will send them the jpegs as well as the AI file.)
    7. Send the images in what ever format they are now since that is jpeg leave it be just make certain the dimensions are the same as is being used in the document at 100%.
    8 Make Certain you select the text and got Type> Create Outlines before saving the file.
    9 Do not export the file to any other format.
    10 Send the printer production house the AI file and the Jpegs you will be fine.
    You should not have a problem with this file.

  • Problem with table size (initial extent)

    Hi,
    I have imported a table from my client's database, which shows the following size parameters as displayed from the user_segments table :-
    bytes : 33628160
    blocks : 4105
    extents : 1
    initial_extent : 33611776
    next_extent : 65536
    The number of rows in the table is 0 (zero). I am wondering how the table size could become so large, while other tables in the schema in the same tablespace have normal initial extent size.
    I then created a tablespace with an initial and next extent of 64k each, and imported the data into the tablespace, after which the table size and the initial extent for the table remained to be 33611776. This is the problem with 4-5 other tables out of a total of 500 tables.
    Of course if i drop and recreate the table, there is no problem, and the initial extent size and the table size becomes 64k, same as per the tablespace.
    Any suggestions? I do not want to drop the tables and recreate them.
    Because of this problem, even an attempt to import a blank database is consuming 2 GB of hard disk space.
    Thanks in advance
    DSG

    I don't think you can stop the extent from being allocated when you import the table.
    Even if you try to let the table inherit storage parameters from the tablespace, it will still allocate as many 64K extents as it needs to get to the 33M size in the table's (imported) storage parameter. I have also seen that when trying to change storage during an import like that, you can look in dba_tables and see the table has an ititial setting of 33M even though when you look in dba_segments you'll see that every extent allocated was in fact 64K. The dba_tables table is getting populated directly from the import and will therefore report the wrong number.
    Perhaps you can import then create table as... to put the tables in a better storage set up. (Letting tables inherit from the tablespace is the best way to go...no fragmentation that way). You might want to get the client to let you revamp the storage since theres no good reason to have one huge extent like that.

  • Problem with screen size in Premiere Pro CS5?

    I'm making a movie in Premiere Pro CS5 and I've ran into a problem with the screen size. The source screen shows my footage in widescreen (16:9) but my project screen is playing the widescreen footage in standard size (4:3) so it is cutting off some of the footage from the screen. I would like to make my entire project standard size so how do I do that? (Most of the chopped off footage was adjusted in After Effects so does that have anything to do with it?)
    Thanks for any help you can give!

    The properties of the footage are:
    872 x 486
    00;00;25;00, 29.97 fps
    48000 Hz - 32-bit Float - Stereo
    The properties of the sequence are:
    Editing Mode: DV NTSC
    Timebase: 29.97 frames/second
    Video:
    Frame Size: 720 horizontal 480 vertical 4:3
    Pixel Aspect Ratio: D1/DV NTSC (0.9091)
    Fields: Lower Field First
    Display Format: 30fps Drop-frame Timecode
    Audio:
    Sample Rate: 48000 Hz
    Display Format: Audio Samples
    Video Previews:
    Preview File Format: NTSC DV
    Codec: DV NTSC
    Width: 720
    Height: 480
    I'm also quite a beginner at Premiere Pro and basically all the Adobe programs, so are there any good websites (preferably free) that give good help and information for beginners like me?
    Thanks!

  • Do you see problems with text size when importing from Photoshop?

    Hi all -
    We're working on improving some things in the Photoshop-to-Reflow workflow, and right
    now specifically investigating trouble with imported text.
    Aside from the desire to have support for local fonts, are there any problems you run into
    when importing text from Photoshop into Reflow? We've heard some issues with text size and position,
    but want to make sure we understand all of the cases.
    If you have problems in this area, please share them in this thread, and I'd also love to get some
    sample PSDs that demonstrate the problems. (You can send them directly to me; vmitnick at adobe dot com .)
    thanks,
    Vic

    I'm using CS4.. and I'm using the standard "Save As" .pdf features....
    and I'm reading it with adobe acrobat pro 9.1...
    i think it has something to do with compression. but i can't figure out how to solve it. converting the text to symbols maybe?

  • Problem with export size @ Premiere CS3

    Hello, I have a problem that until recently did not bother me so much and that the final export @ the premierCS3 ( also @ CS4 and CS5 )
    The films I make are 5-10 minutes long, so usualy the final size is big, but still not THAT BIG! and i can work with this size.
    Lately  I've edited a feature film and the final export is 25GB and it simply  intolerable that even after encodings using simple software I got to 7Gb and quality went down significantly.
    How do I solve this trouble? I do not think that movie that long (1h:45m) should be bigger than 1GB!!
    Hope you can help me
    Wishing you a good week,
    ROEi.

    Go to the PPro FAQ List http://forums.adobe.com/community/premiere/faq_list and read about export options
    A DV AVI file is about 13Gig per hour... export size is determined by the CODEC and compression used, plus the data rate
    Some CODECS have better compression than others, and a higher data rate will create a larger file
    You need to tell what CODEC you are using for export, and what data rate

  • Problem with model size in Visual Composer

    Hello madam/sir,
    We are using ECC 5.0 and VC 700.8.0.1. We got error message during
    deployment "Error in compiling Flex application. Branch between 19217
    and 228774 around line 0 exceeds 32K". When we delete several blocks in
    the model, it works good. So tried to delete different blocks so we
    think that the problem is not with specific block but with model size.
    Our model is in one iView. We cannot use additional nested
    iViews because we have HTML View blocks that cannot be in
    nested iView (according to VC documentation). Is there any solution for
    this error? What does it mean?
    Best Regards,
    Sergey Kozyrev

    I agree with Ashutosh, you have to remodeling your model. You can also try to restart VC and deploy your model again, this might also help sometimes (I had sometimes the issue, that I removed any components and then I get the 32K error, after restarting the error disappeared).
    You can also check if you have any global entry list, which you do not use in your model, this also could help to reduce you model size.
    Best Regards,
    Marcel

Maybe you are looking for

  • How can I accept 3rd party license agreement on pdf files?

    I was sent my tax return by my accountant.  It is an adobe reader XI pdf file.  I can not open the file because it wants me to accept a 3rd party pc license agreement to open the pdf file.  There is no hyperlink prompt to accept the license agreement

  • Detecting transform errors when using org.xml.sax.XMLFilter

    I am using javax.xml.transform.sax.SAXTransformerFactory.newXMLFilter to transform xml against a pipeline of stylesheets (See function testPipelineTransform in the example below). The process works okay, excepting that I cannot figure out how to dete

  • Lotus Notes - Create .pdf and file size limits

    Is there a way to increase the 100MB file size limit in Lotus Notes create .pdf option?

  • Can RD for Administration be used to install RD Gateway?

    Hello, Have a Server 2008 R2 virtual machine running in a web hosting environment. The company has enabled Remote Desktop Administration and we have been using RD Connection to access the virtual server without any problem. However, due to firewall c

  • Problems with iPhone 6 camera and snapchat

    So I got an iPhone 6 with 16 GB of storage for christmas. Overall, I'm very pleased with it, but the one thing that has been bothering me is the camera; both the regular one and on snapchat. Nothing is wrong with the front camera, but it is the camer