JTextField - SDK 1.4.0_01

Question, I've created 3 JTextFields and set them all to
the same length. Initially opening the GUI, everything looks fine. But if text is in any of the 3 JTextFields when the GUI is updated the JTextField expands because of the entered text. How do I get the JTextField's to stay the same size if text exist in the JTextFields or not.
Thanks in advance,
Wes G.

Setting the columns of a JTextField affects the preferred size. After you set the number of columns, you should then call textfield.setMaximumSize(textfield.getPreferredSize()); Your textfields should no longer resize themselves depending on how many characters are in them. You should use a layout manager that respects the maximum size of the component.
Hope this helps
Edward West

Similar Messages

  • JDK 1.2.2 migration to SDK 1.4.0_01

    I wrote several applets that compile and run great when I compiled them with jdk 1.2.2, but since i downloaded and installed the new sdk 1.4.0_01 package none of my applets will run. What do I need to check to get back on track with sdk1.4.0?
    Two examples of new errors:
    import Ticket; worked in jdk 1.2.2, but now won't compile even with my Ticket class in the same directory, why does it work in 1.2.2 and not in 1.4.0?
    This is the error from the new java console on class' compiled before download, when run in the new environment:
    load: MyClass.class is not public or has no public constructor.
    java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class MyClass with modifiers "public"
         at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
         at java.lang.Class.newInstance0(Class.java:290)
         at java.lang.Class.newInstance(Class.java:249)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1621)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
         at sun.applet.AppletPanel.run(AppletPanel.java:290)
         at java.lang.Thread.run(Thread.java:536)
    What changed and what should I look to fix?

    What I've found so far is that in SDK 1.4.0 :
    You can no longer import a class that is not in a named package. The >class that uses Ticket can also be in the default package or Ticket >can be in the same package as the other class, in which case you do >not need an import statement. Or you can put Ticket into a named >package and import it.And for some reason still unknown, yet working... making the applets public does resolve the other issue once the above fix is corrected.

  • Package javax.servlet not found in sdk 1.4.0_01

    Hi,
    Please correct me if i'm wrong. I was using j2sdk 1.3.1 (standard edition) and have recently upgraded to j2sdk1.4.0_01. I can't find the javax.servlet package in the API. I referred to the j2ee sdk and found the package there. Does it mean that I need to have both the j2sdk1.4.0_01 and the j2sdkee1.3.1 (j2ee) in order to be able to compile and run my codes?
    Thanks.
    Karen

    The servlet packages don't come with the standard SDK.
    You can get them from javasoft.com or if you use the
    Tomcat server they come packaged in a jar file called
    servlet.jar

  • Quality of Cursors created with java.awt.Toolkit(createCutsomCursor)

    Hi -
    I encountered a small problem while creating my own cursors for my Java application , I used the java.awt.Toolkit Objects createCustomCursor method to use a .GIF image as a cursor ... it worked but the quality of that cursor is horrible, the outline is rough ... I tried the same with a transparent PNG file afterwards unfortunately the same result , does anyone know why the quality is that bad or may this just be a problem of the choosen color pool ?
    Help would be very appreciated since I have no clue how to use .cur files ... seems like a non supported format , in case someone knows how to import those it would help a lot if you would drop some lines of code.
    I am currently using Java 2 SDK 1.4.0_01 , newest version.
    Thanks for you time and thanks in advance for possible answers
    -- Harald Scheckenbacher

    I noticed this problem too. It looks like the routine is generating cursors which are scaled to to the maximum size of the system. On my win XP system,
    Dimension dim = toolkit.getBestCursorSize(256, 256);
    int maxColors = toolkit.getMaximumCursorColors();
    return 32,32 and 256 respectively
    If I provide a 16x16, all the pixels have been pixel doubled. If I specify a 32x32 image, then the cursor looks perfect. This looks like a bug for the java folks. Not sure why someone would ever want a cursor image to be pixel scaled.
              

  • Closing a running windows XP program from java

    Hello,
    Im currently making a program in java under sdk 1.4.0_01 and i want to be able to close a program which is already running in windows(Emule).
    Is this possible?
    I know how to run it using: Process proc = Runtime.getRuntime().exec ("mulePath");
    ...but i dont know how to close it unless ive already run it from java.
    Any help appreciated!
    Craig

    Search the web for the NT Toolkit. It has utilities that you can use to kill a process on NT type os's.

  • (Linux) SocketException: Connection reset

    I get a nasty exception while reading on a socket.
    SocketException: Connection reset
    The exception occurrs when running on Linux Redhat 8.0. I can't reproduce it when running on Windows. Could anyone explain why it happen.
    I'm using sdk 1.4.0_01.
    public class Test {
    void transfer() throws IOException {
    Socket socket = null;
    try {
    //Open a socket connection to server
    socket = new Socket("127.0.0.1",4321);
    //Enable SO_TIMEOUT with the specified timeout
    socket.setSoTimeout(60000);
    //Create channels
    ReadableByteChannel readableChannel = Channels.newChannel(socket.getInputStream());
    WritableByteChannel writableChannel = Channels.newChannel(socket.getOutputStream());
    //Create and fill buffer
    ByteBuffer buffer = ByteBuffer.allocate(32);
    while(buffer.hasRemaining())
    buffer.put((byte)1);
    buffer.flip();
    //Send
    while(buffer.hasRemaining()) {
    //Write message
    writableChannel.write(buffer);
    //Clear buffer
    buffer.clear();
    try {
    readableChannel.read(buffer);
    } catch(SocketException se) {
    System.err.println(se.getMessage());
    catch(IOException ioe) {
    finally {
    try {
    if(socket != null)
    socket.close();
    }catch(IOException ioe) {}
    Output:
    SocketException: Connection reset

    No, I actually can't. It's written by a third party in C, and I can't get the source.
    The thing is that I want to keep my connection open for several transfers, and when running on Linux suddenly my connection goes down. Sometimes it takes 20 min (about 100 transfers) and sometimes just after a few minutes (about 10 transfers). I haven't seen the problem when running on Windows.
    There were some mistakes in my code above. I hope I correct them here.
    I'm using sdk 1.4.1_01 and NOT 1.4.0_x.
    public class Test {
    private Socket socket = null;
    private ReadableByteChannel readableChannel;
    private WritableByteChannel writableChannel;
    public Test() throws IOException {
    //Open a socket connection to server
    socket = new Socket("127.0.0.1",4321);
    //Enable SO_TIMEOUT with the specified timeout
    socket.setSoTimeout(60000);
    //Create channels
    readableChannel = Channels.newChannel(socket.getInputStream());
    writableChannel = Channels.newChannel(socket.getOutputStream());
    void transfer() throws IOException {
    try {
    //Create and fill buffer
    ByteBuffer buffer = ByteBuffer.allocate(32);
    while(buffer.hasRemaining())
    buffer.put((byte)1);
    buffer.flip();
    //Send
    while(buffer.hasRemaining()) {
    //Write message
    writableChannel.write(buffer);
    //Clear buffer
    buffer.clear();
    try {
    readableChannel.read(buffer);
    } catch(SocketException se) {
    System.err.println("Nasty exception: "+se.getMessage());
    catch(IOException ioe) {
    System.out.println("This never happen");
    public void close() {
    try {
    if(socket != null)
    socket.close();
    }catch(IOException ioe) {}
    Output:
    Nasty exception: SocketException: Connection reset

  • New to EJB (Server Help Needed)

    I am new to EJB and I'm learning through a few books and online tutorials. The only problem is that when I try to use them, I get errors. I've done some researching and I think it has to do with my server setup. Here is what I have running and successfully configured:
    Apache Web Server
    Tomcat Container
    Java 2 SDK 1.4.0_01
    Java XML Pack (Winter 2002)
    I have Sun Studio 4 installed and I think that it installs J2EE but I'm not sure. Can someone help me understand where to go next? What do I have to install/configure to get the EJBs to work? Thanks, Jeremy

    Hello,
    J2EE is roughly about two things: Web applications beeing build out of Servlets, Jsp and HTML pages and a server-side component modell to deploy business logic in EJBs.
    Now for the Web part (generating dynamic HTML content etc.) you have what you need. Tomcat is doing just find. To deploy EJBs, you need an application server which has an EJB container. I don't know the Studio 4 but my understanding is that it is an IDE helping you to develop software, not an application server. You have to install such an appserver.
    My recommendation: go and download BEAs Weblogic 7.0 (www.beasys.com).This is a commercial product but it comes with a 30 day trial license. BEA provides a rather good online docu. Play with this appserver and deploy some EJBs.
    Alternatively there is also a free appserver: JBoss (www.jboss.org) but I have never used it. Yet, they have also online docu and forums to help you through.
    good luck,
    einar

  • Focus issue with CardLayout (Java 2 SDK, Standard Edition 1.4.0_01)

    I am having an issue with focus and CardLayout with Java 2 SDK, Standard Edition 1.4.0_01. I have created a small sample application to illustrate my problem. In general, I am trying to create a "Wizard" that the user will enter information and then press a "Next" button to proceed to the next step.
    When the first card is displayed, the focus is on the first text field as expected.
    When I go to the next card by clicking "Next", the focus is not on the text field that has requested it (through the requestFocusInWindow method). The focus is on the "Cancel" button, which is the next component to receive focus after the "Next" button on that panel. I do notice that if I use my mouse to bring focus to the window the text field will gain focus.
    Similarly, when I proceed to the last card, the focus is not on the "Finish" button until the mouse moves over the window.
    Is there something I am doing wrong or is there a bug with focus and CardLayout?
    One other problem I have noticed is that the buttons no longer respond to the "Enter" key press and instead respond to the space bar. Any suggestions as to why this is the case?
    Thanks,
    S.L.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class CardWindow extends JFrame implements ActionListener {
    public CardWindow() {       
    setTitle("Focus Problems with CardLayout");
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    cards = new JPanel();
    cardLayout = new CardLayout();
    cards.setLayout(cardLayout);
    cards.add(createFirstNamePanel(), "FirstNamePanel");
    cards.add(createLastNamePanel(), "LastNamePanel");
    cards.add(createFullNamePanel(), "FullNamePanel");
    getContentPane().add(cards,BorderLayout.CENTER);
    getContentPane().add(createButtonPanel(), BorderLayout.SOUTH);
    resetButtonPanel();
    pack();
    private JPanel createFirstNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your first name:");
    txtFirstName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtFirstName);
    return panel;
    private JPanel createLastNamePanel() {
    JPanel panel = new JPanel();
    JLabel lblDescriptionProjectName = new JLabel("Please enter your last name:");
    txtLastName = new JTextField(20);
    panel.add(lblDescriptionProjectName);
    panel.add(txtLastName);
    return panel;
    private JPanel createFullNamePanel(){
    JPanel panel = new JPanel();
    lblFullName = new JLabel();
    resetTextOnFullNamePanel();
    panel.add(lblFullName);
    return panel;
    private JPanel createButtonPanel() {
    buttonPanel = new JPanel();
    btnPrevious = new JButton("< " + "Back");
    btnPrevious.setMnemonic('B');
    btnPrevious.addActionListener(this);
    btnNext = new JButton("Next" + " >");
    btnNext.setMnemonic('N');
    btnNext.addActionListener(this);
    btnCancel = new JButton("Cancel");
    btnCancel.setMnemonic('C');
    btnCancel.addActionListener(this);
    btnFinish = new JButton("Finish");
    btnFinish.setMnemonic('F');
    btnFinish.addActionListener(this);
    buttonPanel.add(btnPrevious);
    buttonPanel.add(btnNext);
    buttonPanel.add(btnCancel);
    buttonPanel.add(btnFinish);
    return buttonPanel;
    private void resetTextOnFullNamePanel(){
    lblFullName.setText("Your name is: " + getFirstName() + " " + getLastName());
    private void resetButtonPanel(){
    Component c[] = buttonPanel.getComponents();
    for(int i = 0; i < c.length; i++){
    c.setVisible(false);
    switch(iWizardStep){
    case FIRSTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case LASTNAMEPANEL:
    btnPrevious.setVisible(true);
    btnNext.setVisible(true);
    btnCancel.setVisible(true);
    break;
    case FULLNAMEPANEL:
    btnFinish.setVisible(true);
    break;
    buttonPanel.validate();
    public void actionPerformed(ActionEvent e) {
    Object object = e.getSource();
    if (object == btnNext) {           
    btnNextPressed();
    } else if (object == btnPrevious) {           
    btnPreviousPressed();
    } else if (object == btnFinish) {
    System.exit(0);
    } else if (object == btnCancel) {
    System.exit(0);
    private void btnNextPressed() {       
    switch (iWizardStep) {
    case FIRSTNAMEPANEL:
    setFirstName(txtFirstName.getText());
    break;
    case LASTNAMEPANEL:
    setLastName(txtLastName.getText());
    resetTextOnFullNamePanel();
    break;
    iWizardStep++;
    resetButtonPanel();
    this.cardLayout.next(this.cards);
    switch (iWizardStep) {             
    case LASTNAMEPANEL:
    txtLastName.requestFocusInWindow();
    break;
    case FULLNAMEPANEL:
    btnFinish.requestFocusInWindow();
    break;
    private void btnPreviousPressed() {
    iWizardStep--;
    resetButtonPanel();
    this.cardLayout.previous(this.cards);
    public void setFirstName(String value) {
    firstName = value;
    public String getFirstName() {
    return firstName;
    public void setLastName(String value) {
    lastName = value;
    public String getLastName() {
    return lastName;
    public static void main (String[] args) {
    CardWindow c = new CardWindow();
    c.show();
    private CardLayout cardLayout;
    private JPanel cards, buttonPanel;
    private JTextField txtLastName, txtFirstName;
    private JLabel lblFullName;
    private JButton btnNext, btnPrevious, btnCancel, btnFinish;
    private String firstName = "";
    private String lastName = "";
    private int iWizardStep = 0;
    private static final int FIRSTNAMEPANEL = 0;
    private static final int LASTNAMEPANEL = 1;
    private static final int FULLNAMEPANEL = 2;

    Manfred,
    Thanks for your reply. I tried requestFocus() and it gives the same results. Also Sun's 1.4.0 API (http://java.sun.com/j2se/1.4/docs/api/) mentions the following with respect to the requestFocus() method in the JComponent class:
    Because the focus behavior of this method is platform-dependent, developers are strongly encouraged to use requestFocusInWindow when possible.
    That is why I used requestFocusInWindow.
    S.L.

  • J2EE 1.4 beta SDK install problem on Linux RH 7.2 ?

    Hello everybody
    Thank for your reading
    I have installed J2EE SDK 1.4 beta on Linux RH 7.2, my installed J2SE is 1.4.0_01, but the J2EE installer reported that: Exception in the "main" thread: java.lang.io.NoDefClassFound: J2EE.
    I had defined JAVA_HOME. I don't know how to sovle this problem.
    Please help me. thank you
    [email protected]

    Hi, I'm fairly new with Linux.... I've downloaded the self extracting 1.4.0 bin file... how do I istall it now? I'm not sure what command to use for the installation to occur.
    I'm installing Tomcat as well...
    Is there anywhere I can go to see step by step instructions to install these products?
    Thank you in advanced!

  • Flex charts and trunk sdk or beta build

    has anyone managed to use adobe datavis with latest build of sdk
    anything i try to add, say a line graph just runtime errors wrong number of arg's)
    I'll post more info on this in morning, but been coding for 19 hours today and im worn outt
    if anyone has been usinf latest sdk4 with any data vis components (from any company) can u let me know as I need to get onto this adas
    thanks and excuse any typos
    glenn
    tinylion

    It turns out this was a syntax issue. I assumed “Ensure
    that Java SDK is installed on the computer and that the
    java_home/bin directory is defined in the system path.”,
    meant
    Set Path=C:\Program Files\Java\jdk1.6.0_01\bin;….
    not
    Set java_home=C:\Program Files\Java\jdk1.6.0_01

  • Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'

    I am geting this error when I enter the "java" command:
    "Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'"
    I have configured the PATH variable (Windows 2000) and "javac" works. I cannot, however, get my programs to run because of the error every time I type "java". Also, I did not install my JDK / SDK to the directory in which the computer is looking for the "java" cammand (ie. it is not in 'Program Files'...). If anyone can help, it would be greatly appreciated. Thank you.

    Try using the -cp switch on the command line. For example:java -cp . MyProgramIf this corrects the problem, you need to set the classpath variable
    as well as the path.
    Mark

  • IE6 on XP malfunctioning after Java 2 SE v1.4.0_01

    Okay, here goes. Please bear with my ignorance.
    Java 2 Runtime Environ, SE v1.4.0_01 was accidentally installed on my DELL XP, when v2-something was already installed. Well, at first it caused my browser, IE6.0.2600.etc. to simply shut down when accessing a webpage with java script. So I unintalled, and I believe it was in this order, the v.2 first and could not at first uninstall v.4. Finally, after reinstalling and uninstalling (as the uninstall .dll wasn't functioning), and installing Microsoft virtual java machine (per a tech-head's suggestion) the browser has now returned to semi-normal operation.
    I now get many scripting errors on various pages, causing inoperative links and many links (apparently java written) seem to be only a 'one-shot deal'. In other words, on webpages that have a clickable link, most times I have to refresh the page in order for it to work. Then I come to find out that my Windows Media Player 8 won't work properly either.
    After doing a restore to a point prior to the initial v.4 install (with no success) and an attempt at uninstalling and re-intalling IE6 (right!) I have spoken to DELL tech support (as Microsoft will not directly support an OEM without a fee) and they want to do an XP re-install!
    I'd really like to avoid this, if possible, as I have done various tweeks to XP, and since it was one the Java products that caused this problem I was hoping someone out there could help me.
    Thanx.

    Seriously doubt that much can be done. The original install of the SDK was probably fixable, but with all the subsequent activity... If you want to live with the problems while you work on clearing them, there's a slight chance that you'll be successful. How old is the system - sounds fairly new - do you have a "few" things installed or a "ton"? Dell stores an image of the original software on the hd and has a painless way to restore to the "as shipped" condition ( I speak from experience, I did it, worked like a charm) Hard to say what to do, I'm glad I opted to chuck the mess and start over (my problem came from a really fouled up web server installation)
    Good luck

  • Downloading of java 2 SDk, version 1.4.1_01

    I am trying to download the subject version , but whenever I click on the file
    j2sdk-1_4_1_01-windows-i586.exe .
    after some time, message appearthat Gateway time pass.I am a student at York university Toronto.I need this version to do my labs at home,
    4 months ago I have downloaded java 2 SDk ,version 1.4.0_01 successfully,
    I have already removed this version to install the new one.
    Even now I have tried to download old version again fofor trial but failed.My operating system is Window 98(second edition) with latest version of internet explorer(browser ) and my internet provider is roger internet cable

    I have found out that sometimes the "ftp" links for download don't work. Use the last link that appears, it should be a "http" link. And follow the whole process of accepting the terms and so on.
    Regards.

  • No problem with sdk 1.3- problem with 1.4!!!

    I am trying to make an interface using swing objects..
    The buttons are looking like images (2D) when compiling and running the program with sdk 1.4...
    although if I use 1.3 everything is ok??
    even with the new java version I still have the same problem..
    has anyone any idea how to fix this??
    thx in advance!

    /*                      BET                                 */
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
      * Summary description for BET
    public class BET extends JFrame
         // Variables declaration
         private JLabel jLabel1;
         private JLabel jLabel2;
         private JLabel jLabel3;
         private JTextField jTextField1;
         private JTextField jTextField2;
         private JTextField jTextField3;
         private JTextField jTextField4;
         private JTextField jTextField6;
         private JButton jButton1;
         private JButton jButton2;
         private JPanel contentPane;
         // End of variables declaration
         public BET()
              super();
              initializeComponent();
              // TODO: Add any constructor code after initializeComponent call
              this.setVisible(true);
          * This method is called from within the constructor to initialize the form.
          * WARNING: Do NOT modify this code. The content of this method is always regenerated
          * by the Windows Form Designer. Otherwise, retrieving design might not work properly.
          * Tip: If you must revise this method, please backup this GUI file for JFrameBuilder
          * to retrieve your design properly in future, before revising this method.
         private void initializeComponent()
              jLabel1 = new JLabel();
              jLabel2 = new JLabel();
              jLabel3 = new JLabel();
              jTextField1 = new JTextField();
              jTextField2 = new JTextField();
              jTextField3 = new JTextField();
              jTextField4 = new JTextField();
              jTextField6 = new JTextField();
              jButton1 = new JButton();
              jButton2 = new JButton();
              contentPane = (JPanel)this.getContentPane();
              // jLabel1
              jLabel1.setForeground(new Color(59, 241, 227));
              jLabel1.setText("<HTML><B><U>QUESTION</B><HTML>");
              // jLabel2
              jLabel2.setForeground(new Color(50, 245, 113));
              jLabel2.setText("<HTML><B><U>CHOICE</B><HTML>");
              // jLabel3
              jLabel3.setForeground(new Color(50, 245, 113));
              jLabel3.setText("<HTML><B><U>POINTS</B><HTML>");
              // jTextField1
              jTextField1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                        jTextField1_actionPerformed(e);
              // jTextField2
              jTextField2.setText("YES");
              jTextField2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                        jTextField2_actionPerformed(e);
              // jTextField3
              jTextField3.setText("10");
              jTextField3.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                        jTextField3_actionPerformed(e);
              // jTextField4
              jTextField4.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                        jTextField4_actionPerformed(e);
              // jTextField6
              jTextField6.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                        jTextField6_actionPerformed(e);
              // jButton1
              jButton1.setBackground(new Color(117, 158, 145));
              jButton1.setText("OK");
              jButton1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                        jButton1_actionPerformed(e);
              // jButton2
              jButton2.setBackground(new Color(117, 158, 145));
              jButton2.setText("CANCEL");
              jButton2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e)
                        jButton2_actionPerformed(e);
              // contentPane
              contentPane.setLayout(null);
              contentPane.setBackground(new Color(67, 97, 83));
              addComponent(contentPane, jLabel1, 172,8,60,18);
              addComponent(contentPane, jLabel2, 73,78,60,18);
              addComponent(contentPane, jLabel3, 211,76,60,18);
              addComponent(contentPane, jTextField1, 9,27,403,28);
              addComponent(contentPane, jTextField2, 24,101,134,22);
              addComponent(contentPane, jTextField3, 203,101,51,22);
              addComponent(contentPane, jTextField4, 21,151,137,22);
              addComponent(contentPane, jTextField6, 18,200,140,22);
              addComponent(contentPane, jButton1, 299,188,80,70);
              addComponent(contentPane, jButton2, 299,90,80,70);
              // BET
              this.setTitle("BET");
              this.setLocation(new Point(-2, 1));
              this.setSize(new Dimension(424, 316));
         /** Add Component Without a Layout Manager (Absolute Positioning) */
         private void addComponent(Container container,Component c,int x,int y,int width,int height)
              c.setBounds(x,y,width,height);
              container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTextField1_actionPerformed(ActionEvent e)
              System.out.println("\njTextField1_actionPerformed(ActionEvent e) called.");
              // TODO: Add any handling code here
         private void jTextField2_actionPerformed(ActionEvent e)
              System.out.println("\njTextField2_actionPerformed(ActionEvent e) called.");
              // TODO: Add any handling code here
         private void jTextField3_actionPerformed(ActionEvent e)
              System.out.println("\njTextField3_actionPerformed(ActionEvent e) called.");
              // TODO: Add any handling code here
         private void jTextField4_actionPerformed(ActionEvent e)
              System.out.println("\njTextField4_actionPerformed(ActionEvent e) called.");
              // TODO: Add any handling code here
         private void jTextField6_actionPerformed(ActionEvent e)
              System.out.println("\njTextField6_actionPerformed(ActionEvent e) called.");
              // TODO: Add any handling code here
         private void jButton1_actionPerformed(ActionEvent e)
              System.out.println("\njButton1_actionPerformed(ActionEvent e) called.");
              // TODO: Add any handling code here
         private void jButton2_actionPerformed(ActionEvent e)
              System.out.println("\njButton2_actionPerformed(ActionEvent e) called.");
              // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
    //============================= Testing ================================//
    //=                                                                    =//
    //= The following main method is just for testing this class you built.=//
    //= After testing,you may simply delete it.                            =//
    //======================================================================//
         public static void main(String[] args)
              JFrame.setDefaultLookAndFeelDecorated(true);
              JDialog.setDefaultLookAndFeelDecorated(true);
              try
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              catch (Exception ex)
                   System.out.println("Failed loading L&F: ");
                   System.out.println(ex);
              new BET();
    //= End of Testing =
    This is my code.. the problem is that when i use sdk 1.3 everything is fine... I tried to use 1.4 and now 5 and I have a problem with the appearance of buttons... I have some comments in my code. is just a form with some textfields and labels and the 2 buttons!
    thx in advance

  • Error installing jre 1.4.0_01

    I have installed and installed the sdk and jre version 1.4.0_01. To cleanup my environment I uninstalled all of my java products and began re-installing them. When I tried to install jre 1.4.0_01 (this is the first product that I tried to re-install) I get a message from the installer
    "You already have the Java 2 Runtime Environment, SE v1.4.0_01 already installed on this machine...."
    I have went thru the registry and deleted any reference to java 1.4.0_01. Any help would be great.
    Thanks.

    Yep, i had installed the JDK, but when I found out that the plug-in app was not operating properly in the control panel, I figured something had gone wrong. I uninstalled everything and tried installing just the JRE, when I noticed this error.
    I used Iolo's system mechanic to try and clean the registry and run all kinds of analysis and cleaners on my system.
    No dice, still have that problem.
    I believe I may blow away windows and move to a Linux desktop

Maybe you are looking for