Is it a bug? GridBagLayout  with textField

Hi,
The following method does not work fine.
The textfield field gets all the space
but if i change
JTextField field = new JTextField();
with
JPanel field = new JPanel();
it will work fine.
I think there is a problem with GridBagLayout
and textField. is it a bug in jdk1.2
public JPanel getCPane() {
int XUNIT = 5;
int YUNIT = 100;
JPanel pane = new JPanel();
JPanel pane1 = new JPanel();
JTextField field = new JTextField();
pane1.setBackground(Color.red);
pane1.setPreferredSize(new Dimension(2*XUNIT, YUNIT));
field.setPreferredSize(new Dimension(6*XUNIT, YUNIT));
pane.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.insets = new Insets(0,0,0,0);
c.weightx = c.weighty = 0;
c.gridx = 0; c.gridy = 0;
c.gridwidth = 2*XUNIT; c.gridheight = YUNIT;
pane.add(pane1, c);
c.weightx = c.weighty = 1;
c.gridx = 2; c.gridy = 0;
c.gridwidth = 6*XUNIT; c.gridheight = YUNIT;
pane.add(field, c);
return pane;

Any solution please

Similar Messages

  • Bug in WITH clause (subquery factoring clause) in Oracle 11?

    I'm using WITH to perform a set comparison in order to qualify a given query as correct or incorrect regarding an existing solution. However, the query does not give the expected result - an empty set - when comparing the solution to itself in Oracle 11 whereas it does in Oracle 10. A minimal example os posted below as script. There are also some observations about changes to the tables or the query that make Oracle 11 returning correct results but in my opinion these changes must not change the semantics of the queries.
    Is this a bug or am I getting something wrong? The Oracle versions are mentioned in the script.
    -- Bug in WITH clause (subquery factoring clause)
    -- in Oracle Database 11g Enterprise Edition 11.2.0.1.0?
    DROP TABLE B PURGE;
    DROP TABLE K PURGE;
    DROP TABLE S PURGE;
    CREATE TABLE S (
         m     number NOT NULL,
         x     varchar2(30) NOT NULL
    CREATE TABLE K (
         k char(2) NOT NULL,
         x varchar2(50) NOT NULL
    CREATE TABLE B (
         m     number NOT NULL ,
         k char(2) NOT NULL ,
         n     number
    INSERT INTO S VALUES(1, 'h');
    INSERT INTO S VALUES(2, 'l');
    INSERT INTO S VALUES(3, 'm');
    INSERT INTO K VALUES('k1', 'd');
    INSERT INTO K VALUES('k2', 'i');
    INSERT INTO K VALUES('k3', 'm');
    INSERT INTO K VALUES('k4', 't');
    INSERT INTO K VALUES('k5', 't');
    INSERT INTO K VALUES('k6', 's');
    INSERT INTO B VALUES(1, 'k1', 40);
    INSERT INTO B VALUES(1, 'k2', 30);
    INSERT INTO B VALUES(1, 'k4', 50);
    INSERT INTO B VALUES(3, 'k1', 10);
    INSERT INTO B VALUES(3, 'k2', 20);
    INSERT INTO B VALUES(3, 'k1', 30);
    INSERT INTO B VALUES(3, 'k6', 90);
    COMMIT;
    ALTER TABLE S ADD CONSTRAINT S_pk PRIMARY KEY (m);
    ALTER TABLE K ADD CONSTRAINT K_pk PRIMARY KEY (k);
    ALTER TABLE B ADD CONSTRAINT B_S_fk
    FOREIGN KEY (m) REFERENCES S(m) ON DELETE CASCADE;
    CREATE OR REPLACE VIEW v AS
    SELECT S.m, B.n
    FROM S JOIN B ON S.m=B.m JOIN K ON B.k=K.k
    WHERE K.x='d'
    ORDER BY B.n DESC;
    -- Query 1: Result should be 0
    WITH q AS
    SELECT S.m, B.n
    FROM S JOIN B ON S.m=B.m JOIN K ON B.k=K.k
    WHERE K.x='d'
    ORDER BY B.n DESC
    SELECT COUNT(*)
    FROM
    SELECT * FROM q
    MINUS
    SELECT * FROM v
    UNION ALL
    SELECT * FROM v
    MINUS
    SELECT * FROM q
    -- COUNT(*)
    -- 6
    -- 1 rows selected
    -- Query 2: Result set should be empty (Query 1 without counting)
    WITH q AS
    SELECT S.m, B.n
    FROM S JOIN B ON S.m=B.m JOIN K ON B.k=K.k
    WHERE K.x='d'
    ORDER BY B.n DESC
    SELECT *
    FROM
    SELECT * FROM q
    MINUS
    SELECT * FROM v
    UNION ALL
    SELECT * FROM v
    MINUS
    SELECT * FROM q
    -- M N
    -- null 10
    -- null 30
    -- null 40
    -- 1 40
    -- 3 10
    -- 3 30
    -- 6 rows selected
    -- Observations:
    -- Incorrect results in Oracle Database 11g Enterprise Edition 11.2.0.1.0:
    -- Query 1 returns 6, Query 2 returns six rows.
    -- Correct in Oracle Database 10g Enterprise Edition 10.2.0.1.0.
    -- Correct without the foreign key.
    -- Correct if attribute x is renamed in S or K.
    -- Correct if attribute x is left out in S.
    -- Correct without the ORDER BY clause in the definition of q.
    -- Only two results if the primary key on K is left out.
    -- Correct without any change if not using WITH but subqueries (see below).
    -- Fixed queries
    -- Query 1b: Result should be 0
    SELECT COUNT(*)
    FROM
    SELECT * FROM
    SELECT S.m, B.n
    FROM S JOIN B ON S.m=B.m JOIN K ON B.k=K.k
    WHERE K.x='d'
    ORDER BY B.n DESC
    MINUS
    SELECT * FROM v
    UNION ALL
    SELECT * FROM v
    MINUS
    SELECT * FROM
    SELECT S.m, B.n
    FROM S JOIN B ON S.m=B.m JOIN K ON B.k=K.k
    WHERE K.x='d'
    ORDER BY B.n DESC
    -- COUNT(*)
    -- 0
    -- 1 rows selected
    -- Query 2b: Result set shoud be empty (Query 1b without counting)
    SELECT *
    FROM
    SELECT * FROM
    SELECT S.m, B.n
    FROM S JOIN B ON S.m=B.m JOIN K ON B.k=K.k
    WHERE K.x='d'
    ORDER BY B.n DESC
    MINUS
    SELECT * FROM v
    UNION ALL
    SELECT * FROM v
    MINUS
    SELECT * FROM
    SELECT S.m, B.n
    FROM S JOIN B ON S.m=B.m JOIN K ON B.k=K.k
    WHERE K.x='d'
    ORDER BY B.n DESC
    -- M N
    -- 0 rows selected

    You're all gonna love this one.....
    The WITH clause works. But not easily.
    Go ahead, build the query, (as noted in a recent thread, I, too, always use views), set the grants and make sure DISCOVERER and EULOWNER have SELECT privs.
    1. Log into Disco Admin as EULOWNER. Trust me.
    2. Add the view as a folder to the business area.
    3. Log into Disco Desktop as EULOWNER. Don't laugh. It gets better.
    4. Build the workbook and the worksheet (or just the worksheet if apropos)
    5. Set the appropriate "sharing" roles and such
    6. Save the workbook to the database.
    7. Save the workbook to your computer.
    8. Log out of Desktop.
    9. Log back into Desktop as whatever, whoever you usually are to work.
    10. elect "open existing workbook"
    11. Select icon for "open from my computer". See? I told you it would get better!
    12. Open the save .dis file from your computer.
    13. Save it to the database.
    14. Open a web browser and from there, you're on your own.
    Fortran in VMS. Much easier and faster. I'm convinced the proliferation of the web is a detriment to the world at large...On the other hand, I'm also waiting for the Dodgers to return to Brooklyn.

  • Bug: Scaling DisplayObject with TextField Child

    Hi,
    my app has a number of DisplayObjectsContainers of type Sprite. Among others, these objects each have a TextField as their child. Scaling the Sprite object does not properly scale its child TextField. Also, in case the Sprite object is not scaled directly, but indirectly by adding it to a scaled Container, AIR 2.6 shows the same behaviour on the iPad. renderMode is set to gpu.
    Seems to me like a bug, since the same code runs properly on desktop and on android.
    How can this be solved??
    Thanks in advance
    LLD

    So I'm the only one with this problem? I still hope to get some feedback on that one.
    Below is a small class that shows the problem. Just add it to your project, instantiate it and put it on the stage. Don't forget to set renderMode to gpu and let it run on iPad and on other platforms. You see the difference?
    Here's the code:
    package
        import flash.display.Sprite;
        import flash.events.TimerEvent;
        import flash.text.TextField;
        import flash.text.TextFormat;
        import flash.utils.Timer;
        public class TestScale extends Sprite
            private var ScaleObj:Sprite;
            private var TF:TextField;
            private var _timer:Timer;
            private var _scale:Number = 1.0;
            private var _dir:int = 1;
            public function TestScale()
                super();
                this.graphics.beginFill(0x333333);
                this.graphics.drawRect(0,0,500,500);
                this.graphics.endFill();
                ScaleObj = new Sprite();
                ScaleObj.graphics.lineStyle(1,0x000000);
                ScaleObj.graphics.beginFill(0xeeeeee);
                ScaleObj.graphics.drawRoundRect(0,0,150,40, 6,6);
                ScaleObj.graphics.endFill();
                ScaleObj.x = 100;
                ScaleObj.y = 100;
                TF = new TextField();
                TF.width = 140;
                TF.x = 4;
                TF.y = 5;
                TF.defaultTextFormat = new TextFormat("_sans", 15, 0x000000);
                TF.text = "Just a scaling test";
                TF.selectable = false;
                ScaleObj.addChild(TF);
                addChild(ScaleObj);
                _timer = new Timer(200);
                _timer.addEventListener(TimerEvent.TIMER, onTick);
                _timer.start();
            private function onTick(event:TimerEvent):void
                _scale += 0.1 * _dir;
                if(_scale > 2.0 || _scale < 0.2)
                    _dir = _dir * -1;
                ScaleObj.scaleX = _scale;
                ScaleObj.scaleY = _scale;
    Thanks in advance for any helpful input!!
    Best regards
    LLD

  • FlashPro CS6 BUG - selecting items in library with textfields - fixed in latest 5.5.1, back in CS6!

    This bug was removed from updated CS5.5, and it is back in it's extreme annoyance in CS6.
    Whenever I select in the library a symbol, which contains textfields who's font is set to a custom font (i.e., Text-Project, linked to Verdana), for EACH of the textfields in the selected item, and in all containing items, the output window traces:
    "Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts."
    On certain items, it gets traced 20 or 30 times, and it slows down library selection incredibly, making the library almost unusable.

    No,
    I just select an item in the library, which contains textfields with custom font set (that is when you name a font yourself).
    Flash freezes, for some complex items it freezes up to 60 seconds, and when it comes back, in the output window you have one message for each textfield, also in nested clips.
    For complex clips now I go to make a cup of coffee if by mistake I click on them in the library

  • GUI problem with textfields, reading in text from a textpad

    Alright well, here is my problem. I am having trouble with aliging the textfields to how I want it but I can't get it to come out how I want it. First, I am trying to figure out how to have the some text appear right above a textfield. Example:
    File Name
    I can't get it appear that way, the text appears side to side with the textfield. And the other problem is how can I made the size of textfield to how I want it. I was reading that you have to assign a specfic number in the text field.
    This is the code I have so far:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class IP_Header extends JApplet
    private JTextField lookUp, showInfo;
    private JButton analyze;
    private JLabel msg;
    public void init()
    JPanel p1 = new JPanel();
    p1.setLayout(new GridLayout(3,2));
    p1.add(new JLabel("File Name"));
    p1.add(lookUp = new JTextField());
    p1.add(analyze = new JButton("Analyze"));
    p1.add(showInfo = new JTextField());
    msg = new JLabel(" ");
    Container cp = getContentPane();
    cp.setLayout(new BorderLayout());
    cp.add(p1, BorderLayout.NORTH);
    With this what I am tryin to do is as follows:
    File Name
    * "TextField" * *
    **************** * This is a textfield where I am just going to
    * have some text appear in it
    * "Button" * *
    Thank you for your help. I hope you can help me. I haven't done java for a quite a while. Thanks again

    Thanks for help ... really helpful and understanding. I am trying to read a file from the computer which has some numbers in it and I want those numbers to be shown on the textfields individually. The numbers are in a notepad file and they are .... 4, 5, 200, 780, 1, 0, 0, 12, 6, 0, 129, 24, 21, 44, 133, 62, 159, 7. I got the program to compile and everything by adding the code that I believe should work . But whenever I put the file name in and press the button analyze ... it gives me a error saying "Exception: access denied (java.io.FilePermission c:\TCP read) .. can't quite get it ...here the code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    public class IP_Header extends JApplet
        private JTextField lookUp, showInfo;
        private JButton analyze;
        private JLabel msg;
        public void init()
            GridBagLayout gridbag = new GridBagLayout();
            JPanel p1 = new JPanel(gridbag);
            GridBagConstraints gbc = new GridBagConstraints();
            gbc.gridwidth = gbc.REMAINDER;     // one component per row
            gbc.insets = new Insets(0,20,5,0); // spacer [top, left, bottom, right]
            gbc.weightx = 1.0;                 // allows horizontal placement
            gbc.anchor = gbc.WEST;             // align left
            p1.add(new JLabel("File Name"), gbc);
            p1.add(lookUp = new JTextField(16), gbc);
            p1.add(analyze = new JButton("Analyze"), gbc);
            p1.add(showInfo = new JTextField(16), gbc);
            // center section of content pane border layout
            // First Panel - 2 rows, 4 columns
            JPanel p2 = new JPanel(gridbag);
            gbc.insets = new Insets(2,0,0,0);
            gbc.anchor = gbc.CENTER;
            JTextField verText = new JTextField(8);
            JTextField HLENText = new JTextField(8);
            JTextField ServiceType = new JTextField(8);
            JTextField TotalText = new JTextField(8);
            gbc.gridwidth = 1;
            p2.add(new JLabel("VER"), gbc);
            p2.add(new JLabel("HLEN"), gbc);
            p2.add(new JLabel("Service Type"), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p2.add(new JLabel("Total Length"), gbc);
            gbc.gridwidth = 1;
            p2.add(verText, gbc);
            p2.add(HLENText, gbc);
            p2.add(ServiceType, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p2.add(TotalText, gbc);
            // Second Panel - 4 rows, 3 columns
            JPanel p3 = new JPanel(gridbag);
            JTextField fragText = new JTextField(8);
            JTextField flags = new JTextField(8);
            JTextField fragOffText = new JTextField(8);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p3.add(new JLabel("Fragmentation ID"), gbc);
            p3.add(new JLabel("Flags"), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(new JLabel("Fragmentation Offset"), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p3.add(fragText, gbc);
            p3.add(flags, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(fragOffText, gbc);
            JTextField ttlText = new JTextField(8);
            JTextField protocolText = new JTextField(8);
            JTextField headText = new JTextField(8);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p3.add(new JLabel("TTL"), gbc);
            p3.add(new JLabel("Protocol"), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(new JLabel("HeaderChecksum"), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p3.add(ttlText, gbc);
            p3.add(protocolText, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p3.add(headText, gbc);
            // Third Panel - 4 rows, 4 columns
            JPanel p4 = new JPanel(gridbag);
            JTextField sIP1text = new JTextField(4);
            JTextField sIP2text = new JTextField(4);
            JTextField sIP3text = new JTextField(4);
            JTextField sIP4text = new JTextField(4);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p4.add(new JLabel("SourceIP"), gbc);
            p4.add(new JLabel(" "), gbc);
            p4.add(new JLabel(" "), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(new JLabel(" "), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p4.add(sIP1text, gbc);
            p4.add(sIP2text, gbc);
            p4.add(sIP3text, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(sIP4text, gbc);
            JTextField dIP1text = new JTextField(4);
            JTextField dIP2text = new JTextField(4);
            JTextField dIP3text = new JTextField(4);
            JTextField dIP4text = new JTextField(4);
            gbc.insets = new Insets(5,0,0,0);
            gbc.gridwidth = 1;
            p4.add(new JLabel("Destination IP"), gbc);
            p4.add(new JLabel(" "), gbc);
            p4.add(new JLabel(" "), gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(new JLabel(" "), gbc);
            gbc.insets = new Insets(2,0,0,0);
            gbc.gridwidth = 1;
            p4.add(dIP1text, gbc);
            p4.add(dIP2text, gbc);
            p4.add(dIP3text, gbc);
            gbc.gridwidth = gbc.REMAINDER;
            p4.add(dIP4text, gbc);
            JPanel panel = new JPanel(gridbag);
            gbc.fill = gbc.HORIZONTAL;
            gbc.insets = new Insets(0,5,0,5);
            panel.add(p2, gbc);
            panel.add(p3, gbc);
            panel.add(p4, gbc);
            msg = new JLabel(" ");
            Container cp = getContentPane();
            cp.setLayout(new BorderLayout());
            cp.add(p1, "North");
            cp.add(panel);
            setSize(450,375);
             analyze.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        String array[] = new String[18];
                        String blankString = new String();
                        String tempString = lookUp.getText();
                        showInfo.setText(array[0]);
                        try
                             FileReader fr = new FileReader(tempString);
                             BufferedReader br = new BufferedReader(fr);
                             String line = br.readLine();
                             StringTokenizer st = new StringTokenizer (line,",");
                             for (int i=0; i<=18; i++)
                                  array[i] = st.nextToken().trim();
                        catch(Exception f)
                             System.out.println("Exception: " + f.getMessage());
    }

  • Problem with TextField formatting

    I'm having a little bit of a problem with this very basic bit
    of code. The following code works fine: (I apologize for not having
    it in a format that may be more suitable)
    this.createTextField("my_text", this.getNextHighestDepth(),
    10, 70, 400, 100);
    my_text.text = "This is my TextField.";
    //my_text.embedFonts = true;
    However, for some reason, this doesn't work. I'm baffled by
    why uncommenting this simple line of code makes it not show up:
    this.createTextField("my_text", this.getNextHighestDepth(),
    10, 70, 400, 100);
    my_text.text = "This is my TextField.";
    my_text.embedFonts = true;
    Any help would be appreciated.

    My guess is that you forgot a few things to work with
    embedded fonts...
    1) Have you embedded the font you want to use inside your
    library and given it a unique id.
    2) If you did #1, try this...

  • New bug introduced with Keynote 5.2 - Set timing and order of each build has stopped working properly on Smart Builds

    Hi there,
    We're heavy users of Keynote and have noticed a new bug has recently been introduced into something that was stable. I think it has emerged in Keynote 5.2, could have been Keynote 5.1 also.
    It's in the area of Set Timing and Order of each build when used on a Smartbuild. You can no longer set the Start Build field for each instance within the Smart build when the instances are interspersed between other items. The Start build field is just blank and unselectable.
    To see this :
    1. Create a bullet point list with 4 lines
    2. Set build to Appear
    3. Set "Set Timing and Order of each Build" to on
    4. Create a Smart Build - set to flip
    5. On the Smart Build Set "Set Timing and Order of each Build" to on
    5. re-order the items in your Build Order so that they alternate between the bullet point and the smart build flip
    At this point, you used to be able to set the bullets so that they Started on Click and then set the smart builds to Start with previous. This gave you a nice and very useful effect where you could click to reveal a bullet point and at the same time flip in a corresponding image. We've used this loads of times in our company presentations.
    With a recent keynote update ( I think 5.2 maybe, could have been 5.1) this functinality has been lost. have tried it on Lion and Mountain Lion and it's not an OS issue, its a Keynote issue.
    Could anyone from Apple acknowledge that they know the issue and suggest if it will get fixed? Right now we're hunting round for an old Keynote 9 DVD so we can install a pre build 5.2 version.
    Thanks

    Hi glennelliott72,
    I've noticed the bug you describe and to me it's very irritating.
    I also found some differences in the build menu between the last release and the previous one, and between the Mac OS X and iOS versions. For instance, the blast build doesn't exist anymore in Keynote 5.2 but it's still in the version for iOS 6.
    What is your experience about?
    I currently use OX Lion.
    Thank you

  • I have the most horrible muse bug ever with slide shows mixing images up

    Hi there.  I'm making a comic. I uploaded multiple episodes of the comic - each to it's own slideshow in adobe muse.  However the pages in the various slideshows are mixing up with my other slideshows.  At first I thought it was just a caching problem in preview mode of muse because after uploading all looked okay and my on-line website looked perfect.  However suddenly today several of the comics have the wrong images in them. I did nothing in the assets window.  It was all working (at least on line where it counts) until now.  this is a disaster.  My poor website.
    I uploaded it to my own website but if anyone wants to see I can also upload to BC.
    this problem appeared again (but on upload as well today) after I switched off the thumbnails.  maybe that is a clue as it was working until then (at least online).
    Please help me - I am desperate.  And no, I do not wish to rename all the pages in my comic from page 1.jpg to page 1_comic4.jpg etc to give each image (page of my comic) a unique name.  I would have thought I could have same name assets that are different images.  To rename all my images and put them back into muse would be so much work it would probably be easier for me just to go back to iweb and wait for easyweb to come out.

    I have batch renamed all my assets, deleted all my slideshow thumb nails and replaced them so none of the images in my slide show have the same name as other assets anymore. I am sure this is what caused the problem.  I am about to reupload my website, so you won't be able to see the problem anymore (I sincerely hope).
    The problem wasn't always reproducible. To be able to reproduce the bug you need 10 different slideshows (all with images called page_1.jpg, page_2.jpg etc with more than 50 pages in some of the galleries, and then you have to upload the slideshows, make changes to the website,upload again, then make more changes to the website, then go to all the galleries one at a time with the thumbnails visable then uncheck the show thumbnails box for all the different slideshows and upload again.

  • BUG JDeveloper with OTPC extension lockup

    I am using JDeveloper 11.1.1.1.0 with Oracle Team Productivity Center 11g on Windows XP. I am also connecting to a locally installed Oracle Team Productivity Center server running on a WebLogic 11g Server with Oracle 10g Express database although that is probably irrelevant. I am launching JDeveloper in the Default Role.
    I encountered a bug that consistently causes a lockup which forces a force quit. Below are the steps to reproduce:
    1) In the Team Navigator view navigate to Team Administration
    2) Go to the Repositories tab
    3) Click Work Item and then the Plus to add a new repository
    4) Select the Jira connector (only one I have installed and probably irrelevant) and click the Plus to add
    5) Close Team Administration and Reopen to Repositories tab
    6) Click the new repository you created
    7) Ctrl-Left Click on the 'New Repository Server' field in the Name column of the Repository Servers table
    8) On the warning dialog that popups click OK or X
    9) The dialog text and OK button dissapears and the dialog can not be closed through hitting X or verbal threats
    Surprisingly this does not occur if the field is Left Clicked (without the Ctrl)
    I also encountered a second issue during Oracle Team Productivity Center Server install. The gist of it is that selecting that you want a Connector to be installed the Next button does not work upon reaching the select sources page. If you change to install from local file then the Next button works again. Here is exception from tpcinstaller.log:
    java.lang.NullPointerException
         at javax.ide.extension.ExtensionRegistry.findExtension(ExtensionRegistry.java:60)
         at oracle.ideimpl.extension.ExtensionManagerImpl.getSystemDirectory(ExtensionManagerImpl.java:329)
         at oracle.ide.config.Preferences.getPreferenceDirectory(Preferences.java:89)
         at oracle.ide.config.Preferences.getPreferences(Preferences.java:60)
         at oracle.ide.webbrowser.WOCAuthenticator.getRememberedAuthentication(WOCAuthenticator.java:71)
         at oracle.alminternal.installer.util.DownloadUpdates.authenticateOTN(DownloadUpdates.java:233)
         at oracle.alminternal.installer.util.DownloadUpdates.copy(DownloadUpdates.java:302)
         at oracle.alminternal.installer.util.DownloadUpdates.download(DownloadUpdates.java:169)
         at oracle.alminternal.installer.Installer.downloadRemoteBundles(Installer.java:259)
         at oracle.alminternal.installer.ui.InstallerWizard$InstallerWizardValidateListener.wizardValidatePage(InstallerWizard.java:2283)
         at oracle.bali.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
         at oracle.bali.ewt.wizard.WizardPage.validatePage(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard._validatePage(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard.doNext(Unknown Source)
         at oracle.bali.ewt.wizard.dWizard.DWizard.doNext(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2475)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Edited by: user11232535 on Oct 30, 2009 1:42 PM

    Hi,
    Thanks for this feedback, I am looking into it and will get back to you. Have you been able to work around this issue and continue to use TPC with your JIRA repository?
    rgds
    Susan
    susanduncan.blogspot.com

  • Is anyone else having bug issues with InDesign?

    I'm trying to do homework with the version I purchased, and I keep running into bugs. Everything is extremely slow. When I scroll, zoom, and move an object, the program keeps skipping on me. When I place an image from Illustrator, there are other paths that show up that were not on the original image. And with those same images, the strokes and fills are all read as red slashes. They should be question marks since they are a combination of paths. And lastly, when I try to use the eye dropper to copy the color of a placed image, I get a popup saying, "Image is a vector graphic. Eyedropper values based on low resolution RGB proxy."
    I think there might be some bug in InDesign, and it's really hard for me to work. It can't be my computer. I have Illustrator as well, and that one works fine despite scrolling speed. So is anyone else having these problems, or might there be something wrong with my version?

    I use CS6 on Windows 7.
    My default interface preference was set to Live Screen Drawing: Delayed. I tried changing from that, it was the same deal. I have noticed though, that performance is a lot slower when Display Performance under Object.
    For the extra lines showing up, I can't seem to find that same problem again, so I can't use a screenshot.
    SRiegal, I don't get what you mean by copying the colors. If you say that InDesign cannot copy the color of vector graphics, then how can I recreate them not knowing the exact values?

  • Text editing bug: conflict with Facebook widget

    And just when I thought this program couldn't be MORE frustrating. The simplest of text editing features flatly refused to cooperate. Double click, triple click, with the direct selection tool selected. Nope won't select a goddam thing. Turned out to be a conflict with a Facebook widget I had applied on a master page.
    ATTN: bug department!

    Thank you so much for replying.
    Yes I have removed and reinstalled WMP.
    I had good results with the PD6 application installed on the default path onto the C: drive with the one exception that if the application was launched by accident and the user data path was not available, the PD6 application would blow away my custom user path registry settings. Now that I know what they are I have made a .reg file to repair my registry to my desired user data paths.
    Installing the application on the removable drive appeared to help prevent me from launching the application by accident and overwriting my registry with default user paths.
    So which is the less of the two evils?
    If the application directory is not available, windows media player still tries to launch the .msi for installing PD6.
    If I install the application to the C: drive but the user data to the removable drive, launching the PD6 application without the user data drive will still corrupt my registry settings for a user data path.
    Both these issues seem like a logical (if not easy) fix that should be done in the PD6 application and installation package. I mean really, cannot anyone tell me why windows media player is checking the PD6 application directory? Why in PD4 did we have an option control for setting the user data path from the PD4 application? Why is this option not in the PD6 application, just the installer?
    I am given a choice during installation to move the user data to another non default location. Why else would this be provided if not to accommodate my kind of request to store the user data into an alternate location other than “My Document”. Certainly Palm is not trying to force the users on how to protect and store their personal data?
    Post relates to: Centro (Verizon)

  • [FLASH MX] problem with textfield et numeric variable

    hi everyone
    I want to make an automatic slideshow
    i ve an editable textfield ("tempo") in wich the user write
    numbers ... for
    me this number should be a variable the user can change
    This value will allow me to deal as a tempo that will load
    picture each
    second or 2 sec ...
    here is the function :
    _global.tempo = Number(tempo.text);
    filename = ["img01.jpg", "img02.jpg", "img03.jpg",
    "img04.jpg",
    "img05.jpg"];
    path = "images/";
    clearInterval(displayI);
    function displayF() {
    var k = Math.floor(Math.random()*filename.length);
    while (k == prevIndex) {
    k = Math.floor(Math.random()*filename.length);
    loadMovie(path+filename[k], my_mc);
    prevIndex = k;
    displayF();
    //button action:
    BTrandom.onPress = function() {
    displayI = setInterval(displayF, tempo);
    updateAfterEvent();
    trace(tempo);
    the textfield is of course editable.
    i ve put a trace on thetempo value the problem is that when i
    clic on the
    BTrandom button
    the value doesn't change, it keeps the original one
    i would be realy please if someone help me to find why it
    doesn't work as i
    would ...
    thanks a lot

    Have a look at:
    http://xtrema.rtr.gr/cDown/files/xTextMem_convertToAnsi.rar
    This includes both a new unicode rtf member, and a method to
    convert unicode
    text to ansi text that director can display.
    The text member can display any language and also supports
    embedding images.
    The conversion will not work if the text includes multi-byte
    characters -
    you'll be prompted if such characters exist.
    So, try if it works for your docs, and then we'll see what we
    can do so that
    > ..which means LOT of pain..
    does not happen.
    P.S. Hyperlink translation was not enabled in the Xtra
    version used by the
    app.
    "Blade75" <[email protected]> wrote in
    message
    news:f9c14e$1rs$[email protected]..
    > Hi everybody!
    > I have some applications made with Director MX 2004, and
    I have to convert
    > the
    > writings to polish language. I have the translations in
    a word .doc file,
    > and I
    > found out that when I paste the text into Director, the
    accented and
    > special
    > polish letters don't display in Director correctly. It
    shows the empty
    > square
    > or strange wrong characters, as it could not map the
    font correctly. I
    > tried to
    > embed the font, but it still does not work. At first I
    thought I messed up
    > with
    > the font, as the font was manually edited to add the
    special letters (but
    > the
    > font does work in every other application... photoshop,
    flash, word et
    > cetera).
    > But the problem remains even if I use/embed a "standard"
    window font like
    > Times New Roman, Arial and so on. It seems that Director
    is refusing to
    > use
    > correctly the font, even if I embed it entirely as full
    set.
    >
    > Now, is there a solution to this? Is it "normal"? Or
    have I to resign
    > myself
    > and convert all the text to images...which means LOT of
    pain :(
    >
    > Thank you in advance,
    > Bl@de
    >

  • Problem with textfields

    I add in stage four textfields naming letter1, letter2 ...
    I want with a button click to add text in someone of this textfields.
    This is the code.
    for (var i:Number = 0; i<4; i++) {
    var txtFld:TextField = new TextField();
    txtFld.name = "letter"+i
    addChild(txtFld)
    myBtn.addEventListener(MouseEvent.CLICK, PutLetter);
    function PutLetter(ev) {
    letter1.text = "Billy"
    Then in the output shows:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at Untitled_fla::MainTimeline/PutLetter()
    I can't manage this...
    Please help!!!

    If you are familiar with AS2, then you need to understand that in AS3 the name assigned to a dynamically created object, such as your textfield(s) is a mere string property... it is no longer a direct targeting element of an object.  What you need to do is utilize the getChildByName() method to use that name...
    myBtn.addEventListener(MouseEvent.CLICK, PutLetter);
    function PutLetter(ev:MouseEvent) {
        TextField(this.getChildByName("letter1")).text = "Billy";
    If you manually place the object on the stage in the editor, then the instance name you assign to it in the properties panel can be used to target it.

  • Problems with TextField in Window (jre 1.4.2)

    Hi,
    I have a problem with the following code, which used to run o.k. on older vm's:
    <CODE>
    import java.awt.*;
    import java.awt.event.*;
    class TFTest extends Window {
         public TFTest(Frame frame) {
              super(frame);
              TextField tf = new TextField("Hello!");
              tf.setEditable(true);
              tf.requestFocus();
              add(tf);
         public static void main(String args[]) {
              System.out.println("Starting MAPP ParentGui...");
              Frame frame = new Frame("TFTest");
              TFTest mainFrame = new TFTest(frame);
              mainFrame.setSize(240, 320);
              mainFrame.setVisible(true);
    </code>
    The TextField doesn't seem to become editable whatever I change....
    gr,
    Peter

    Two problems:
    1. You must make parent Frame visible to make child Window focusable(see Javadoc for Window.isFocusable)
    2. You request focus on the component before adding it to the top-level. Make sure you first add component, then request focus on it.

  • GridBagLayout with JScrollPane difficulties

    I'm having problems getting the components in a JPanel to layout properly. I'm using GridBagLayout and I'm having problems with adding a JScollPane.
    The JScrollPane in the layout (holding a subclass of a JPanel as its viewport) does not work properly in some case. When the viewport won't display fully, and requires scroll bars, the JScrollPane shrinks to a tiny size (i think just enough to display minimized scroll bars). What do I mean to add to fix this problem?
    Here is the relavent code:
    public ScenePanel()
         SceneImagePanel sceneImagePanel = new SceneImagePanel("Images/library.jpg");
         JScrollPane sceneScroller = new JScrollPane(sceneImagePanel);
         GridBagLayout gridbag = new GridBagLayout();
         GridBagConstraints c = new GridBagConstraints();
         this.setLayout(gridbag);
         c.insets = new Insets(5,5,5,5);
         JButton b1 = new JButton("Left");
         c.anchor = GridBagConstraints.WEST;
         c.fill = GridBagConstraints.VERTICAL;
         c.gridx = 0;
         c.gridy = 0;
         c.gridwidth = 5;
         c.gridheight = 5;
         c.weightx = 0.5;
         c.weighty = 0.5;
         gridbag.setConstraints(b1, c);
         this.add(b1);
         c.anchor = GridBagConstraints.CENTER;
         c.fill = GridBagConstraints.NONE;
         c.gridx = 5;
         c.gridwidth = 10;
         c.weightx = 0.0;
         c.weighty = 0.0;
         gridbag.setConstraints(sceneScroller, c);
         this.add(sceneScroller);
         JButton b2 = new JButton("Right");
         c.anchor = GridBagConstraints.EAST;
         c.fill = GridBagConstraints.VERTICAL;
         c.gridx = 15;
         c.gridwidth = 5;
         c.weightx = 0.5;
         c.weighty = 0.5;
         gridbag.setConstraints(b2, c);
         this.add(b2);
         JButton b3 = new JButton("Bottom");
         c.anchor = GridBagConstraints.SOUTH;
         c.fill = GridBagConstraints.HORIZONTAL;
         c.gridwidth = 20;
         c.gridx = 0;
         c.gridy = 5;
         c.weighty = -0.5;
         gridbag.setConstraints(b3, c);
         this.add(b3);
    //          this.add(sceneScroller, BorderLayout.CENTER);
    }Note: the commented out line at the end displayed the JScrollPane properly (though I want the scroll pane to be sized to fit its viewport, not its container, so I stopped using BorderLayout)

    Alright, I've figured out why the JScrollPane gets shrunk to such a small size...the 'fill' paramenter of the constraint can't be set to NONE. I've set it to 'BOTH' and changed the other constraints of some other components to fit.
    The problem now is that the scroll pane is too big...the scroll pane does not need to actually have either scroll bar in all cases. To accomidate these situations, I want the scroll pane to only be as large as it needs to be to display as much of its viewport is possible. Meaning, if the viewport does not need the scroll pane to take up as much room as is avaliable to it in the JPanel, the scroll pane should only be as large as needed, and leave empty space around it.
    Here is what I have now:
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints c = new GridBagConstraints();
    this.setLayout(gridbag);
    c.insets = new Insets(5,5,5,5);
    JButton b1 = new JButton("Left");
    c.anchor = GridBagConstraints.WEST;
    c.fill = GridBagConstraints.VERTICAL;
    c.gridx = 0;
    c.gridy = 0;
    c.gridwidth = 5;
    c.gridheight = 5;
    c.weightx = -0.5;
    c.weighty = 0.5;
    gridbag.setConstraints(b1, c);
    this.add(b1);
    c.anchor = GridBagConstraints.CENTER;
    c.fill = GridBagConstraints.BOTH;
    c.gridx = 5;
    c.gridwidth = 10;
    c.weightx = 0.5;
    gridbag.setConstraints(sceneScroller, c);
    this.add(sceneScroller);
    JButton b2 = new JButton("Right");
    c.anchor = GridBagConstraints.EAST;
    c.fill = GridBagConstraints.VERTICAL;
    c.gridx = 15;
    c.gridwidth = 5;
    c.weightx = -0.5;
    c.weighty = 0.5;
    gridbag.setConstraints(b2, c);
    this.add(b2);
    JButton b3 = new JButton("Bottom");
    c.anchor = GridBagConstraints.SOUTH;
    c.fill = GridBagConstraints.HORIZONTAL;
    c.gridwidth = 20;
    c.gridx = 0;
    c.gridy = 5;
    c.weighty = -0.5;
    gridbag.setConstraints(b3, c);
    this.add(b3);

Maybe you are looking for