Refresh Window

Hello,
Is it possible to relaunch a jar application or refresh the window if a user fails to enter something in a text field.
I can use an error trap but so far all I have created is an endless loop into a JOptionPane which is not good.

Ok, I think I figured out a way to do it by using a switch to break out of the loop but not sure if this is good practice or what.
I have:
String expr = codeIn.getText();
int myswitch = 1;
switch (myswitch) {
     case 1:
if (expr.length()<1) {
JOptionPane.showMessageDialog(this, "Eggs aren't supposed to be green.", "Inane error", JOptionPane.ERROR_MESSAGE);
break;
} else {
          //rest of code here
This has the desired result. However another slight problem is the if statement. This works OK but if I use
if (expr == null) it doesnt get caught.
I am getting this error in debug in NetBeans.

Similar Messages

  • Insert Media if you want to reinstall or refresh windows

    If I want to refresh my pc, I always got this message. This happened after I upgrade to Windows 8.1. I had Windows 8 preinstall on my laptop. How can I refresh my PC?

    Hi,
    Sometimes, we will encounter this issue if we don't have a recovery partition, you can use a create a custom recovery image, ans use it to refresh your Windows 8.1.
    How to Create a Custom Recovery Image to Use to Refresh Windows 8 and 8.1
    http://www.eightforums.com/tutorials/3610-refresh-windows-8-create-use-custom-recovery-image.html
    (Please note that it will change some files and settings, depending on the time you create the image)
    How to  refresh, reset, or restore your PC
    http://windows.microsoft.com/en-IN/windows-8/restore-refresh-reset-pc
    NOTE
    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • Error While Using MDT 2013 to Refresh Windows XP to Windows 8.1 during Computer backup to network

    Hi,
    I am getting below error in Deployment Summary  while Computer backup to network during Refresh from XP to 8.1 through MDT 2013.
    1. I followed URL-
    http://blogs.technet.com/b/mniehaus/archive/2014/01/09/migrating-from-windows-xp-to-windows-8-1-using-mdt-2013.aspx to use USMT for the UserProfile through MDT 2013.
    2. For User profile I am using Hardlink USMT through MDT Wizard, that is working fine.
    3. My Deployment Share rule is below..
    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    OSInstall=Y
    SkipCapture=YES
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipComputerBackup=YES
    SkipBitLocker=YES
    DoCapture=YES
    ComputerBackupLocation=NETWORK
    BackupShare=\\MDT2013\share$
    BackupDir=%OSDComputerName%
    BackupFile=%OSDComputerName%.wim
    BackupDrive=ALL
    4. ZTIBAckup Logs below..
      2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[The task sequencer log is located at X:\windows\TEMP\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log.]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context=""
    type="1" thread="" file="ZTIBackup">
    <![LOG[OriginalPartitionIdentifier is set, find disk: SELECT * FROM Win32_LogicalDisk WHERE Size = '26213933056' and VolumeName = '' and VolumeSerialNumber = '7413DBF4']LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup"
    context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Search for Drive: OriginalPartitionIdentifier  SELECT * FROM Win32_LogicalDisk WHERE Size = '26213933056' and VolumeName = '' and VolumeSerialNumber = '7413DBF4']LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup"
    context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Found Drive: C:]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Property OSDTargetDriveCache is now = C:]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Property OSDisk is now = C:]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Checking to see if we can store the backup locally]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Drive C: 3231300]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Drive D: 272600]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Drive X: 2489]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Local store path = C:\StateStore]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Total used space: 3506389]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Available space at C:\StateStore: 22368244]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Backup can use local path]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Property USMTLocal is now = True]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Network store path set to:
    \\MDT2013\DeploymentShare$\Tools\X64\imagex.exe"  /capture /compress maximum C: "\\MDT2013\share$\TEST8\TEST8.wim" "001CDrive" /flags EnterpriseN]LOG]!><time="13:16:21.000+000"
    date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Command has been started (process ID 1248)]LOG]!><time="13:16:21.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ZTI Heartbeat: command has been running for 0 minutes (process ID 1248)]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > ImageX Tool for Windows]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > Copyright (C) Microsoft Corp. All rights reserved.]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > Version: 6.3.9600.16411]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > Files/folders excluded from image capture by default:]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \$windows.~bt]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \$windows.~ls]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \winpepge.sys]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \Windows\CSC]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \Recycled]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \Recycler]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \$Recycle.Bin\*]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \System Volume Information]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \swapfile.sys]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \pagefile.sys]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console >  \hiberfil.sys]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > Turning on VERIFY option for network share]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > Scanning files and directories...]LOG]!><time="13:16:22.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > [   0% ] Capturing progress ]LOG]!><time="13:16:33.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > [   1% ] Capturing progress ]LOG]!><time="13:16:33.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > [   2% ] Capturing progress: 11:04 mins remaining ]LOG]!><time="13:16:47.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [   3% ] Capturing progress: 9:12 mins remaining ]LOG]!><time="13:16:47.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [   4% ] Capturing progress: 7:58 mins remaining ]LOG]!><time="13:16:50.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [   5% ] Capturing progress: 7:20 mins remaining ]LOG]!><time="13:16:55.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [   6% ] Capturing progress: 7:59 mins remaining ]LOG]!><time="13:17:07.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [   7% ] Capturing progress: 8:23 mins remaining ]LOG]!><time="13:17:13.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [   8% ] Capturing progress: 8:20 mins remaining ]LOG]!><time="13:17:17.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [   9% ] Capturing progress: 8:33 mins remaining ]LOG]!><time="13:17:26.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [  11% ] Capturing progress: 8:21 mins remaining ]LOG]!><time="13:17:35.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > [  13% ] Capturing progress: 7:37 mins remaining ]LOG]!><time="13:17:35.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > [ RETRY ] Restoring C:\WIMA8B0.tmp again (Error = 1392)]LOG]!><time="13:17:35.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread=""
    file="ZTIBackup">
    <![LOG[  Console > [ ERROR ] C:\StateStore\USMT\File\C$\MININT\SMSOSD\OSDLOGS\BDD.log (Error = 80)]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1"
    thread="" file="ZTIBackup">
    <![LOG[  Console > [ ERROR ] C:\StateStore\USMT\File\C$\MININT\SMSOSD\OSDLOGS\BDD.log (Error = 80)]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1"
    thread="" file="ZTIBackup">
    <![LOG[  Console > Error imaging drive [C:\]]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[  Console > The file exists. ]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Return code from command = 2]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[Error creating an image of drive C:, rc = 2]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="3" thread="" file="ZTIBackup">
    <![LOG[ZTIBackup COMPLETED.  Return Value = 2]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="1" thread="" file="ZTIBackup">
    <![LOG[ZTI ERROR - Non-zero return code by ZTIBackup, rc = 2]LOG]!><time="13:17:38.000+000" date="04-15-2014" component="ZTIBackup" context="" type="3" thread="" file="ZTIBackup">
    5. Computer Backup Dir is accessbaile and permission is ok.
    Any idea to resolve this issue
    Shailendra Dev

    After changing the BackupDrive=D: , I am able to take backup of D drive only , but I want to take all the local drives backup before installing windows 8.1
    please suggest .
    Shailendra Dev

  • Still Error 2927 when refreshing Windows 2012 R1 Host

     I have SCVMM R2 and the latest rollups.  This issue is only occureing on a Windows 2012 (R1) server.  I do not see these issues on Windows 2008 R2 or Windows 2012 R2.  
    I have looked at other forum posts with no luck such as:  https://social.technet.microsoft.com/Forums/systemcenter/en-US/ccff7b77-6fc5-4c4b-bf71-a08a5076a3fd/action?threadDisplayName=error-2927-when-refreshing-host-cluster
    I also have cranked up the MaxConcurrentOperationsPerUser to no avail.
    After I restart WinRM and SCVMM Agent, it is ok for a little while then the errors and "This service has exceeded its maximum of 100 concurrent operations per user allowed for plugin "WMI Provider" error begin again.
    Any other ideas?
    Thanks,
    Jason

    Hi Jason,
    According to the similar thread you have mentioned ,  and you have run the following command but still doesn't work ?
    winrm set winrm/config/Service @{MaxConcurrentOperationsPerUser="400"}
    Could you please run command below with administrator privilege to list the current settings of winrm :
    winrm get winrm/config 
    (By the way , did you restart the server recently ? )
    Best Regards,
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How do I reinstall CS6 after refreshing windows 8

    Hello
    I foolishly refreshed my computer loosing CS6 without deactivating it first. Can I download it again and re enter my serial number?

    yes.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 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'.

  • Re-installing adobe package after refreshing windows

    i had to refresh my computer and now when i try to install my masters package again, it wont allow me to use the serial number? what can i do?

    Pat, this seems helpful. I have refreshed my comp (Windows 8, Office 2007), and cannot find my purchased LR and PS software.
    And I have no clue what my serial number is.
    Could you walk me through this one?
    Cheers

  • Had to refresh Windows 8, Firefox was removed and I lost my bookmarks, browser history, and cookies. Is there any way to recover?

    Due to recurring problems with Windows 8, I had to "refresh" my laptop. As a result, my computer was reset to its factory settings, and Mozilla Firefox was stripped out. I have lost my bookmarks, browser history, and cookies.
    Is this lost information still present somewhere on my computer's hard drive? (I did get a list of removed apps afterwards.) Is there any way to recover and restore my bookmarks, at the very least?
    I have yet to reinstall Firefox, because I do not want to overwrite anything that might still be present.

    Hold on before installing. Firefox isn't going to look in the C:\Windows.old folder.
    To show hidden files, see: http://windows.microsoft.com/en-us/windows/show-hidden-files
    Then look for:
    C:\Windows.old\Users\''username''\AppData\Roaming\Mozilla\Firefox\Profiles
    Can you find a folder there named something gibberish.default?

  • Problem repaint ( Refresh ) window

    Hi Friends,
    I have GUI JFrame window , in which i have added
    combo box and add button when i click add one new JFrame window
    opens and ask for name and when click OK, that is added to database.
    1) Main Window in which add button is there
    2) Secondary JFrame inputs the Username
    Now i want to show name should be added in Main Window's combo
    while clicking the Secondary windows OK button.
    How can I repaint thing ??
    I tried
    panel.updateUI( )but still it not showing me new added name.
    When i close application and restart it , it will showing me last added name , but it should not be the solution.
    HELP.

    MyExpenseTracker.java
    (Main Class)
    * MyExpenseTracker.java
    * Created on October 11, 2007, 6:10 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package app;
    import app.AddNewItem;
    import java.util.*;
    * @author Administrator
    public class MyExpenseTracker
        /** Creates a new instance of MyExpenseTracker */
        public MyExpenseTracker()
        public static void main(String args[])   
                ExpTracker t = new ExpTracker();
                MyExpenseTracker mymain = new MyExpenseTracker();
                //LoginForm loginf = new LoginForm();
                t.setVisible(true);
    }ExpTracker.java ( Main Window for project - no main method )
    * ExpTracker.java
    * Created on October 11, 2007, 1:39 PM
    package app;
    import app.AddNewItem;
    import app.AddNewName;
    import java.sql.*;
    import java.text.*;
    import java.util.*;
    * @author  Administrator
    public class ExpTracker extends javax.swing.JFrame
        /** Creates new form ExpTracker */
        Connection con = null;
        Statement stmt = null;
        ResultSet rs = null;
        String query;
        int status =0;
        String URL="jdbc:mysql://localhost:3306/exptracker";
        String DRIVER ="com.mysql.jdbc.Driver";
        //String user =loginf.getAuthenticatedUser();
        Calendar cal = Calendar.getInstance();
        int day = cal.get(Calendar.DATE);
        int month = cal.get(Calendar.MONTH)+1;
        int year = cal.get(Calendar.YEAR);
        public ExpTracker()
            super("Expense Tracker v1.0");
            initComponents();
            //System.out.println("User name got :"+user);
            //javax.swing.JOptionPane.showMessageDialog(this,"Username:"+ user);
            //System.out.println("user :"+user);
            loadNameCombo();
            cmbdate.setSelectedItem(day);
            cmbmonth.setSelectedIndex(month-1);
            cmbyear.setSelectedItem(year);
        public void doConnection()
            //make connection
            try
                Class.forName(DRIVER).newInstance();
            catch(Exception e)
            { System.out.println("driver not found"+e.getMessage());     }
            //making query
            try
                con = DriverManager.getConnection(URL, "root", "");
                stmt = con.createStatement();
            catch(Exception e)
            { System.out.println("Connection Failure !"+ e.getMessage());  }
        /** 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 Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents()
            jp1 = new javax.swing.JPanel();
            lbldate = new javax.swing.JLabel();
            cmbdate = new javax.swing.JComboBox();
            cmbmonth = new javax.swing.JComboBox();
            cmbyear = new javax.swing.JComboBox();
            lblfixdate = new javax.swing.JLabel();
            lblitem = new javax.swing.JLabel();
            cmbitem = new javax.swing.JComboBox();
            lblqty = new javax.swing.JLabel();
            tfqty = new javax.swing.JTextField();
            lblprice = new javax.swing.JLabel();
            tfprice = new javax.swing.JTextField();
            lblqtyfix = new javax.swing.JLabel();
            lblpricefix = new javax.swing.JLabel();
            btnAdd = new javax.swing.JButton();
            jLabel1 = new javax.swing.JLabel();
            lblname = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            ta = new javax.swing.JTextArea();
            btnReport = new javax.swing.JButton();
            btnAddRecord = new javax.swing.JButton();
            jLabel2 = new javax.swing.JLabel();
            cmbname = new javax.swing.JComboBox();
            btnAddname = new javax.swing.JButton();
            jMenuBar1 = new javax.swing.JMenuBar();
            menu = new javax.swing.JMenu();
            menu1exit = new javax.swing.JMenuItem();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jp1.setBorder(javax.swing.BorderFactory.createTitledBorder("Expense Detail"));
            lbldate.setFont(new java.awt.Font("Tahoma", 0, 10));
            lbldate.setText("Date :");
            cmbdate.setFont(new java.awt.Font("Tahoma", 0, 10));
            for(int i=1; i<=31; i++)
                cmbdate.addItem(i);
            cmbmonth.setFont(new java.awt.Font("Tahoma", 0, 10));
            cmbmonth.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }));
            cmbyear.setFont(new java.awt.Font("Tahoma", 0, 10));
            for(int i=2006; i<=2050; i++)
                cmbyear.addItem(i);
            lblfixdate.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblfixdate.setText("*Format is dd-MM-yyyy");
            lblitem.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblitem.setText("Item :");
            cmbitem.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblqty.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblqty.setText("Quantity :");
            tfqty.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblprice.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblprice.setText("Price :");
            tfprice.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblqtyfix.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblqtyfix.setText("*you can write like 2 ,3 or 300gm");
            lblpricefix.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblpricefix.setText("*ex. 300, 13.50 etc. no characters");
            btnAdd.setFont(new java.awt.Font("Tahoma", 0, 10));
            btnAdd.setText("Add");
            btnAdd.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(java.awt.event.ActionEvent evt)
                    btnAddActionPerformed(evt);
            jLabel1.setFont(new java.awt.Font("Tahoma", 0, 10));
            jLabel1.setText("*if item is not in list, click Add button");
            org.jdesktop.layout.GroupLayout jp1Layout = new org.jdesktop.layout.GroupLayout(jp1);
            jp1.setLayout(jp1Layout);
            jp1Layout.setHorizontalGroup(
                jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jp1Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                        .add(jp1Layout.createSequentialGroup()
                            .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, lblitem, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .add(org.jdesktop.layout.GroupLayout.LEADING, lbldate, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 44, Short.MAX_VALUE))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(org.jdesktop.layout.GroupLayout.TRAILING, jp1Layout.createSequentialGroup()
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(cmbdate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(cmbmonth, 0, 59, Short.MAX_VALUE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(cmbyear, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(jp1Layout.createSequentialGroup()
                                    .add(10, 10, 10)
                                    .add(lblfixdate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 119, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                .add(cmbitem, 0, 168, Short.MAX_VALUE)
                                .add(jLabel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)))
                        .add(jp1Layout.createSequentialGroup()
                            .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(lblqty)
                                .add(lblprice))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(tfprice, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)
                                .add(tfqty, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE)
                                .add(lblqtyfix, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)
                                .add(lblpricefix, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE))))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(btnAdd, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 64, Short.MAX_VALUE)
                    .addContainerGap())
            jp1Layout.setVerticalGroup(
                jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jp1Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(lbldate)
                        .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(cmbyear, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(cmbdate, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(cmbmonth, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .add(5, 5, 5)
                    .add(lblfixdate)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblitem)
                        .add(cmbitem, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(btnAdd))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jLabel1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblqty)
                        .add(tfqty, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(1, 1, 1)
                    .add(lblqtyfix)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jp1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblprice)
                        .add(tfprice, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(lblpricefix)
                    .addContainerGap(41, Short.MAX_VALUE))
            lblname.setFont(new java.awt.Font("Tahoma", 0, 10));
            lblname.setText("Name :");
            ta.setColumns(20);
            ta.setLineWrap(true);
            ta.setRows(5);
            jScrollPane1.setViewportView(ta);
            btnReport.setFont(new java.awt.Font("Tahoma", 0, 10));
            btnReport.setText("Report");
            btnAddRecord.setFont(new java.awt.Font("Tahoma", 0, 10));
            btnAddRecord.setText("Add New Expense");
            jLabel2.setFont(new java.awt.Font("Tahoma", 0, 10));
            jLabel2.setText("Comments :");
            cmbname.addFocusListener(new java.awt.event.FocusAdapter()
                public void focusGained(java.awt.event.FocusEvent evt)
                    cmbnameFocusGained(evt);
            btnAddname.setFont(new java.awt.Font("Tahoma", 0, 10));
            btnAddname.setText("Add");
            btnAddname.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(java.awt.event.ActionEvent evt)
                    btnAddnameActionPerformed(evt);
            menu.setText("File");
            menu1exit.setText("Exit");
            menu1exit.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(java.awt.event.ActionEvent evt)
                    menu1exitActionPerformed(evt);
            menu.add(menu1exit);
            jMenuBar1.add(menu);
            setJMenuBar(jMenuBar1);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jp1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .add(10, 10, 10)
                            .add(btnReport, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 102, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(28, 28, 28)
                            .add(btnAddRecord, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 158, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(layout.createSequentialGroup()
                            .add(lblname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 52, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(15, 15, 15)
                            .add(cmbname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 194, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(btnAddname, 0, 0, Short.MAX_VALUE)
                            .add(28, 28, 28)
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 89, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 253, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                            .add(39, 39, 39)
                            .add(jLabel2)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(jScrollPane1))
                        .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                            .add(20, 20, 20)
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                .add(lblname)
                                .add(cmbname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(btnAddname))
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jp1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(btnReport)
                        .add(btnAddRecord))
                    .addContainerGap(15, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
        private void cmbnameFocusGained(java.awt.event.FocusEvent evt)                                   
    // TODO add your handling code here:
           this.jp1.updateUI();
        public void loadNameCombo()
            doConnection();
            try{
                query ="select name from name_master";
                rs = stmt.executeQuery(query);
                while(rs.next())
                    cmbname.addItem(rs.getString("name"));
            }catch(Exception e){ e.printStackTrace(); }
             // this.repaint();    
        public void reloadComboName()
            cmbname.removeAllItems();
            loadNameCombo();
            this.repaint();
        public void loadItemCombo()
            doConnection();
            try{
                query ="select item_name from item_master";
                rs = stmt.executeQuery(query);
                while(rs.next())
                    cmbitem.addItem(rs.getString("item_name"));
            }catch(Exception e){ e.printStackTrace(); }
        private void btnAddnameActionPerformed(java.awt.event.ActionEvent evt)                                          
    // TODO add your handling code here:
            AddNewName n = new AddNewName();
            n.setVisible(true);
        private void btnAddActionPerformed(java.awt.event.ActionEvent evt)                                      
    // TODO add your handling code here:
            AddNewItem i = new AddNewItem();
            i.setVisible(true);
        private void menu1exitActionPerformed(java.awt.event.ActionEvent evt)                                         
            // TODO add your handling code here:
             System.out.println("Current :"+ day +":"+month+":"+year);
    }AddNewName.java
    * AddNewName.java
    * Created on October 13, 2007, 2:52 PM
    package app;
    import app.ExpTracker;
    import java.sql.*;
    import java.util.Vector;
    * @author  Administrator
    public class AddNewName extends javax.swing.JFrame
        /** Creates new form AddNewName */
        Connection con = null;
        Statement stmt = null;
        ResultSet rs = null;
        String query;
        int status =0;
        String URL="jdbc:mysql://localhost:3306/exptracker";
        String DRIVER ="com.mysql.jdbc.Driver";
        public AddNewName()
            initComponents();
        public void doConnection()
            //make connection
            try
                Class.forName(DRIVER).newInstance();
            catch(Exception e)
            { System.out.println("driver not found"+e.getMessage());     }
            //making query
            try
                con = DriverManager.getConnection(URL, "root", "");
                stmt = con.createStatement();
            catch(Exception e)
            { System.out.println("Connection Failure !"+ e.getMessage());  }
        public void doInsert()
            String name2add = tfnameadd.getText().trim();
            query = "INSERT INTO name_master(name) VALUES ('"+name2add+"')";
            System.out.println("QUERY:"+query);
            try
               status = stmt.executeUpdate(query);
               //System.out.println("Query Status :"+status);
               //con.commit();
            } catch (SQLException ex)
                ex.printStackTrace();
        /** 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 Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents()
            jPanel1 = new javax.swing.JPanel();
            lblnewname = new javax.swing.JLabel();
            tfnameadd = new javax.swing.JTextField();
            btnaddname = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Add New Name"));
            lblnewname.setText("Enter Name :");
            tfnameadd.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            btnaddname.setText("Add Name");
            btnaddname.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            btnaddname.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(java.awt.event.ActionEvent evt)
                    btnaddnameActionPerformed(evt);
            org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                        .add(btnaddname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 108, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(jPanel1Layout.createSequentialGroup()
                            .add(lblnewname, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(37, 37, 37)
                            .add(tfnameadd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 218, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(20, Short.MAX_VALUE))
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel1Layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(lblnewname)
                        .add(tfnameadd, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(btnaddname, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)
                    .addContainerGap())
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            pack();
        }// </editor-fold>                       
        private void btnaddnameActionPerformed(java.awt.event.ActionEvent evt)                                          
    // TODO add your handling code here:
            ExpTracker et = new ExpTracker();
             doConnection();
             doInsert();
                if(status == 1)
                    javax.swing.JOptionPane.showMessageDialog(this,"Record Inserted Successfully.");
                    this.setVisible(false);
                    et.repaint();
                    et.reloadComboName();
                    //this.repaint();
                else
                    javax.swing.JOptionPane.showMessageDialog(this,"Record Failed to Insert.","Error",2);
         * @param args the command line arguments
        // Variables declaration - do not modify                    
        private javax.swing.JButton btnaddname;
        private javax.swing.JPanel jPanel1;
        private javax.swing.JLabel lblnewname;
        private javax.swing.JTextField tfnameadd;
        // End of variables declaration                  
    }AddNewItem.java
    * AddNewItem.java
    * Created on October 13, 2007, 2:19 PM
    package app;
    import java.sql.*;
    import java.util.*;
    * @author  Administrator
    public class AddNewItem extends javax.swing.JFrame
        /** Creates new form AddNewItem */
        Connection con = null;
        Statement stmt = null;
        ResultSet rs = null;
        String query;
        int status =0;
        String URL="jdbc:mysql://localhost:3306/exptracker";
        String DRIVER ="com.mysql.jdbc.Driver";
        public AddNewItem()
            super("Add New Item");
            initComponents();
        public void doConnection()
            //make connection
            try
                Class.forName(DRIVER).newInstance();
            catch(Exception e)
            { System.out.println("driver not found"+e.getMessage());     }
            //making query
            try
                con = DriverManager.getConnection(URL, "root", "");
                stmt = con.createStatement();
            catch(Exception e)
            { System.out.println("Connection Failure !"+ e.getMessage());  }
        public void doInsert()
            String item2add = tfadditem.getText().trim();
            query = "INSERT INTO item_master(item_name) VALUES ('"+item2add+"')";
            System.out.println("QUERY:"+query);
            try
               status = stmt.executeUpdate(query);
               //System.out.println("Query Status :"+status);
               //con.commit();
            } catch (SQLException ex)
                ex.printStackTrace();
        /** 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 Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents()
            jPanel1 = new javax.swing.JPanel();
            lblitemname = new javax.swing.JLabel();
            tfadditem = new javax.swing.JTextField();
            btnAddItem = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setAlwaysOnTop(true);
            jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Add New Item"));
            lblitemname.setText("Item to add :");
            tfadditem.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            btnAddItem.setText("Add Item");
            btnAddItem.setBorder(javax.swing.BorderFactory.createEtchedBorder());
            btnAddItem.addActionListener(new java.awt.event.ActionListener()
                public void actionPerformed(java.awt.event.ActionEvent evt)
                    btnAddItemActionPerformed(evt);
            org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel1Layout.createSequentialGroup()
                    .add(18, 18, 18)
                    .add(jPanel1Layout.createParallelGroup(org.jd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Refresh window to see new role

    If I add a new role it becomes only visible by quiting and re-login to the Portal.
    Isn't it possible to refresh to see a new role?

    A lot depends on whether the role has been given to the user dircetly, or through group membership. If you assign a role directly to a user, then a browser refresh will handle this. However, if the role is given to a group and the group is then assigned to a user, then a logoff/logon will be required, as group membership is only picked up at logon time.
    Cheers

  • I refreshed Windows 7 and now all Firefox will give me is a black screen. I have reinstalled it many times.

    Also the letters turn into blocks. The only way to sum up is that it's broken. Period. And nothing is helping.

    hello spearcarrier, this might be an issue with hardware acceleration - please try [[Upgrade your graphics drivers to use hardware acceleration and WebGL|updating your graphics driver]], or in case this doesn't solve the issue or there is no new version available at the moment, disable hardware acceleration in ''firefox > options > advanced > general''.

  • Refresh First page after returning from a framed pop-up window

    HI Can anyone help me on this technical problem.
    I have got one mainpage and from there i'm calling a popup with two frames (left, right). At frame right i'm populating the tableview.
    So when i submit(button) in tableview(right), the table contents has to be replicated in the first page and the popup has to be closed. So far it has be done successfully.
    The problem is when i return to the first page the page is not getting <b> refreshed automatically</b>. FYI, i'm not using mvc for performance reasons.
    So i need your help on how to refresh the first page, after control passes from popup.
    Here is the code, that calls the popup window
    winvar=window.open("organization.htm", 'main','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');

    Hi Craig & Raja,
    Let me tell thanks for your response. But your valuable solutions are not working for me. Please, check this code and please let me know that any thing went wrong.
    Here is the code
    My main page is progress.htm
    ============================
    <script language = "javascript">
        function openOrgTree(){      
           var winvar;
           winvar=window.open("organization.htm", '<b>Main</b>','height=450,width=650,status=yes,scrollbars=yes,toolbar=no,resizable=yes');
      </script>
    <htmlb:inputField id          = "InputOrgPlan"
                            showHelp    = "X"
                            onValueHelp = "javascript:openOrgTree()" />
          <% if application->i_desc is not initial.%>
          <htmlb:tableView id              = "tvX"
                           headerVisible   = "false"
                           design          = "alternating"
                           visibleRowCount = "3"
                           fillUpEmptyRows = "true"
                           columnWrapping  = "false"
                           onHeaderClick   = "MyEventHeaderClick"
                           onRowSelection  = "MyEventRowSelection"
                           keyColumn       = "Text"
                           table           = "<%= application->i_desc %>"
                           iterator        = "<%= iterate %>" />
          <% endif. %>
          </td></tr>
    organization.htm (is the frames container)
    =========================================
      <!-- frames -->
    <frameset  rows="110%,*">
        <frameset  cols="40%,*" >
            <frame name="left" src="tree.htm" marginwidth="0" marginheight="0" scrolling="No" frameborder="0">
            <frame name="right" src="table.htm" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0">
    table.htm (right frame)
    ==========================
       function callSubmit()
         alert(parent.window.name);  
    // displays the name as "<b>Main</b>" which i gave at the time opening oraganization.htm
    //        parent.window.opener.refresh();
    // window.opener.location.href = window.opener.location.href ;
             window.opener.refresh();
             parent.close(); // to close the popup
    // all of the above are not working
       </script>
      <htmlb:page onLoad = "callSubmit()">
    <htmlb:button id            = "submitbutton"
                        onClick       = "myButtonClick"
                        onClientClick = "callSubmit()"
                        width         = "10"
                        text          = "Submit" />
    i need onClick to populate the internal table and onClientClick to refresh the opener.
    if event->id = 'submitbutton'.
          refresh application->i_desc.
          application->i_desc = i_desc.
    Regards
    Swaroop

  • Refresh only page item while submitting data from the popup window

    Hi All,
    I'm pretty new to Apex .....
    I have a form with text items as first few entries and then a radio button list and few text items again. On selecting certain radio button I have a popup window which acts as an interface for the next text item in the calling page. The purpose of having the popup window is that the text item following the radio button takes the input with certain character delimiters along with the data. Instead of using delimiters while entering the data I want a meaningful data to be keyed in the popup window and all the string operation to be done as a background process. I have been successful this far. I'm using the below javascript on click of the submit button.
    javascript:doSubmit();
    window.opener.doSubmit('REFRESH');
    window.close();
    On doing this I'm losing the values submitted for the items prior to the radio button(including radio button). Please note, I have a dynamic action set on page load to reset the values. Is it possible to refresh just the page item from the popup window.
    Also, I tried excluding the window.opener.doSubmit('REFRESH'); from the above javascript. It sets the item with the expected value (viewed it in the session items, however I would like to view the concatenated string on my calling page) but following this there is an insert operation which uses all the necessary items in the form. All values except the value returned from the popup window is populated into the table. Am I missing something.
    Any help in this regard is appreciated.
    Thank you!!!
    Regards,
    Ganesh

    Value set using Javascript is only in your browser page but is not yet available in the session. This is why the report doesn't return the expected output.
    Before refreshing the report you would need to set the session state of this item.
    You can set it after you assign the item a new value or before the report is refreshed
    For Interactive Reports, this is available built in
    you can go to Report Attributes >Advanced Attributes -> Page Items to Submit and specify P2_X1 for the field(and any other page item that the report is dependent on)
    For standard reports, you can create a Dynamic Action that is triggered "before refresh" of the report's region, and choose PLSQL as the action types, give a dummy BEGIN NULL END; for the code and specify this item name in the page item to submit field so that it sets the items's value in session.

  • How to fix Windows update after refresh?

    ENVY dv7, Windows 8. After refreshing Windows, Windows update is stuck at 0%

    Hi Diaz418198,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP ENVY dv7 Notebook and getting a screen on startup at 0%. Try performing a hard reset. When performing a hard reset please note remove any and all USB devices, and remove memory cards from the card reader slot. Disconnect all non-essential devices. If that does not help try to turn on the computer you start to press F11 repeatedly till the menu opens. You can do a system restore.
    Hope this is helpful.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Toshiba satellite windows 8/8.1 reset partition not 'detected' by window and cannot refresh.

    it is not the first toshiba i purchase and i will not be able to purchase since i quitted my previous brand due to problems always surfacing (acer always break, toshiba was supposed to be decent).
    But now i need to refresh window and i past over 60hours to try to fix the issue to arrive to this point : i need to refresh windows back to original state, and windows do not 'know' the recovery partition is right under its nose (doupt it is corrupted, i made a backup image of the current hard drive just in case, and right after i did trigger the refreshing back to factory, it worked, but windows 8.1 'broke' a few minutes aways from the final step to download windows 10...
    Hard drive could not be recovered so i had to CMD/Clean the hard drive and re-install the old 'slowered/infected' image backup i had and now it refuse to detect the partition wit the window refreshing part.
    Snapshot show the disks, partition at the end, the 11go size is the refreshing partition and wit another program it can be seen it is NOT empty...
    Partiton 1-2-3 are the current system that slowered and need to be refreshed, i need to refresh and recover my recovery partiton...
    i am also downloading windows 8.1 enterprise Iso
    (9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_ENTERPRISE_EVAL_FR-FR-IR3_CENA_X64FREE_FR-FR_DV9.ISO)
    Il burn it on a DVD to be able to use it as the recovery console is kind of down aswell due to the same issue wi the refreshing not being accessible.         having some thecnician skills myself, if you specefy how to fix it i can, i been searching for solutions and doing them for the past week and there went all my vacations... but seriously, i am NOT going to pursashe another toshiba wen this current notebook lifeline end if i cannot get this fixed soon. i left others brands permanantly due to trouble it caused and forced me to become thechnician to fix them. i know it part have to do wit window 8 and 8.1 but why dint you just let us choice to get window 7 wen pursashing it back in the recent years ? oh and btw i dont know WHY my keyboard suddently inducing ''dual different keys'' even on the Bios, so if there is also some info/fix about this or even inform me of were and price to get the keyboard PIECE delivered so i can change it (no, extended waranty ended few months ago, and i am NOT sending the only comp i have by the mail i rather never fix it and change to another brand as i need the comp for my work all time, i cannot let it go for even few days) 

    Hi harrie
    I found other thread where you reported an solution to this issue.
    http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=74631
    I would like to thank you for this solution you posted in other thread
    +Check what drivers has to be uninstalled in Appendix A+
    [How to Update from Windows 8 to Windows 8.1|http://support.toshiba.com/sscontent?contentId=4003162]
    +What important is to remove the internet connection.+
    +Only use to download 8.1 then disconnect (also Lan cable)+
    +After starting Win 8.1 for the first time do not connect to the internet.+
    +On another pc download first the drivers for 8.1 audio,realtek wlan and bluetooth and display driver.+
    +Install and restart after this when de system is stable you can connect to internet and download the windows updates.+
    PS: this thread should be closed to avoid misunderstandings and because other thread already exists

  • Windows Refresh from 8.1 to 8. Will it affect my Premiere Pro 7 CC projects?

    Hey,
    I'm looking to refresh my HP Pavilion laptop. It came with Windows 8 installed and I upgraded to 8.1 since I purchased it. I've got issues with it waking from sleep mode and have read that a refresh may fix that problem.
    My question is - will refreshing Windows from 8.1 back to Windows 8 affect my Abobe Premiere Pro projects, sequences and timelines?
    The Microsoft page offers this advice "If your PC isn’t performing as well as it once did, and you don’t know why, you can refresh your PC without deleting any of your personal files or changing your settings."
    BUT it also says this
    Warning
    Applications you’ve installed from websites and DVDs will be removed. Applications that came with your PC and apps you've installed from the Windows Store will be reinstalled. Windows puts a list of removed applications on your desktop after refreshing your PC.
    Will Premiere Pro 7 CC be affected?
    Thanks for any advice!

    I checked and it seems my Windows partition is clean.
    I guess I just needed the clarification whether me double clicking on the .lnk file is a problem, if it was considered "opened" by my Mac, or it just didn't open, and the fact that I actually opened a html file while my pendrive was affected. But since it's just a Windows issue, I guess I'm good to go, eh?

Maybe you are looking for

  • Panda3d 1.6.2-3 binary programs can't find shared libraries

    This was a bit of an issue for me, and I wanted to see if this was an issue for anyone else. Initially after installing panda3d 1.6.2-3 I had issues running the binary programs it provided, in particular punzip. punzip would complain about not findin

  • Sleep/Wake button stuck .Offered a replacement for £119

    So today I went to the Apple store with my out of warrenty iPhone 4 with an unrepsonive/stuck sleep wake button they looked at it and within 30 seconds said that I would need a replacement phone at the cost of £119. I said I would go away and think a

  • Data Modeler 2.0.0 Windows Authentication to SQL Server

    Is there a way to sign onto a SQL Server database with Data Modeler similar to SQL Developer using Windows Authentication? I have loaded the correct JDBC drivers.

  • The loss of the iPhone 4s

    Hello! I lost my iPhone and it was not installed program find my iPhone and also was registered in iCloud. Please tell me can I, as a fact, without these two programs to refund my Apple, for example to have the address?! and I still see as a knock my

  • Call sp from sp,  is it possible in Oralce

    Hi, Can I call Oracle SP02 from SP01 in the middle of it andstream and then complete my original SP01? I can't find anything about such case in Ora docs, not sure how control flow will behalf after calling SP02, is it possible? Are there any restrict