Disable all properties of a dreamweaver rule at once?

Is there a way to disable all properties of a dreamweaver rule at once?

I so seldom use the CSS panels.  I guess the answer to your question is you can't disable all properties with one click. 
You need to click on selector name, right click on a property such as background.  Hit disable. 
Repeat with other properties.
Once you've disabled a group of properties, you can delete them all or enable them all with right click.
Hope that helps,
Nancy O.

Similar Messages

  • "Click To Change All Properties" Not Working In Dreamweaver CC For Padding/Margins

    Every time I try to use the "Click To Change All Properties" option in Dreamweaver CC (the chain link icon in the middle of the Magin/Padding box), it never seems to work. Nor does it use the CSS shorthand, it lists the top, bottom, left and right margins/padding separately no matter if I have the chain link icon connected or broken.  If I have it set to link all four sides, then enter a value into the top, nothing happens to the other sides. It's not until I enter a value in to the bottom that it auto fills in the other two sides. Anyone else having this issue?

    Thank you for your help. I think I figured out what I might have been doing wrong when setting the margins. I would first clickt the chain icon to join everything, then enter in a value in the Top box, but I wouldn't see the other boxes update with that same value, so I would immediately click the Bottom value box. Instead, if I just click on the inner white box, just outside of the perimeter of the chain icon, it updates all of the remaining values.
    The shorthand setting worked as well for the Padding/Margins. Thank you!

  • Disabling all the monitors and rules in MP

    Hi,
    I am looking for the exact approach on disabling all the items in the monitoring pack and enabling it on demand type approach.
    To do so, I am looking for the effective approach. what all the items which should be disabled from the MP Discovery, so that all monitoring contents in the MP is disabled.
    Like example: I want to disable all the Monitoring items in Active Directory so that AD roles is not discovered by SCOM.
    Thanks!
    - Thanks, Sai

    Hi, strange desire)) but
    http://www.systemcentercentral.com/opsmgr-2012-disabling-rules-and-monitors-in-bulk-in-powershell/
    http://blogs.msdn.com/b/rslaten/archive/2013/07/21/create-overrides-in-scom-2012-with-powershell.aspx
    https://technet.microsoft.com/en-us/library/hh920201%28v=sc.20%29.aspx
    https://technet.microsoft.com/en-us/library/hh920257%28v=sc.20%29.aspx

  • Education Edge -- Firefox update, 6.0.2, disables all the pull-down menus

    We use Education Edge software to manage attendance, grades, etc. at our school. The new Firefox update, 6.0.2, disables all the pull-down menus. They show up, but the fields are all empty. Fix? Is there a way to revert to the previous version which worked fine?

    I have this problem on my dual monitor system. I found a solution that works. Click Start, Run, sysdm.cpl
    In the resulting System Properties window, click the Advanced tab, then click settings under Performance. You will have one of four radio buttons enabled. Here what I did. I enabled "Adjust for For Best Appearance" and clicked apply. I then unchecked the box "Show Shadow under windows" and clicked apply again. Problem solved.

  • Disable all Firewall?

    How do I COMPLETELY disable all firewall checking? (Win 2012R2)
    Disabling the Firewall service is not the answer, nor is disabling it through wf.msc or GPO.  I've tested this thoroughly, and if I simply disable it, it blocks certain traffic. I've resorted to enabling it and applying an Allow Any rule, which lets
    *more* of my traffic through, but it still blocks some traffic.
    Please don't answer if you're going to lecture me on security.
    Thanks.

    Hi weldr,
    There are several interfaces in Windows that allow you to configure firewall and IPsec settings. Creating policies in multiple places can lead to conflicts that block traffic,
    please refer the following KB to first confirm there have no conflict configuration.
    Windows Firewall Is Blocking a Program
    https://technet.microsoft.com/en-us/library/cc766312(v=ws.10).aspx
    Troubleshooting Firewall-Related Issues
    https://msdn.microsoft.com/en-us/library/windows/desktop/bb736284(v=vs.85).aspx
    I’m glad to be of help to you!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to get all properties for an item with search?

    How can I get all crawled / managed properties back of an item with the search API (REST, client, or server)?
    Currently I am only aware of specifying the applicable properties specifcally by using the selectproperties parameters via REST:
    http://host/site/_api/search/query?querytext='terms'&selectproperties='Path,Url,Title,Author'
    (taken from http://blogs.msdn.com/b/nadeemis/archive/2012/08/24/sharepoint-2013-search-rest-api.aspx)
    I don't want to do this. I just want to get all properties back that
    are associated with the search results.

    Its my understanding that standard managed properties will be returned, like: Created Date, Last Date Modified, Author, Title, etc.  However, if you need more than that you will need to specify the properties to return.
    This blog post also has a similar thought process:
    http://www.blendmaster.net/blog/2012/09/view-managed-property-value-in-sharepoint-2013-using-search-rest-api/
    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com

  • Firefox crashes for 10 seconds when trying to download files, deleting downloads.sqlite, reinstalling firefox, disable all add-ons doesn't solve this problem. Help!

    I am having this problem for weeks now.
    What I tried:
    - Defragmentation
    - Reinstall Firefox on a different location
    - Change download location
    - Start Firefox in safe mode and try download
    - Disable all add-ons and plug-ins
    - Complete malware/spyware scan
    - Complete virus scan
    - Delete downloads.sqlite in the profile folder
    - Uninstall firefox and delete the entire mozilla folder in Roaming location
    - Disabling antivirus
    Nothing helps! I'm only having this problem in Firefox. Downloading with Chrome for example doesn't give any problems.
    How can I resolve this problem? I'm really desperate.
    Thank you in advance!
    Yanco

    Thanks for your input but I already said that I deleted downloads.sqlite.

  • I'm deploying FF13 in my organization, how can i disable FF from disabling all plugins/extensions by default?

    Our organization requires web services with many plugins. In order to support the latest browsers, we must deploy FF13 company wide. Currently the installation disables all 3rd party plugins by default, requiring you to enable them manually. Therefore, this makes managing a FF13 deployment very difficult. Is there any way to configure it to deploy without it disabling plugins?

    Do you really mean plugins (Tools > Add-ons > Plugins) or do you mean extensions (Tools > Add-ons > Extensions)?
    Firefox shouldn't disable plugins unless they are blacklisted, but will display a dialog that shows which (third-party) extensions are found an allow to enable third party extensions.<br />
    There is probably no way to avoid such an alert, but you can try to copy extensions to the distribution/extensions folder where also the default theme resides.
    *https://developer.mozilla.org/En/Developer_Guide/Customizing_Firefox (Including extensions with your distribution of Firefox)

  • How do I disable all non-essential components in the CS6 installer

    A new question in the spirit of http://forums.adobe.com/thread/548877 and http://forums.adobe.com/message/2778575, where I asked this question for CS4 and CS5 and eventually discovered how to do this (at least for CS4; CS5 was a mess...): How do I disable all the non-essential components in the Photoshop CS6 installer?
    I already found the payloads/Media_db.db sqlite 3 database and wiped the DependencyData table. This goes a long way - unlike CS5, which was a maze of hidden xml configs and sqlite databases, for CS6 just wiping this single table will give the user full control over what the installer will put in the computer. With the dependencies wiped, we can now see all the stuff it's actually going to install:
    Bridge (normal and x64) - 187 and 262 MB
    CMaps (normal and x64) - 7.2 and 7.2 MB
    CSXS Extensions - 1.3MB
    CSXS Infrastructure - 6.8MB
    Color - photoshop, EU, JA, NA - 1.5, 2.1, 3.0, 2.5MB
    Video profiles - 4.7KB
    Dynamic Link Media Server - 96MB
    DynamicLink Support - 6.1MB
    ExtendScript Toolkit - 19MB
    Extension Manageer - 16MB
    Fonts recommended (normal and x64) - 110 and 110MB (why are there x86 and x64 versions? more of an open question than one that really needs an answer, but this is not how fonts work. There are no separate x86 and x64 flavoured OpenType fonts)
    Fonts required (normal and x64) - 123 and 123MB
    Hunspell Linguistics Plugin (normal and x64) - 181 and 181MB
    Linguistics (normal and x64) - 46 and 46MB
    Mini Bridge (normal and x64) - 4.0MB
    PDF Library Files (normal and x64) - 75 and 75MB
    Photoshop (normal and x64) - 486 and 563MB
    Photoshop Support - 9.4MB
    Player for Embedding 3.3 (normal and x64) - 21 and 26MB
    Switchboard 2.0 - 1.1MB
    Type Support (normal and x64) - 6 and 6MB
    Winsoft Linguistics Plugin (normal and x64) - 8.2 and 8.5MB
    XMP Panels - 4.9MB
    ColorCommonSetCMYK - 13MB
    ColorCommonSetRGB - 8.6KB
    Camera Profiles Installer - 285MB
    MSVC++2005 redist. (normal and x64) - 11 and 11MB
    MSVC++2008 redist. (normal and x64) - 11 and 11MB
    MSVC++2010 redist. (normal and x64) - 11 and 11MB
    MSVC80_CRT (normal and x64) - 0.0 and 0.0KB
    PDF Settings - 2.4MB
    Camera Raw 7  (normal and x64) - 22 and 24MB
    Suite Shared Configuration - 3.2MB
    Some of these things we really want installed (Photoshop, CMaps, XMP panels, Type Support and required fonts and color profiles are pretty much the minimal set required for a functional Photoshop installation), but some of these things really have no right to be silentedly installed. There's a good gigabyte of nonsense that someone who just wants Photoshop has no need for. Denying them the option to unselect these things during installation is a bit evil (whatever happened to the 'advanced' or 'custom' installation option? That was a good option).
    That said, there's still something funky going on - unselecting all components indicates that the installation will required 0.0KB on disk. However, selecting Photoshop CS6 x64, which indicates its size is 563MB, results in an installation that requires 677MB on disk. Similar things happen for other components; CMaps is 7.2MB, but when you select it, it suddenly requires 121MB on disk.
    Much last last time, I fully appreciate the install team's choices in making sure the installer will always work as long as people don't tamper with it, but I'm not one of those people - I do tamper with it, because I want to control exactly what lands on my disk. So: how do I find out what these secret things are that are not listed after wiping the dependency data so that I can explicitly pick individual components? Which additional steps are required to reveal the hidden dependencies that will apparently still be installed, or aren't factored into the size indication for the various components? And finally, how do I make the installer NOT determine that "this is not a genuine installer, you may have a counterfeit product" =)
    I know it's been altered; I modified it, because I think your install process is trying to force stuff onto my computer that I never asked for, nor will ever use (I know they're quality products, they just have no right to exist on my computers. If I had the choice to say no, I'd acknowledge them as quality products instead).
    - Mike Kamermans
    nihongoresources.com
    NB: if Eric Wilde ends up replying to this post: I still remember your willingness to help figure this out for CS5, two years ago. Thank you again for that.

    I can see why you wouldn't want to release information that lets people set up arbitrary installers, but that's why I mostly wanted those two specific hashes. The installer team can just generate them without ever saying how, and we will only be able to use them to validate the installer for the modification that lets you pick components. This should in no way interfere with the desire to prevent dangerous installers making it into the wild; in fact, it kind of guarantees that's impossible.
    I know you can't guarantee it'll work or test it, and that's fine. Past experience has shown that CS3, CS4 and CS5 work fine with updates (and most updates don't apply to Photoshop, they apply to the additional components that I traditionally don't install), so I'm pretty sure it'll work fine with CS6 too, although of course it could go wrong in which case I can always fall back to a normal install.
    Would you be willing to ask the install team whether they could generate just these two numbers, based on the single SQL command run on Media_db.db from the main payload directory? I can fully understand not wanting to give the "here is how you generate the hashes" information, but generating two specific numbers that don't work for anything but this specific query should be just as safe as the various hashes we can already see for the other Media_db.db files in the various payload directories (so they wouldn't reveal anything not already known about how to reverse engineer the hashing algorithm). It'd help tech-savvy customers quite a bit without playing into the hands of criminally minded jerks (I actually had the pleasure of running into a duped CS3 Extended disc several years ago! I had ordered CS3 for personal use, and mysteriously received a CS3 extended version with a volume licensing key in what looked like an official normal CS3 box. Needless to say, authorities and Adobe were notified).
    <<I think the right answer to this issue is to simply remove from the products those items that are not required to execute the product. That's actually something we're aggressively pursuing this summer so that the product size reduces in future releases, particularly for PS.>>
    It's not possible to take components out of the payloads directory without the installer complaining that errors have occurred. It really wants all those files there when it starts =(
    <<Have you investigated using AAMEE? I don't think that will get rid of all the "extraneous" pieces; but, it does provide some flexibility in creating an install package that can then be pushed out through normal deployment tools (e.g. SCCM).>>
    I did, but unfortunately AAMEE requires the use of a volume license key, which I don't have. We only have individual products keys for the machines that will get Photoshop CS6.
    - Mike

  • I'm having issues with Time Machine since my upgrade to Mavericks, running at a snails pace.  Is anyone else experiencing the same?  WiFi is running fine, disabled all the Anti-Virus, still barely runs.

    Is anyone else experiencing the same?  WiFi is running fine, disabled all the Anti-Virus, still barely runs.
    2013 27" iMac

    I'm having the same issue, mine says prepairing to backup. I let it run for 12 hours and it never performed a backup. I have a Mac Book Pro

  • How can I disable all the components in a JPanel?

    I want to disable all the components( button, text field ) in a JPanel. I know I can search the panel and disable each of its children component recursively. Is there a better way to do this?

    I want to disable all the components( button, text field ) in a JPanel.You haven't defined what you mean by "disable".
    If you mean you want the component to be repainted in its disabled state, then you would need to set the property of each individual component to disable, which would imply some kind of recursion.
    If you just want to prevent components from receiving key events and mouse events, then you can use a glass pane or maybe a panel with an overlay layout that contains a non-opaque panel that intercepts all events.

  • The new Pages in Mavericks OS:  How can I get a ruler down the left side?  When I click on "Show Rulers,"  all I get is a ruler at the top.

    In the new Mavericks OS, when I use Pages, I cannot find a way to get a ruler on the left side of the document.  When I click on "Show rulers," all I get is a ruler at the top of the document.  How can I get a ruler on the left side?

    Wait for an Apple update to Pages which is suppose to put the vertical ruler feature back in.

  • Firefox with one tab open takes up 72 Mb. I disabled all of my Add-ons. How do I solve this?

    I disabled all of my add-ons and my Firefox theme is the default that comes with the download.
    I cleared my Cache every time I start Firefox up, and I set my internet history to automatically become deleted once I close my Firefox.
    The problem is that despite all of my add-ons being disabled and my internet history becoming wiped clean once I close the program Firefox, ***With only one tab open*** takes up 48 Mb.
    One time I had only ten tabs open and it took up 600,000 k in my processes (585 Mb.)
    This is driving me crazy as in I have been trying to figure it out all day.
    I used the Google Chrome Web browser but every tab I open up it creates a new Chrome in the processes and each process takes up 48 Mb.
    What is going on?
    I used Firefox 3.6
    and then I tried Firefox 4
    both did the same thing. What can I do to fix this?'''bold text'''

    hello, please install the search reset addon - it will revert the most common customizations those adware programs do in firefox back to the default: https://addons.mozilla.org/firefox/addon/searchreset/

  • Disable all the previous dates in a calendar form

    hi guys,
    I am having a calendar form in which it displays all the previous,current,future dates and months.when i click on the particular button on the
    calendar it dispalys the date, month, and year.its working fine.But what i need is, i want to disable all the previous dates in the calendar till the current
    date.But not to disable the previous button.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class CalendarForm extends JFrame
    JButton[] btn = new JButton[49];
    int month = java.util.Calendar.getInstance().get(java.util.Calendar.MONTH);
    int year = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
    JLabel lbl = new JLabel("", JLabel.CENTER);
    JTextField tf1=new JTextField();
    public CalendarForm()
    buildGUI();
    setDates();
    public void buildGUI()
    setLocation(200,350);
    setDefaultCloseOperation(HIDE_ON_CLOSE);
    String[] header = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};
    JPanel midPanel = new JPanel(new GridLayout(7,7));
    midPanel.setPreferredSize(new Dimension(350,250));
    for(int x = 0; x < btn.length; x++)
    final int selection = x;
    btn[x] = new JButton();
    btn[x].setFocusPainted(false);
    if(x>6)
    btn[x].addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    displayDatePicked(btn[selection].getActionCommand());}});
    if(x < 7)
    {btn[x].setFont(new Font("Lucida", Font.PLAIN, 8)); btn[x].setText(header[x]);}
    midPanel.add(btn[x]);
    JPanel lowPanel = new JPanel(new GridLayout(1,3));
    JButton prevBtn = new JButton("<< Previous");
    prevBtn.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    month--;setDates();}});
    lowPanel.add(prevBtn);
    lowPanel.add(lbl);
    JButton nextBtn = new JButton("Next >>");
    nextBtn.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    month++;setDates();}});
    lowPanel.add(nextBtn);
    getContentPane().add(midPanel,BorderLayout.CENTER);
    getContentPane().add(lowPanel,BorderLayout.SOUTH);
    pack();
    public void setDates()
    for(int x = 7; x < btn.length; x++) btn[x].setText("");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year,month,1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    for(int x = 6+dayOfWeek,day = 1; day <= daysInMonth; x++,day++) btn[x].setText(""+day);
    lbl.setText(sdf.format(cal.getTime()));
    setTitle("Calendar - "+lbl.getText());
    public void displayDatePicked(String day)
    if(day.equals("") == false)
    // java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("EEEE d MMMM, yyyy");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year,month,Integer.parseInt(day));
    System.out.println(tf1.getText());
    getContentPane().add(tf1,BorderLayout.NORTH);
    // JOptionPane.showMessageDialog(this,"You picked "+sdf.format(cal.getTime()));
    tf1.setText(sdf.format(cal.getTime()));
    System.out.println("from date"+tf1.getText());
    this.setVisible(false);
    public String getFromDate()
    return tf1.getText();
    public static void main(String[] args)
         new CalendarForm().setVisible(true);
    the above  code is to diaplay the calendar form.plzzzzzzzzzzzzzzzz help me. thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hi michael,i disabled all the previous buttons in a calendar form.this is my code
    import java.awt.*;
    import java.awt.event.*;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.util.Date;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    class CalendarForm extends JFrame {
        JButton[] btn = new JButton[49];
        int month = java.util.Calendar.getInstance().get(java.util.Calendar.MONTH);
        int date = java.util.Calendar.getInstance().get(java.util.Calendar.DATE);
        int year = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
        JLabel lbl = new JLabel("", JLabel.CENTER);
        JTextField tf1 = new JTextField();
        public CalendarForm() {
            buildGUI();
            setDates();
        private String getMonthAndYearAsString() {
            java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
            return sdf.format(new Date(System.currentTimeMillis()));
        private Date getCurrentDate() {
            java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd MM yyyy");
            return new Date();
        public void buildGUI() {
            setLocation(450, 350);
            setDefaultCloseOperation(HIDE_ON_CLOSE);
            String[] header = {"Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"};
            JPanel midPanel = new JPanel(new GridLayout(7, 7));
            midPanel.setPreferredSize(new Dimension(350, 250));
            for (int x = 0; x < btn.length; x++) {
                final int selection = x;
                btn[x] = new JButton();
                btn[x].setFocusPainted(false);
                if (x > 6) {
                    btn[x].addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                            displayDatePicked(btn[selection].getActionCommand());
                if (x < 7) {
                    btn[x].setFont(new Font("Lucida", Font.PLAIN, 8));
                    btn[x].setText(header[x]);
                midPanel.add(btn[x]);
            JPanel lowPanel = new JPanel(new GridLayout(1, 3));
            JButton prevBtn = new JButton("<< Previous");
            prevBtn.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                    month--;
                    setDates();
                    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
                    java.util.Calendar cal = java.util.Calendar.getInstance();
                    cal.set(year, month, 1);
                    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
                    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
                    String currentMonth = getMonthAndYearAsString();
                    System.out.println("CURRENT MONTH AND YEAR " + currentMonth);
                    String selectedMonth = sdf.format(cal.getTime());
                    System.out.println("SELECTED MONTH AND YEAR " + selectedMonth);
                    Date currentDate = getCurrentDate();
                    Date selectedDate = new Date(cal.getTimeInMillis());
                    //Comparing currentDate nad selectedDate
                    int off = currentDate.compareTo(selectedDate);
                    int currentDay = date;
                    if (currentMonth.compareTo(selectedMonth) == 0) {
                        for (int x = 7 + dayOfWeek,  day = 1; day <= btn.length; x++, day++) {
                            btn[x].setEnabled(true);
                            if (day < currentDay) {
                                int k = x - 1;
                                for (int j = 7; j <= k; j++) {
                                    btn[j].setEnabled(false);
                    } else if (off == 1) {
                        for (int x = 6 + dayOfWeek,  day = 1; day < daysInMonth; x++, day++) {
                            for (int i = 6 + dayOfWeek; day < currentDay; i++) {
                                btn.setEnabled(false);
    } else if (off == -1) {
    for (int x = 7, day = 1; day < btn.length; x++, day++) {
    btn[x].setEnabled(true);
    lowPanel.add(prevBtn);
    lowPanel.add(lbl);
    JButton nextBtn = new JButton("Next >>");
    nextBtn.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    month++;
    setDates();
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, 1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    String currentMonth = getMonthAndYearAsString();
    System.out.println("CURRENT MONTH AND YEAR " + currentMonth);
    String selectedMonth = sdf.format(cal.getTime());
    System.out.println("SELECTED MONTH AND YEAR " + selectedMonth);
    Date currentDate = getCurrentDate();
    Date selectedDate = new Date(cal.getTimeInMillis());
    //Comparing currentDate and selectedDate
    int off = currentDate.compareTo(selectedDate);
    int currentDay = date;
    if (currentMonth.compareTo(selectedMonth) == 0) {
    for (int x = 7 + dayOfWeek, day = 1; day <= btn.length; x++, day++) {
    btn[x].setEnabled(true);
    if (day < currentDay) {
    int k = x - 1;
    for (int j = 7; j <= k; j++) {
    btn[j].setEnabled(false);
    if (off == -1) {
    for (int x = 7, day = 1; day < btn.length; x++, day++) {
    btn[x].setEnabled(true);
    } else if (off == 1) {
    for (int x = 6 + dayOfWeek, day = 1; day < daysInMonth; x++, day++) {
    for (int i = 6 + dayOfWeek; day < currentDay; i++) {
    btn[i].setEnabled(false);
    lowPanel.add(nextBtn);
    getContentPane().add(midPanel, BorderLayout.CENTER);
    getContentPane().add(lowPanel, BorderLayout.SOUTH);
    pack();
    public void setDates() {
    for (int x = 7; x < btn.length; x++) {
    btn[x].setText("");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, 1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    lbl.setText(sdf.format(cal.getTime()));
    setTitle("Calendar - " + lbl.getText());
    int currentDay = date;
    for (int x = 6 + dayOfWeek, day = 1; day <= daysInMonth; x++, day++) {
    btn[x].setText("" + day);
    if (day < currentDay) {
    for (int j = 7; j <= x; j++) {
    btn[j].setEnabled(false);
    public void displayDatePicked(String day) {
    if (day.equals("") == false) {
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, Integer.parseInt(day));
    System.out.println(month);
    System.out.println(tf1.getText());
    tf1.setText(sdf.format(cal.getTime()));
    System.out.println("from date" + tf1.getText());
    // VStudentAttendanceForm class ....
    if (VStudentAttendanceForm.jcalFlag == 1) {
    VStudentAttendanceForm.jtfFromDate.setText(tf1.getText());
    if (VStudentAttendanceForm.jcalFlag == 2) {
    VStudentAttendanceForm.jtfToDate.setText(tf1.getText());
    if (ManageStudents.cal == 1) {
    ManageStudents.jTextField22.setText(tf1.getText());
    ManageStudents.FromjTextField10.setText(tf1.getText());
    if (ManageStudents.cal == 2) {
    ManageStudents.jTextField23.setText(tf1.getText());
    ManageStudents.TojTextField11.setText(tf1.getText());
    if (vAuditTrail.cal == 1) {
    vAuditTrail.jTextField3.setText(tf1.getText());
    if (vAuditTrail.cal == 2) {
    vAuditTrail.jTextField4.setText(tf1.getText());
    if (Attendance.cal == 1) {
    Attendance.jTextField7.setText(tf1.getText());
    if (Attendance.cal == 2) {
    Attendance.jTextField8.setText(tf1.getText());
    this.setVisible(false);
    public String getFromDate() {
    return tf1.getText();
    public static void main(String[] args) {
    new CalendarForm().setVisible(true);

  • I have disabled all Kaspersky security, windows firewall and windows defender and Itunes still will not update my Ipod touch 4th gen to IOS 5, Helppppp!

    I can't get the IOS 5 to work for windows Vista.  I'm running kaspersky pure 2.0, windows firewall and windows defender.  I have turned them all off, I then attach my Ipod 4th gen and I get the "cannot connect to itunes update server".  I ran diagnostics in itunes and it tells me I dont have a internet connection.  I'm on the internet right now, and I DO have a internet connection, but it tells me Itunes says otherwise.  I'm able to send this message on the same pc with internet connection but keep running into this error.  I have now read discussiong boards through apple and disabled all my firewalls, still no luck.  I was able to update the lates version of itunes, and just waiting to get my ipod updated now, please help me.

    On the computer you should be able to go to the network properites. Go to the TCP part and unchec the line that says obtaind DNS automatically and check the one that says use the following. Add the 8.8.8.8 and Google other 8.8.4.4.
    For more info see:
    https://developers.google.com/speed/public-dns/

Maybe you are looking for

  • Search not finding certain matches

    We have some document control documents that are not showing up when searched for based on certain keywords but are for others.... The document title (as well as name) contain "Program Code1 Code2 Desc".  So for example it might say "11123# ABC U1234

  • APPLET tag issue

    Hello When practicing coding applets I am getting the following error message: Your browser is completely ignoring the <APPLET> tag. Do I need to change a setting in IE? Thanks Steve

  • Pdf documents won't open for me

    When in a web site like the VA Portal or local Board of Realtors, when I try to open .pdf files, all I get is a "x" boxed, in the upper left corner.  How can I get them to open?  I have Acrobat X, fully updated.

  • Epson 3800 printer profiles not showing up in Photoshop 3 and 5

    When I try to print to my Epson PRO 3800, asking Photoshop to handle colors, this printer profiles are not available. I have this printer for years and have always used PS CS3 to print (and handle colors). Now I have PS CS5 but continue to use 3 for

  • 2.2 update: Apple component cable not working

    Hi all, Since updating to 2.1 (now updated to 2.2) I have been unable to get video out in my iPhone 2G. I have Apple component AV cables which worked fine on 2.01 with both my TV and the projectors used at University (I use this in my lectures). Upgr