Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2005

Tip: Looking for answers? Try searching our database.

Problems with keytab

Thread view: 
alexjcasol - 03 Aug 2005 19:15 GMT
Hello everybody,

I am trying to build my first form and I am not able to find out how to
make the keytab work.

Find below my source code
Thank you
Alessandro

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.JTextField;

public class Prova_tabulazione extends Frame
{
    private static int WIDTH = 350;
    private static int HEIGHT = 200;
    private static String TITLE = "Alessandro";

    JTextField txtField1 = new JTextField();
    JButton btnProva = new JButton("Prova");
    JPanel Pannello1 = new JPanel();

    public static void main(String[] args)
    {
        Prova_tabulazione app = new Prova_tabulazione();
    };

    public Prova_tabulazione()
    {   
       
        super(TITLE);
        setFocusTraversalKeysEnabled(true);
        addWindowListener(new WindowHandler());
        setSize(WIDTH, HEIGHT);
        Pannello1.setBackground(Color.green);

        txtField1.setBounds(10, 40, 100, 20);
        btnProva.setBounds(10, 80, 100, 20);

        add(txtField1);
        add(btnProva);
        add(Pannello1);
        show();
    };
   
       
           
    public class WindowHandler extends WindowAdapter
    {
        public void windowClosing(WindowEvent e)
        {
            System.exit(0);
        }
    }   
}
Roland - 03 Aug 2005 20:06 GMT
> Hello everybody,
>
[quoted text clipped - 11 lines]
>
> public class Prova_tabulazione extends Frame
Extend from JFrame:
  public class Prova_tabulazione extends JFrame

Mixing AWT and Swing components may lead to various problems.
Signature

Regards,

Roland de Ruiter
` ___      ___
`/__/ w_/ /__/
/  \ /_/ /  \

alexjcasol - 04 Aug 2005 07:33 GMT
Thank you very much!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.