F2 Edit in JTable -- standard for all look and feel ?

hi,
I use a robot to simulate a F2 when a column is in focus in a JTABLE so that user can just type without having to type the <F2> key.
My question is:
Is F2 (to get a column in edit mode) for JTABLE standard for all look and feel (metal, X-windows ..) ?
Thanks.
Tony

Read the JTable API. There is a link the gives the
standard key assignments for the standard LAF's.thanks. got it.

Similar Messages

  • Exception for Metouia look and feel

    hi,
    i m getting this exception when trying to change Metouia look and feel.
    like we have 3DLF.jar for ThreeD look and feel.
    if u have any solution pls suggest as soon.
    ThreeDPrefs.internalFrameTitleFont.getSize() 10
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    *     at net.sourceforge.mlf.metouia.MetouiaScrollPaneUI.paint(MetouiaScrollPaneUI.java:89)*
    *     at javax.swing.plaf.ComponentUI.update(Unknown Source)*
    *     at javax.swing.JComponent.paintComponent(Unknown Source)*
    *     at javax.swing.JComponent.paint(Unknown Source)*
    *     at javax.swing.JComponent.paintChildren(Unknown Source)*
    *     at javax.swing.JComponent.paint(Unknown Source)*
    *     at javax.swing.JComponent.paintChildren(Unknown Source)*
    *     at javax.swing.JComponent.paint(Unknown Source)*
    *     at javax.swing.JComponent.paintChildren(Unknown Source)*
    *     at javax.swing.JComponent.paint(Unknown Source)*
    *     at javax.swing.JLayeredPane.paint(Unknown Source)*
    *     at javax.swing.JComponent.paintChildren(Unknown Source)*
    *     at javax.swing.JComponent.paint(Unknown Source)*
    *     at javax.swing.JComponent.paintToOffscreen(Unknown Source)*
    *     at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)*
    *     at javax.swing.RepaintManager.paint(Unknown Source)*
    *     at javax.swing.JComponent._paintImmediately(Unknown Source)*
    *     at javax.swing.JComponent.paintImmediately(Unknown Source)*
    *     at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)*
    *     at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)*
    *     at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)*
    *     at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)*
    *     at java.awt.event.InvocationEvent.dispatch(Unknown Source)*
    *     at java.awt.EventQueue.dispatchEvent(Unknown Source)*
    *     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)*
    *     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)*
    *     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)*
    *     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)*
    *     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)*
    *     at java.awt.EventDispatchThread.run(Unknown Source)*

    [Look and Feel|http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/index.html]

  • Accessing File/Folder icons for current Look and Feel

    Hi,
    I'm looking to get the Icon for files and folders that the current UIManager uses for some work I'm doing. Please could you help.
    I'm getting strange results from the method I'm using, which is to create a temporary file and do: Icon i = FileSystemView.getFileSystemView().getSystemIcon(tempFile);
    I don't like the idea of having to create a temporary file to do this - isn't there another way to do it? - for instance asking "get default file icon"/"get default folder icon".
    I could download a jpg image of the file/folder icons, but this is static - and I want my method to get the icons used for the current look and feel I'm using.
    There must be a simple way to do this right? I mean, java uses a method to get the icons for the current look and feel.. Oh.. Please help!
    - Edd.

    Try these:
    UIManager.getIcon("FileView.directoryIcon");
    UIManager.getIcon("FileView.fileIcon");Leif Samuelsson
    Java Swing Team
    Sun Microsystems, Inc.

  • Scroll pane color for xp look and feel

    hi
    I am using the xp look and feel for my intranet application. Everything looks great, except for the colors of the scroll pane (added in a table) which still remains brown. I have tried setting the colors of the scroll pane, but nothing seems to work. Where is it that i am going wrong?
    Thanks

    Use this
    table.getParent().setBackground(Color.BLUE);

  • Customised look and feel for B2B/B2C web shop.

    Dear experts,
                I would like to find out if there is an admin page for SAP E-commerce to customise the look and feel of the webshop?
    Thanks.
    Wein

    Hi Wein,
    To change Look and Feel for Web shop is depends on scenario of eCommerce application i.e. B2B or B2C. B2B has different structure than B2C.
    Web Channel application comes in SAP standard with SAP look and Feel. You have to change look and feel as per client requirement.
    To change look and feel of Both B2B/B2C scenario you have to deal with files like CSS, JSP, Properties, XLF and some time you have to add your custom JAVA, JSP, CSS, Properties files etc...
    To change standard SAP logo youhave to make change in CSS files. Also you have to consider Browser type while changing look and feel because to display your B2B/B2C application correctly in different browser you have to make changes in different CSS.
    You will get better idea with example how to change look and feel in "Dev & Ext. Guide" for Web Shop. You will get this from Service Market place.
    eCommerce Developer.

  • How can I include a JSP, Maximized, and retain look and feel(WSRP)

    I have created a page group and defined a root page with a certain look and feel. There are two portlets on the page. Once the user clicks on a submit button, the portlet performs some action and includes a jsp included in the EAR file. The portlet needs to maximize the UI to display the jsp correctly.
    Once control returns back to the screen, the look and feel is lost and uses Oracle's default style. I have two questions:
    1. From the portlet, how can I retain the look and feel of the page group when referencing "external" jsp (i.e JSPs in the deployed portal EAR file).
    2. How can I "redirect" the user to the home page in a standard way? If there is not a standard way, how do I use the Oracle specific utilities to do it?
    All of my JSPs are developed externally out of the scope of the Oracle Portal.
    Environment - Oracle Portal 10.1.4 on Release 2 using WSRP to contact Oracle Release 3, hosted EAR file (WSRP Producer).
    Thanks in advance.

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • Problem With ButtonUI in an Auxiliary Look and Feel

    This is my first post to one of these forums, so I hope everything works correctly.
    I have been trying to get an axiliary look and feel installed to do some minor tweaking to the default UI. In particular, I need it to work with Windows and/or Metal as the default UI. For the most part I let the installed default look and feel handle things with my code making some colors lighter, darker, etc. I also play with focus issues by adding FocusListeners to some components. I expect my code to work reasonably well no matter what the default look and feel is. It works well with Motif, Metal, and Windows, the only default look and feels I've tested with. What I'm going to post is a stripped down version of what I have been working on. This example makes gross changes to the JButton background and foreground colors in order to illustrate what I've encountered.
    I have three source code files. The first, Problem.java, creates a JFrame and adds five buttons to it. One button installs MyAuxLookAndFeel as an auxiliary look and feel using MyAuxButtonUI for the look and feel of JButtons. The next button removes that look and feel. The next button does nothing except print a line to System.out. The next button installs MyAuxLookAndFeel as an auxiliary look and feel using MyModButtonUI for the look and feel of JButtons. The last button removes that look and feel.
    The problem is, when I install the first auxiliary look and feel, buttons are no longer tabable. Also, they cannot be invoked by pressing the space button when they're in focus. When I remove the first auxiliary look and feel everything reverts to behaving normally. When I add the "Mod" version, button tabability is fine. The only difference is I've added the following code:
    if ( c.isFocusable() ) {
       c.setFocusable(true);
    }That strikes me as an odd piece of code to profoundly change the program behavior. Anyway, after adding and removing the "Mod" look and feel, the tababilty is forever fixed. That is, if I subsequently re-install the first look and feel, tababilty works just fine.
    The problem with using the space bar to select a focused button is more problematic. My class is not supposed to mess with the default look and feel which may or may not use the space bar to press the button with focus. When the commented code in MyModButtonUI is uncommented, things behave correctly. Even the statement
    button.getInputMap().remove( spaceKeyStroke );doesn't mess things up after the auxiliary look and feel is removed. So far I've tested this with JRE 1.4.2_06 under Windows 2000, JRE 1.4.2_10 under Windows XP, and JRE 1.5.0_06 under Windows XP and the behavior is the same.
    All of this leads me to two questions.
    1. Is my approach fundamentally flawed? I've extended TextUI and ScrollBarUI with no problems. This is the only problem I've encountered with ButtonUI. My real workaround for the space bar issue is better than the one I've supplied in the example, but it certainly is not guaranteed to work for any arbitrary default look and feel.
    2. Assuming I have no fundamental problems with my approach, it's possible I've found a real bug. I searched the bug database and couldn't find anything like this. Of course, this is the first time I've tried seasrching the database for a bug so my I'm doing it badly. Has this already been reported as a bug? Is there any reason I shouldn't report it?
    What follows is the source code for my example. It's in three files because the two ButtonUI classes must be public in order to work. Thanks for insight you can provide.
    Bill
    File Problem.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Problem extends JFrame {
       public boolean isAuxInstalled = false;
       public boolean isModInstalled = false;
       public LookAndFeel lookAndFeel = new MyAuxLookAndFeel();
       private static int ctr = 0;
       public static void main( String[] args ) {
          new Problem();
       public Problem() {
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setSize(250, 150);
          setTitle("Button Test");
          JButton install = new JButton("Install");
          JButton remove = new JButton("Remove");
          JButton doNothing = new JButton("Do Nothing");
          JButton installMod = new JButton("Install Mod");
          JButton removeMod = new JButton("Remove Mod");
          this.getContentPane().setLayout(new FlowLayout());
          this.getContentPane().add(install);
          this.getContentPane().add(remove);
          this.getContentPane().add(doNothing);
          this.getContentPane().add(installMod);
          this.getContentPane().add(removeMod);
          install.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( !isAuxInstalled ) {
                   isAuxInstalled = true;
                   UIManager.addAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          remove.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( isAuxInstalled ) {
                   isAuxInstalled = false;
                   UIManager.removeAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          doNothing.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                System.out.println( "Do nothing " + (++ctr) );
          installMod.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( !isModInstalled ) {
                   isModInstalled = true;
                   UIManager.addAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          removeMod.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
                if ( isModInstalled ) {
                   isModInstalled = false;
                   UIManager.removeAuxiliaryLookAndFeel( lookAndFeel );
                   SwingUtilities.updateComponentTreeUI( Problem.this );
          setVisible(true);
       class MyAuxLookAndFeel extends LookAndFeel {
          public String getName() {
             return "Button Test";
          public String getID() {
             return "Not well known";
          public String getDescription() {
             return "Button Test Look and Feel";
          public boolean isSupportedLookAndFeel() {
             return true;
          public boolean isNativeLookAndFeel() {
             return false;
          public UIDefaults getDefaults() {
             UIDefaults table = new MyDefaults();
             Object[] uiDefaults = {
                "ButtonUI", (isModInstalled ? "MyModButtonUI" : "MyAuxButtonUI"),
             table.putDefaults(uiDefaults);
             return table;
       class MyDefaults extends UIDefaults {
          protected void getUIError(String msg) {
    //         System.err.println("(Not) An annoying error message!");
    }File MyAuxButtonUI.java:
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.plaf.*;
    import javax.swing.plaf.multi.*;
    import javax.accessibility.*;
    public class MyAuxButtonUI extends ButtonUI {
       private Color background;
       private Color foreground;
       private ButtonUI ui = null;
       public static ComponentUI createUI( JComponent c ) {
          return new MyAuxButtonUI();
       public void installUI(JComponent c) {
          MultiButtonUI multiButtonUI = (MultiButtonUI) UIManager.getUI(c);
          this.ui = (ButtonUI) (multiButtonUI.getUIs()[0]);
          super.installUI( c );
          background = c.getBackground();
          foreground = c.getForeground();
          c.setBackground(Color.GREEN);
          c.setForeground(Color.RED);
       public void uninstallUI(JComponent c) {
          super.uninstallUI( c );
          c.setBackground(background);
          c.setForeground(foreground);
          this.ui = null;
       public void paint(Graphics g, JComponent c) {
          this.ui.paint( g, c );
       public void update(Graphics g, JComponent c) {
          this.ui.update( g, c );
       public Dimension getPreferredSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getPreferredSize( c );
          return this.ui.getPreferredSize( c );
       public Dimension getMinimumSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getMinimumSize( c );
          return this.ui.getMinimumSize( c );
       public Dimension getMaximumSize(JComponent c) {
          if ( this.ui == null ) {
             return super.getMaximumSize( c );
          return this.ui.getMaximumSize( c );
       public boolean contains(JComponent c, int x, int y) {
          if ( this.ui == null ) {
             return super.contains( c, x, y );
          return this.ui.contains( c, x, y );
       public int getAccessibleChildrenCount(JComponent c) {
          if ( this.ui == null ) {
             return super.getAccessibleChildrenCount( c );
          return this.ui.getAccessibleChildrenCount( c );
       public Accessible getAccessibleChild(JComponent c, int ii) {
          if ( this.ui == null ) {
             return super.getAccessibleChild( c, ii );
          return this.ui.getAccessibleChild( c, ii );
    }File MyModButtonUI.java:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.plaf.*;
    public class MyModButtonUI extends MyAuxButtonUI
       static KeyStroke spaceKeyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0 );
       public static ComponentUI createUI( JComponent c ) {
          return new MyModButtonUI();
       public void installUI(JComponent c) {
          super.installUI(c);
          c.setBackground(Color.CYAN);
          if ( c.isFocusable() ) {
             c.setFocusable(true);
    //      final JButton button = (JButton) c;
    //      button.getInputMap().put( spaceKeyStroke, "buttonexample.pressed" );
    //      button.getActionMap().put( "buttonexample.pressed", new AbstractAction() {
    //         public void actionPerformed(ActionEvent e) {
    //            button.doClick();
    //   public void uninstallUI(JComponent c) {
    //      super.uninstallUI(c);
    //      JButton button = (JButton) c;
    //      button.getInputMap().remove( spaceKeyStroke );
    //      button.getActionMap().remove( "buttonexample.pressed" );
    }

    here is the code used to change the current look and feel :
    try {
                   UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
             catch (InstantiationException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (ClassNotFoundException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (UnsupportedLookAndFeelException e)
                  System.out.println("Error occured  "+ e.toString());
             catch (IllegalAccessException e)
                  System.out.println("Error occured in .. " + e.toString());
             Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
             Fenetre fen = new Fenetre();
             fen.setSize(dim.width, dim.height);
             fen.setResizable(false);
                 fen.setLocation(0, 0);
                  fen.setVisible(true);

  • Themed look and feel broken in sub-site

    We have several site collections in a farm using SP2013 + SP1 under a common web application that use a custom theme for the look and feel. After upgrading to SP2013 December 2014 CU, one of the site collections' custom theme is broken. Furthermore,
    the same site collection cannot use most of the OOTB themes. I have only successfully gotten the theme "Office" to work correctly. (I have not tested all the OOTB theme choices)
    Immediately after the CU was applied the CSS and JS on this site collection was not working. After changing the theme to "Office" I was able to test out other troubleshooting options. If I select another theme choice, the "try it out"
    page returns with an error "A cobalt error was thrown." This is not a helpful error for me and I could not find much on the internet regarding it. Another error I have received was "file not found", or yet another error "The
    URL
    '_catalogs/theme/Themed/4F147962/likefull.11x11x32-F47391E9.themedpng' is
    invalid.  It may refer to a nonexistent file or folder, or refer to a valid file
    or folder that is not in the current Web." I have not been able to fix the issue.
    I have found that under 'Site Settings' -> 'Web Designer Galleries' -> 'Themes' -> 'Themed' is a library of folders. My thought is that these folders are created dynamically when a new theme is applied. I have several folders, but all are empty
    except one. I am now trying to determine why these folders are empty.
    Any ideas?

    Hi,
    Please try to update the latest CU for SharePoint 2013(April 2015 CU for SharePoint 2013), then check whether the issue still exists or not.
    http://blogs.technet.com/b/stefan_gossner/archive/2015/04/14/april-2015-cu-for-sharepoint-2013-has-been-released.aspx
    In my test environment, the 'Themed' all folders are not empty.
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I include a portal component look and feel in a java servlet

    Does any body know how can i include a portal component look and feel (tables, buttons, etc) in a java servlet?

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • I have had  adobe creative suit 6 design standard for 2 years and all of the sudden it would not open. I do not have the windows disc anymore however i still have the product code, number and serial number. is there anyway to get my photoshop back?

    I have had  adobe creative suit 6 design standard for 2 years and all of the sudden it would not open. I do not have the windows disc anymore however i still have the product code, number and serial number. is there anyway to get my photoshop back?

    uninstall, clean and reinstall per Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    for the installation file(s):
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • How can I set a customized view in finder set as standard for ALL folders?

    As I have a large number of folders, I need a specific view in finder: symbol view, sort by program and name. I tried to use this settings as standard for ALL folders, but using the 'set as standard' button does only work for the folder I am in, but not for ALL folders. I even tried to use this settings on the hard disk level in finder, but what ever I tried, it never applies to all folders. The problem occurs on each of my devices and on Yosemite OS 10.10.1. as well as Mavericks 10.9.5. Any ideas on how I can make the 'standard' work on all folders?

    As Vinod says, unique key validator would be fine.
    However, In Gabriel's blog:
    Performing a unique key validation for an attribute that is declared to be unique in the database requires a round trip to the database. This is quite expensive and there is a fast and easy way to work around it.Is false on several fronts:
    1). it's not expensive - it's actually cheaper than the alternative
    2). Unique key validator can require many trips to the DB to validate - it must check all other rows in the EO to ensure there is no duplicate, and all of those rows must be fetched into the middle tier to do the validation: this is expensive.
    The "cheapest" way to do this: unique constraint in the DB
    John

  • Editing the Query name for all reports in PRD.

    Dear All,
    I have created 25 reports using Query Designer.We have moved all the reports to BI Production. And Clients are using these reports using the Tool Bex Analyser.
    Every time they are navigating through open Query -> Info Areas -> Data targets and Query.
    Instead of going this way, is there any other way to Open a query easily.
    And they wants to modify the Report name and the Technical name for all the reports. Can we able to edit the Query name for all reports, or do i need to go for SAVE AS for all querys.
    Pls Suggest.
    Thanks,
    Ram

    Hi Ram,
    1. For the first question; if it user specific query then ask the users to save them at the FAVORITES so that there is no need to go to the dataprovider specific.
    Or they can create the reports as favorites user menu screen of that particular user.
    2. In order to change the technical name and description of the queries goto RSZC t-code> give the source and target infoprovider as same> select queries>click on the reports>click on transfer selections-->
    Then you get a screen to change the description and technical name.
    But this is pertained to Infoprovider level.
    You can see all the reports on the infoprovider (cube/ods).
    Hope you understood.
    Regards,
    Ravi Kanth

  • Interesting problem for all students and programmers Have a look!

    Hello. This is a very interesting problem for all programmers and students. I have my spalsh screen class which displays a splash when run from the main method in the same class. However when run from another class( in my case from my login class, when user name and password is validated) I create an instance of the class and show it. But the image in the splash is not shown. Only a squared white background is visible!!!.
    I am sending the two classes
    Can u tell me why and propose a solution. Thanks.
    import java.awt.*;
    import javax.swing.*;
    public class SplashScreen extends JWindow {
    private int duration;
    public SplashScreen(int d) {
    duration = d;
    // A simple little method to show a title screen in the center
    // of the screen for the amount of time given in the constructor
    public void showSplash() {
    JPanel content = (JPanel)getContentPane();
    content.setBackground(Color.white);
    // Set the window's bounds, centering the window
    int width = 300;
    int height =400;
    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (screen.width-width)/2;
    int y = (screen.height-height)/2;
    setBounds(x,y,width,height);
    // Build the splash screen
    JLabel label = new JLabel(new ImageIcon("logo2.gif"));
    JLabel copyrt = new JLabel
    ("Copyright 2004, Timetabler 2004", JLabel.CENTER);
    copyrt.setFont(new Font("Sans-Serif", Font.BOLD, 16));
    content.add(label, BorderLayout.CENTER);
    content.add(copyrt, BorderLayout.SOUTH);
    Color oraRed = new Color(100, 50, 80, 120);
    content.setBorder(BorderFactory.createLineBorder(oraRed, 10));
    // Display it
    setVisible(true);
    // Wait a little while, maybe while loading resources
    try { Thread.sleep(duration); } catch (Exception e) {}
    setVisible(false);
    public void showSplashAndExit() {
    showSplash();
    // System.exit(0);
    // CLASS CALLING THE SPLASH
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JMenu;
    import javax.swing.*;
    import java.applet.*;
    import java.applet.AudioClip;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.net.URL;
    public class login extends JDialog
    String username;
    String password;
    JTextField text1;
    JPasswordField text2;
    login()
    //super("Login To TIMETABLER");
    text1=new JTextField(10);
    text2 = new JPasswordField(10);
    text2.setEchoChar('*');
    JLabel label1=new JLabel("Username");
    JLabel label2=new JLabel("Password");
    label1.setFont(new Font("Garamond",Font.BOLD,16));
    label2.setFont(new Font("Garamond",Font.BOLD,16));
    JButton ok=new JButton(" O K ");
    ok.setActionCommand("ok");
    ok.setOpaque(false);
    ok.setFont(new Font("Garamond",Font.BOLD,14));
    ok.setBackground(SystemColor.controlHighlight);
    ok.setForeground(SystemColor.infoText);
    ok.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e)
    System.out.println("ddddd");
    //validatedata();
    ReadText mytext1=new ReadText();
    ReadText2 mytext2=new ReadText2();
    String value1=mytext1.returnpassword();
    String value2=mytext2.returnpassword();
    String user=text1.getText();
    String pass=text2.getText();
    System.out.println("->"+value1);
    System.out.println("->"+value2);
    System.out.println("->"+user);
    System.out.println("->"+pass);
    if ( (user.equals(value1)) && (pass.equals(value2)) )
    System.out.println("->here");
    // setVisible(false);
    // mainpage m=new mainpage();
    // m.setDefaultLookAndFeelDecorated(true);
    // m.callsplash();
    /// m.setSize(640,640);
    // m.show();
    //m.setVisible(true);
    SplashScreen splash = new SplashScreen(5000);
    // Normally, we'd call splash.showSplash() and get on with the program.
    // But, since this is only a test...
    splash.showSplashAndExit();
    else
    { text1.setText("");
    text2.setText("");
    //JOptionPane.MessageDialog(null,
    // "Your Password is Incorrect"
    JButton cancel=new JButton(" C A N C E L ");
    cancel.setActionCommand("cancel");
    cancel.setOpaque(false);
    cancel.setFont(new Font("Garamond",Font.BOLD,14));
    cancel.setBackground(SystemColor.controlHighlight);
    cancel.setForeground(SystemColor.infoText);
    cancel.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e)
    dispose();
    System.exit(0);
    JPanel pan1=new JPanel(new GridLayout(2,1,20,20));
    JPanel pan2=new JPanel(new GridLayout(2,1,20,20));
    JPanel pan3=new JPanel(new FlowLayout(FlowLayout.CENTER,20,20));
    pan1.setOpaque(false);
    pan2.setOpaque(false);
    pan3.setOpaque(false);
    pan1.add(label1);
    pan1.add(label2);
    pan2.add(text1);
    pan2.add(text2);
    pan3.add(ok);
    pan3.add(cancel);
    JPanel_Background main=new JPanel_Background();
    JPanel mainpanel=new JPanel(new BorderLayout(25,25));
    mainpanel.setOpaque(false);
    // mainpanel.setBorder(new BorderLayout(25,25));
    mainpanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
    ("Login To Timetabler Vision"),BorderFactory.createEmptyBorder(10,20,10,20)));
    mainpanel.add("West",pan1);
    mainpanel.add("Center",pan2);
    mainpanel.add("South",pan3);
    main.add(mainpanel);
    getContentPane().add(main);
    void validatedata()
    ReadText mytext1=new ReadText();
    ReadText2 mytext2=new ReadText2();
    String value1=mytext1.returnpassword();
    String value2=mytext2.returnpassword();
    String user=text1.getText();
    String pass=text2.getText();
    System.out.println("->"+value1);
    System.out.println("->"+value2);
    System.out.println("->"+user);
    System.out.println("->"+pass);
    if ( (user.equals(value1)) && (pass.equals(value2)) )
    SplashScreen splash = new SplashScreen(5000);
    splash.showSplashAndExit();
    dispose();
    else
    { text1.setText("");
    text2.setText("");
    //JOptionPane.MessageDialog(null,
    // "Your Password is Incorrect"
    public void callsplash()
    {SplashScreen splash= new SplashScreen(1500);
    splash.showSplashAndExit();
    public static void main(String args[])
    { login m=new login();
    Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
    int screenPositionX=(int)(screenSize.width/2-390/2);
    int screenPositionY=(int)(screenSize.height/2-260/2);
    m.setLocation(screenPositionX, screenPositionY);
    //m.setResizable(false);
    m.setSize(600,500);
    m.setSize(390,260);
    m.setVisible(true);

    Hi Luis,
    Use tcode XK99 for vendor mass change, select the Fax no field. You have to take note that this changes will be only 1 fax number for all vendors.
    Else you have to use BAPI for mass change.
    regards,
    maia

  • XE look and feel in Oracle 10g Enterprise Edition

    Hi!
    I have both Enterprise Edition 10gR2 and XE installed on Linux. I want to use Enterprise Edition as my main database. But I want XE "look and feel" for 10gR2
    What do I have to do to accomplish this?
    regards
    Paal

    nothing, you can have both running at the same time.
    all depends what you mean by 'look and feel' really

  • Making custom non-standard components aware of custom look and feels.

    Hello all.
    Maybe the subject of this post could also be the opposite: "Making custom look and feels aware of non-standard custom components". I'm not sure.
    If I code a new custom component (extending JComponent, or extending the UI delegate of a standard component) and pretend it to be laf aware then I must create the corresponding UI delegate for each laf, like it happens to be with standard swing components. But I'm not sure it is feasible to create the UI delegates for all unknown existing custom lafs.
    On the other side, if I create a custom laf then I will also create a custom UI delegate for each standard component, but I can not create UI delegate for all unknown existing custom components.
    The point here is that standard components and standard lafs are universally known, while custom components (or custom ui delegates) and custom lafs are not.
    So the question is: How does a swing developer deal with the case of a new custom component that will be used in an unknown custom laf?
    For instance:
    1. Custom text UI delegate for dealing with styled documents in JTextField. See {thread:id=2284487}.
    2. JTabbedPane with custom UI delegate that paints no tab if the component only contains one tab.
    In both cases I need a UI delegate for each known laf, but what happens if the application is using a laf that certainly will not be aware of this custom functionally?
    Thank you!

    If I code a new custom component (extending JComponent, or extending the UI delegate of a standard component) and pretend it to be laf aware then I must create the corresponding UI delegate for each laf, like it happens to be with standard swing components. But I'm not sure it is feasible to create the UI delegates for all unknown existing custom lafs.You are right, this is never going to work. I suggest if you want to make your custom component look & feel aware, you design the way it displays around the l & f of other components that are part of j2se and have l&f implementations.
    http://download.oracle.com/javase/7/docs/api/javax/swing/plaf/ComponentUI.html
    There are instructions here:
    http://download.oracle.com/javase/7/docs/api/javax/swing/LookAndFeel.html
    >
    On the other side, if I create a custom laf then I will also create a custom UI delegate for each standard component, but I can not create UI delegate for all unknown existing custom components.
    The point here is that standard components and standard lafs are universally known, while custom components (or custom ui delegates) and custom lafs are not.
    So the question is: How does a swing developer deal with the case of a new custom component that will be used in an unknown custom laf?
    For instance:
    1. Custom text UI delegate for dealing with styled documents in JTextField. See {thread:id=2284487}.
    2. JTabbedPane with custom UI delegate that paints no tab if the component only contains one tab.
    In both cases I need a UI delegate for each known laf, but what happens if the application is using a laf that certainly will not be aware of this custom functionally?
    Thank you!

Maybe you are looking for

  • Bug in htmlConverter plug-in url produced for 1.4.0+

    Hi all, Could you please let me know if you get this url codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-win.cab#Version=1,4,0,0" in java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpo

  • Install NetWeaver NW_JAVA_700SP14_SR3 , can't find framework  jvmx.jar

    Hi, during install process NetWeaver 7.0 can't run server0,Start Java Engine,step 28 . I did try  to start by Sap managment Console and failure too. Why had not  been created jvmx.jar ? ---   WinXP SP3,  1GB RAM. Thanks to advance for some advice and

  • Add Completed Activities assignment block to contacts

    On the opportunties page there is an assignment block for completed activities. When I hit "F2" I see that it is CUBTDocFlow_CA.MainWindow Component BTDocFlow. On the contacts page there is an assignment block for planned activities it appears to be

  • Minimum Hardware&software system requirements for installing sharepoint?

    Hi, I am planing to learn SharePoint, That's why,anybody tell me minimum Minimum Hardware&software system requirements for installing sharepoint? And also tell me for learning share point for beginners Sites or any materials or PDF's etc......

  • Unable to create masterdata ( org Units, Position )etc.

    Hi While creating the masterdata(Position, Org Units) in development client, I am getting an error "Client 220 has status 'not modifiable'". I have tried through scc4 and se06, but it will make complete client as modifiable. I want the configuration