Validating enabled and disabled menu bar in JInternalFrame

hi,
everybody.
i have created a main window using JInternalFrame and JDesktopPane. The window has a menu bar in which document menu is used for closing the main window, while employee menu is used for adding new frame for the employee. while the login frame is displayed when the application is executed.
my problem is, i want to validate that before login process, employee menu should be disabled, and after login is performed employee menu is enabled.
the following is my code.
please reply me as i am stucked with it.
waiting for the reply
thanks in advance.
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.io.*;
import java.util.*;
public class InternalFrameDemo extends JFrame implements ActionListener
JDesktopPane desktop;
public InternalFrameDemo()
super("InternalFrameDemo");
int inset = 50;
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
setBounds(inset, inset, screenSize.width - inset*2, screenSize.height - inset*2);
desktop = new JDesktopPane();
setContentPane(desktop);
desktop.setBackground(Color.white);
setJMenuBar(createMenuBar());
desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
createLogin();
public JMenuBar createMenuBar()
JMenuBar menuBar = new JMenuBar();
JMenu menu = new JMenu("Document");
menu.setMnemonic(KeyEvent.VK_D);
menuBar.add(menu);
JMenuItem menuItem = new JMenuItem("Quit");
menuItem.setMnemonic(KeyEvent.VK_Q);
menuItem.setAccelerator(KeyStroke.getKeyStroke( KeyEvent.VK_Q, ActionEvent.ALT_MASK));
menuItem.setActionCommand("quit");
menuItem.addActionListener(this);
menu.add(menuItem);
JMenu employee = new JMenu("Employee");
employee.setMnemonic(KeyEvent.VK_E);
employee.setActionCommand("employee");
menuBar.add(employee);
JMenuItem additem = new JMenuItem("Add");
additem.setMnemonic(KeyEvent.VK_A);
additem.setActionCommand("add");
additem.addActionListener(this);
employee.add(additem);
return menuBar;
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
if(str.equals("add"))
System.out.println("Employee Form Invoked");
createEmployee();
else if(str.equals("quit"))
quit();
public void createEmployee()
MyEmployeeFrame employeeframe = new MyEmployeeFrame();
employeeframe.setVisible(true);
desktop.add(employeeframe);
try
employeeframe.setSelected(true);
catch(Exception e)
public void createLogin()
MyLogin loginframe = new MyLogin();
loginframe.setVisible(true);
desktop.add(loginframe);
try
loginframe.setSelected(true);
catch(Exception e){}
public void quit()
System.exit(0);
private static void createAndShowGUI()
JFrame.setDefaultLookAndFeelDecorated(true);
InternalFrameDemo frame = new InternalFrameDemo();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(800,600);
frame.setVisible(true);
public static void main(String a[])
createAndShowGUI();
class MyEmployeeFrame extends JInternalFrame implements ActionListener
JFrame employeeframe;
JLabel labelfirstname;
JLabel labellastname;
JLabel labelage;
JLabel labeladdress;
JLabel labelcity;
JLabel labelstate;
JTextField textfirstname;
JTextField textlastname;
JTextField textage;
JTextField textaddress;
JTextField textcity;
JTextField textstate;
JButton buttonsave;
FileOutputStream out;
PrintStream p;
String strfirstname,strlastname,strage,straddress,strcity,strstate;
GridBagLayout gl;
GridBagConstraints gbc;
public MyEmployeeFrame()
super("Employee Details",true,true,true,true);
setSize(500,400);
labelfirstname = new JLabel("First Name");
labellastname = new JLabel("Last Name");
labelage = new JLabel("Age");
labeladdress = new JLabel("Address");
labelcity = new JLabel("City");
labelstate = new JLabel("State");
textfirstname = new JTextField(10);
textlastname = new JTextField(10);
textage = new JTextField(5);
textaddress = new JTextField(15);
textcity = new JTextField(10);
textstate = new JTextField(10);
buttonsave = new JButton("Save");
gl = new GridBagLayout();
gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 3;
gl.setConstraints(labelfirstname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 3;
gl.setConstraints(textfirstname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 5;
gl.setConstraints(labellastname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 5;
gl.setConstraints(textlastname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 7;
gl.setConstraints(labelage,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 7;
gl.setConstraints(textage,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 9;
gl.setConstraints(labeladdress,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 9;
gl.setConstraints(textaddress,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 11;
gl.setConstraints(labelcity,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 11;
gl.setConstraints(textcity,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 13;
gl.setConstraints(labelstate,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 13;
gl.setConstraints(textstate,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 3;
gbc.gridy = 17;
gl.setConstraints(buttonsave,gbc);
Container contentpane = getContentPane();
contentpane.setLayout(gl);
contentpane.add(labelfirstname);
contentpane.add(textfirstname);
contentpane.add(labellastname);
contentpane.add(textlastname);
contentpane.add(labelage);
contentpane.add(textage);
contentpane.add(labeladdress);
contentpane.add(textaddress);
contentpane.add(labelcity);
contentpane.add(textcity);
contentpane.add(labelstate);
contentpane.add(textstate);
contentpane.add(buttonsave);
buttonsave.addActionListener(this);
public void reset()
textfirstname.setText("");
textlastname.setText("");
textage.setText("");
textaddress.setText("");
textcity.setText("");
textstate.setText("");
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
System.out.println(str);
if(str.equalsIgnoreCase("Save"))
try
out = new FileOutputStream("myfile.txt",true);
p = new PrintStream( out );
strfirstname = textfirstname.getText();
strlastname = textlastname.getText();
strage = textage.getText();
straddress = textaddress.getText();
strcity = textcity.getText();
strstate = textstate.getText();
p.print(strfirstname+"|");
p.print(strlastname+"|");
p.print(strage+"|");
p.print(straddress+"|");
p.print(strcity+"|");
p.println(strstate);
System.out.println("Record Saved");
reset();
p.close();
catch (Exception e)
System.err.println ("Error writing to file");
class MyLogin extends JInternalFrame implements ActionListener
JFrame loginframe;
JLabel labelname;
JLabel labelpassword;
JTextField textname;
JPasswordField textpassword;
JButton okbutton;
String name = "";
FileOutputStream out;
PrintStream p;
Date date;
GregorianCalendar gcal;
GridBagLayout gl;
GridBagConstraints gbc;
public MyLogin()
super("Login",true,true,true,true);
setSize(400,300);
gl = new GridBagLayout();
gbc = new GridBagConstraints();
labelname = new JLabel("User");
labelpassword = new JLabel("Password");
textname = new JTextField("",9);
textpassword = new JPasswordField(5);
okbutton = new JButton("OK");
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 5;
gl.setConstraints(labelname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 2;
gbc.gridy = 5;
gl.setConstraints(textname,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 10;
gl.setConstraints(labelpassword,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 2;
gbc.gridy = 10;
gl.setConstraints(textpassword,gbc);
gbc.anchor = GridBagConstraints.NORTHWEST;
gbc.gridx = 1;
gbc.gridy = 15;
gl.setConstraints(okbutton,gbc);
Container contentpane = getContentPane();
contentpane.setLayout(gl);
contentpane.add(labelname);
contentpane.add(labelpassword);
contentpane.add(textname);
contentpane.add(textpassword);
contentpane.add(okbutton);
okbutton.addActionListener(this);
public void reset()
textname.setText("");
textpassword.setText("");
public void run()
try
String text = textname.getText();
String blank="";
if(text.equals(blank))
System.out.println("First Enter a UserName");
else
if(text != blank)
date = new Date();
gcal = new GregorianCalendar();
gcal.setTime(date);
out = new FileOutputStream("log.txt",true);
p = new PrintStream( out );
name = textname.getText();
String entry = "UserName:- " + name + " Logged in:- " + gcal.get(Calendar.HOUR) + ":" + gcal.get(Calendar.MINUTE) + " Date:- " + gcal.get(Calendar.DATE) + "/" + gcal.get(Calendar.MONTH) + "/" + gcal.get(Calendar.YEAR);
p.println(entry);
System.out.println("Record Saved");
reset();
p.close();
catch (IOException e)
System.err.println("Error writing to file");
public void actionPerformed(ActionEvent ae)
String str = ae.getActionCommand();
if(str.equals("OK"))
run();
loginframe.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
}

I realize this post is from a few days ago, but if you're still looking for help:
This is my first thought on how to do this. Unfortunately, it's a bit messy. JMenuItems can be enabled and disabled but JMenus don't have this option...
public class InternalFrameDemo extends JFrame implements ActionListener
    JDesktopPane desktop;
    JMenuBar menuBar;
    public InternalFrameDemo()
     setJMenuBar(createMenuBar());
     desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
     createLogin();
    public JMenuBar createMenuBar()
     menuBar = new JMenuBar();
     JMenu menu = new JMenu("Document");
     menu.setMnemonic(KeyEvent.VK_D);
     menuBar.add(menu);
     JMenuItem menuItem = new JMenuItem("Quit");
     menuItem.setMnemonic(KeyEvent.VK_Q);
     menuItem.setAccelerator(KeyStroke.getKeyStroke( KeyEvent.VK_Q, ActionEvent.ALT_MASK));
     menuItem.setActionCommand("quit");
     menuItem.addActionListener(this);
     menu.add(menuItem);
     JMenuItem additem = new JMenuItem("Add");
     additem.setMnemonic(KeyEvent.VK_A);
     additem.setActionCommand("add");
     additem.addActionListener(this);
     employee.add(additem);
     return menuBar;
    public void createLogin()
     MyLogin loginframe = new MyLogin( menuBar );
     loginframe.setVisible(true);
     desktop.add(loginframe);
     try
         loginframe.setSelected(true);
     catch(Exception e)
class MyLogin extends JInternalFrame implements ActionListener
    JMenuBar menuBar;
    public MyLogin( JMenuBar menuBar1 )
     super("Login",true,true,true,true);
     menuBar = menuBar1;
    public void actionPerformed(ActionEvent ae)
     String str = ae.getActionCommand();
     if(str.equals("OK"))
         run();
         JMenu employee = new JMenu("Employee");
         employee.setMnemonic(KeyEvent.VK_E);
         employee.setActionCommand("employee");
         menuBar.add(employee);
         loginframe.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
}

Similar Messages

  • Can you enable and disable windows task bar

    I there a dynamic way to enable and disable the windows task bar?

    I am not clear on a way to do this, but if it were possible, you would have to make calls to Windows SDK. You would use the Call Library Function Node to access one of the Windows System DLLs to do this. I would suggest checking http://msdn.microsoft.com. This is a great resource for SDK related issues.
    J.R. Allen

  • Can i export a list of all the webpages in my site, enabled and disabled?

    Hey Guys,
    Can i export a list of all the webpages in my site, enabled and disabled?
    I saw you could view all pages in the advanced view - but i am not sure if you can then export that as an excel file.

    hey Liam -
    but ftp doesnt show you what is enabled and disabled.
    also I don't think you can export an excel file from this?
    Pretty much i want this list - in an excel format!

  • How to distinguish between enabled and disabled tasks in SSDT-BI 2012

    Hi,
    I've got SSDT-BI 2012 together with VS2012 installed. Simple questions: What is the difference between enabled and disabled tasks in control flow from the design/color point of view? I do see that the disabled tasks changes to grey (omg are you really kidding
    me????) from black. This could be a bad joke or dream however is not.
    So I'm kindly asking you to help me solve this problem. How can I change the color difference between these two options (enabled task vs disabled task)? I do not care whether the one will be yellow or pink, simply just need to be recognizable at first
    look and not under long and painful examination.
    Thanks for your reply. Hopefully it will be useful.
    Karol.

    Hi Karol,
    It’s true that it only changes the font color of the task name text to grey after disabling a task in SSDT 2012. In SSDT 2010, the whole task control including icon will turn grey after it is disabled; in BIDS, the background color of the task control will
    turn grey after it is disabled. These behaviors are by design. Personally, I agree with you that this behavior in SSDT 2012 is not very readable.
    If you have concerns, I would suggest you submitting a wish at
    https://connect.microsoft.com/sql.
    Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • How I can delete add-in in windows 8.1 ,I see only enable and disable function but I don't see any add-in delete function

    hi,
    how I can delete  add-in applications in add-in applications section ,  I try to delete one but I don't see any delete function, I see only enable and disable function in the manage add-in applications wizard.
    thanks
    johan
    h.david

    Hi,
    If you want to remove the add-ins of Office 2010 programs, you need to remove it from control panel.
    For example, if you use Excel, please try to follow the link to delete the add-ins:
    http://office.microsoft.com/en-us/excel-help/add-or-remove-add-ins-HP010342658.aspx
    If I misunderstand something, please let me know.
    Regards,
    George Zhao
    TechNet Community Support

  • I accidently unmarked the book marks tool bar, the tool bar and the menu bar how do i get them back ?becaus now only the tabs are visible and i cant access my features or book marks

    i was getting to know my firefox so i accidentally unmarked the menu bar the book marks tool bar and the tool bar. so now only my tabs are visible and i cant get to any of my add-ons or extensions.
    and even surfing the net has become difficult cause there is almost nothing i can do with a new empty tab.
    how can i get these bars back. i tried taking the cursor up to the thin line above the tabs and the window border but the menu to mark the above mentioned features does not appear any more.
    i tried restarting firefox several times but it didn't work. i even uninstalled and completely downloaded a new version of firefox and installed it but the problem still persists.
    i am operations system is windows XP.

    Firefox 3.6+ versions have a feature to allow the user to hide the Menu bar.
    Hit the '''Alt''' key to temporarily show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark. <br />
    The F10 can also be used on most PC's to temporarily reveal the Menu bar.
    https://support.mozilla.com/en-US/kb/Menu+bar+is+missing

  • Enable and Disable the file paths

    Hai i have two file paths one logical file path and other is physical file path.
    I took two radio buttons.
    How can i enable and disable the file paths by using these radio buttons.
    When i select the 1st radio button then 1st file path is in enable and second file path in disable mode similarly for the second radio button also.
    It is very urgent .
    With Regards,
    Prasad.Tallapudi.

    i answered in your other post....here is the code again....
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: logfile type string default 'Z_DATALOAD',
    FILE(128) TYPE C DEFAULT 'nittest.txt' LOWER CASE.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LFILE RADIOBUTTON GROUP G1 USER-COMMAND C1 DEFAULT 'X',
    P_PFILE RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF BLOCK B2.
    at selection-screen output.
      if p_lfile eq 'X'.
        loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '1'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '0'.
              endif.
              modify screen.
          endloop.
        endif.
        if p_pfile eq 'X'.
          loop at screen.
          if screen-name = 'LOGFILE'.
            screen-input = '0'.
            endif.
            if screen-name = 'FILE'.
              screen-input = '1'.
              endif.
              modify screen.
          endloop.
          endif.
    if the problem gets solved...please close both the posts

  • My mac is the OS X 10.8.3.  I tried to update the latest Adobe flash player and kept getting 'Actionlist not found.'  I have uninstalled, enabled and disabled plug-ins and am still unable to download the update and now have no flashplayer at all.  Help!

    My mac is the OS X 10.8.3.  I tried to update the latest Adobe flash player and kept getting 'Actionlist not found.'  I have uninstalled, enabled and disabled plug-ins and am still unable to download the update and now have no flashplayer at all.  Help!
    PS I'm still new to Macs so the more broken down the better.

    Adobe Flash Player 11.8.800.42 is the most recent version from Adobe. It is a pre-release version. I am using it without any noticeable problems.
    The current stable version is Download 11.7.700.169.

  • I have dual displays.  My dock is on the MBP bottom and the menu bar is on the extended monitors top.

    I have a Dell 2408 acting as the main display and a 15" MBP.  For some reason, today the dock ended up on the MBP screen at the bottom and the menu bar is on the Dell at the top.  I can't seem to move the dock back to the Dell.  Can someone help?  I tried moving the menu bar to the MBP and then back, hoping the dock would follow but no luck.
    Thanks for your help.

    When the dock is defined as on the bottom, it will appear on the screen of the extended desktop that is lowest.
    Move the second monitor where the bottom edges are equal or the Dell is lower and the dock will move there.
    Regards,
    Captfred

  • Please Help SL - Everything 'quits unexpectedly' and top menu bar flashing

    Please Help. Snow Leopard - Everything 'quits unexpectedly' and top menu bar flashing.
    Basically, I have been using snow leopard for about 1-2 weeks now without any problems, apart from the strange trackpad expose glitch, but I can live with that. But a new problem has arisen that I CANNOT live with. Basically I plugged in my MiniDisplay > VGA adaptor and a Wacom internet tablet for the first time. And when it booted up rather than just the usual spinning gear, their was a progress bar as-well. Then it booted into Safe Mode.?
    Everything was fine in safe mode apart from spotlight didn't work properly so I rebooted and this time it loaded normally. EXCEPT about 5 minutes after I logged on the top menu bar started to flash on and off about ever 1-2 seconds and virtually every single application would quit unexpectedly before even loading. I haven't really looked into it apart from a quick search on google which doesn't seem to bring up anything similar, but atm I am having to use my bootcamp partition with windows installed (shock horror :D) just so I can browse the internet.
    Additional details -
    I have tried resetting PRAM + NVRAM with no joy
    While logging on (before it crashes), menu items (e.g. Airport, Battery Indicator, Facebook Notifier) all load up on the far right BEFORE the clock, which never happened before the problem, don't know if this will help isolate the problem, but its worth mentioning..
    Don't really want to go down the fresh install route if possible, as I did this with leopard about 2 months before Snow Leopard was released

    I noticed it some weeks after installing Snow Leopard, and didn't think much about it since I have a Wacom mouse, and the Wacom driver often has some little peculiarities at startup with the Mac OS--sometimes everything is perfectly ordinary, there will be an OS update and a little oddness shows up, the driver eventually gets updated and the oddness disappears until some other OS update, and so on. I just figured that was what it was until my brother asked about the missing the menu bar after startup, which reappears with a click. He doesn't use a Wacom mouse, but he does have some other 3rd party mouse. I don't know whether 3rd party mouse drivers are at fault or not. But it is not a problem with the SystemUIServer.....the entire menu bar is missing, not just a goof-up on the Spotlight end, where SystemUIServer is in charge of things. Since simply clicking the mouse brings the menu bar up I've never even bothered to check the logs to see if anything is noted there.
    Francine
    Francine
    Schwieder

  • On basis of drop down by key values i want to enable and disable ui elements is wda

    How to enable and disable ui elements on basis of drop down by key values as i show in screen shot i have 3 values in drop down by key on basis of those values i need to enable and disable ui elements in webdynpro abap kindly reply back

    Hi Sreedhara,
    There are many tutorials on SCN for learning Web Dynpro ABAP. If the following steps don't make sense to you, please do a search for some tutorials and read through the tutorial materials. Hopefully the tutorials will help you to become familiar with some of the basics of Web Dynpro ABAP.
    Here is how to enable or disable a UI element upon selection from a DropDownByKey.
    In your view context, create a context attribute of type wdy_boolean. For now, let's call this attribute IS_ENABLED
    In your view layout, bind the enabled property of the UI element to the context attribute IS_ENABLED.
    In your view actions, create an action-- let's call it SET_ENABLED-- and bind this action to the DropDownByKey element's onSelect event in the view layout.
    In the event handler method for the SET_ENABLED action, use the Code Wizard to read the value of the DropDownByKey selected value, then use the Code Wizard again to set the value of context attribute IS_ENABLED to either true or false.
    Now when a value is selected from the DropDownByKey, the SET_ENABLED action will be triggered and the IS_ENABLED context attribute will be set to either true or false. Since your UI element's enabled property is bound to this true or false value via the context binding, the UI element will change to enabled or disabled.
    Good luck!
    Cheers,
    Amy

  • I have tried all the steps you listed in your FAQ sextion on enabling and disabling cookies but I am still getting the error message "cookies not enabled" on certain websites. Now what do I do?

    I have tried every step you have listed in your FAQ section for enabling and disabling cookies but I am still getting error messages "cookies not enabled" on certain websites? Why is this and what do I need to do to fix this?

    I have STILL NOT received an answer to my question as of this date. I am VERY disappointed in Firefox support.

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • Selection screen dynamic enable and disable

    HI all,
    I have one requirement like
    on selection of redio button my selection screen hould be enable and disable
    Like if i select rediobutton  tfile then my selection screen block B2 should enable and Block B3 hould be disable
    If redio button selscr is selected then my block B3 should be enable and Block B2 should disable
    my selection screen code is below
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
    PARAMETERS: tfile  RADIOBUTTON GROUP g1 DEFAULT 'X'.
    PARAMETERS: selscr RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_matnr FOR marc-matnr,
                                 s_fkdat FOR vbrk-fkdat OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
    PARAMETERS : filename TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK b3.
    How to do that.
    Help me here its urgent tnx in advance.

    Hi Lalit,
    Check the below code.
    TABLES: marc, vbrk.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
    PARAMETERS: tfile RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND rusr.
    PARAMETERS: selscr RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_matnr FOR marc-matnr  MODIF ID abc,
                     s_fkdat FOR vbrk-fkdat  MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
    PARAMETERS : filename TYPE rlgrap-filename MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN OUTPUT.
    *Note: To disable the fields use the below one.
      LOOP AT SCREEN.
        IF screen-group1 = 'DEF'. "Name field
          IF selscr = 'X'.
            screen-input = 1.
          ELSE.
            screen-input = 0.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
         IF screen-group1 = 'ABC'. "Name field
          IF selscr = 'X'.
            screen-input = 0.
          ELSE.
            screen-input = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    *Note: To hide the screen use the below one.
    LOOP AT SCREEN.
       IF screen-group1 = 'DEF'. "Name field
         IF selscr = 'X'.
           screen-active = 1.
         ELSE.
          screen-active = 0.
         ENDIF.
         MODIFY SCREEN.
      ENDIF.
       IF screen-group1 = 'ABC'. "Name field
         IF  tfile = 'X'.
           screen-active = 1.
         ELSE.
          screen-active = 0.
        ENDIF.
         MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • Firefox has spontaneously decided not to show the task bar at the bottom of the screen, and some menu bars have been messed up. How can I fix this?

    My Firefox has spontaneously (apparently) decided not to show the task bar at the bottom of the screen (the margin is there, but it is blank), and some menu bars have been messed up. Perhaps the most annoying aspect of these changes is the fact that I have to use alt-tab to move from a Firefox session to another session.
    I can find no way to fix these problems. Can you help? Am I going to have to uninstall and re-install Firefox in order to get back to the default settings? If so, is there any way to preserve my bookmarks?

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: command+Shift+F).<br />
    If you are in full screen mode then hover the mouse to the top to make the Navigation Toolbar and Tab bar appear.<br />
    You can click the Maximize button at the top right to leave full screen mode or right click empty space on a toolbar and use "Exit Full Screen Mode" or press F11.
    *https://support.mozilla.org/kb/how-to-use-full-screen
    See also:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    *https://support.mozilla.org/kb/Toolbar+keeps+resetting

Maybe you are looking for

  • Reporting Agent on BW7

    Hi, i'm trying to use Reporting Agent to precalculate Webtemplates on BW7, but i can't see the new version templates for this. I want to precalculate the webtemplate each day so the first view of the report to be faster. Is R.A. still used on BW7 ? t

  • Message added with addmessage() does not show immediately.

    Hi, JDeveloper 11.1.1.2. At the end of a fileupload ( code based on these instructions http://docs.oracle.com/html/E18745_01/devguide/fileUpload.html) a message should show that the file was uploaded. But the meassge is only shown if the user pushes

  • Extend task list for new planning plant

    Hi Gurus, I have 40 task lists for a planning plant 1000. I want to extend them for a new planning plant 2000. Is there any method to do it without usnig BDC or LSMW? Regards, VM

  • Why did my mail account suddenly erase all emails and now will not sync with my quickbooks?

    I have quickbooks for Mac and it syncs to my mail account with my laptop everytime I email an invoice or an estimate.  The other day I went to send an estimate and it will not allow me to send, receive or see any of my previous emails.  Anybody have

  • Problem in backflasing

    Dear All, when i m backflash a particuler item in system i m getting error reading reporting point information ??? so please tell me how can i solve this Messeges No <b>RM111</b> with warm regards Pritpal Mehru