Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17042 > unrolled thread

Code To Pick A Date From A Calendar

Started by"clusardi2k" <clusardi2k@1:261/38.remove-yy0-this>
First post2012-08-03 18:54 +0000
Last post2012-08-03 18:54 +0000
Articles 20 on this page of 22 — 16 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Code To Pick A Date From A Calendar "clusardi2k" <clusardi2k@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
    Re: Code To Pick A Date From A Calendar "Eric Sosman" <eric.sosman@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
      Re: Code To Pick A Date From A Calendar "clusardi2k" <clusardi2k@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
        Re: Code To Pick A Date From A Calendar "Steve W. Jackson" <steve.w..jackson@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
    Re: Code To Pick A Date From A Calendar "Knute Johnson" <knute.johnson@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
      Re: Code To Pick A Date From A Calendar "clusardi2k" <clusardi2k@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
        Re: Code To Pick A Date From A Calendar "Knute Johnson" <knute.johnson@1:261/38.remove-5qr-this> - 2012-08-04 18:41 +0000
        Re: Code To Pick A Date From A Calendar "Arne Vajhøj" <arne.vajhøj@1:261/38.remove-5qr-this> - 2012-08-04 18:41 +0000
          Re: Code To Pick A Date From A Calendar "Gene Wirchenko" <gene.wirchenko@1:261/38.remove-sao-this> - 2012-08-06 18:08 +0000
            Re: Code To Pick A Date From A Calendar "Arne Vajhøj" <arne vajhøj@1:261/38.remove-p82-this> - 2012-08-08 06:20 +0000
              Re: Code To Pick A Date From A Calendar "Mike Winter" <mike.winter@1:261/38.remove-p82-this> - 2012-08-08 06:20 +0000
                Re: Code To Pick A Date From A Calendar "Lew" <lew@1:261/38.remove-p82-this> - 2012-08-08 06:20 +0000
                  Re: Code To Pick A Date From A Calendar "Mike Winter" <mike.winter@1:261/38.remove-qhs-this> - 2012-08-08 19:04 +0000
              Re: Code To Pick A Date From A Calendar "Gene Wirchenko" <gene.wirchenko@1:261/38.remove-p82-this> - 2012-08-08 06:20 +0000
                Re: Code To Pick A Date From A Calendar "Lew" <lew@1:261/38.remove-qhs-this> - 2012-08-08 19:04 +0000
                  Re: Code To Pick A Date From A Calendar "Gene Wirchenko" <gene.wirchenko@1:261/38.remove-qhs-this> - 2012-08-08 19:04 +0000
                    Re: Code To Pick A Date From A Calendar "Lew" <lew@1:261/38.remove-qhs-this> - 2012-08-08 19:04 +0000
                      Re: Code To Pick A Date From A Calendar "Gene Wirchenko" <gene.wirchenko@1:261/38.remove-qhs-this> - 2012-08-08 19:04 +0000
                        Re: Code To Pick A Date From A Calendar "Arne Vajhøj" <arne.vajhøj@1:261/38.remove-nlb-this> - 2012-08-13 18:36 +0000
                    Re: Code To Pick A Date From A Calendar "Arne Vajhøj" <arne.vajhøj@1:261/38.remove-nlb-this> - 2012-08-13 18:36 +0000
                Re: Code To Pick A Date From A Calendar "Arne Vajhøj" <arne.vajhøj@1:261/38.remove-nlb-this> - 2012-08-13 18:36 +0000
    Re: Code To Pick A Date From A Calendar "Roedy Green" <roedy.green@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000

Page 1 of 2  [1] 2  Next page →


#17042 — Code To Pick A Date From A Calendar

From"clusardi2k" <clusardi2k@1:261/38.remove-yy0-this>
Date2012-08-03 18:54 +0000
SubjectCode To Pick A Date From A Calendar
Message-ID<501C1560.56001.calajapr@time.synchro.net>
From: clusardi2k@aol.com

Does anyone have a link on the Internet to a project that shows how to build 
and display a calendar, and lets the user pick a date.

Thank you,

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#17043

From"Eric Sosman" <eric.sosman@1:261/38.remove-yy0-this>
Date2012-08-03 18:54 +0000
Message-ID<501C1560.56002.calajapr@time.synchro.net>
In reply to#17042
  To: clusardi2k
From: Eric Sosman <esosman@ieee-dot-org.invalid>

On 8/2/2012 2:30 PM, clusardi2k@aol.com wrote:
> Does anyone have a link on the Internet to a project that shows how to build
and display a calendar, and lets the user pick a date.

     http://migcalendar.com/

> Thank you,

     You're most welcome.

--
Eric Sosman
esosman@ieee-dot-org.invalid

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17057

From"clusardi2k" <clusardi2k@1:261/38.remove-yy0-this>
Date2012-08-03 18:54 +0000
Message-ID<501C1563.56016.calajapr@time.synchro.net>
In reply to#17043
  To: Eric Sosman
From: clusardi2k@aol.com

On Thursday, August 2, 2012 2:59:28 PM UTC-4, Eric Sosman wrote:
> On 8/2/2012 2:30 PM, clusardi2k@aol.com wrote: > Does anyone have a link on
the Internet to a project that shows how to build and display a calendar, and 
lets the user pick a date. http://migcalendar.com/ > Thank you, You're most 
welcome. -- Eric Sosman esosman@ieee-dot-org.invalid

That's too expensive for me! What about something free without any license?

Thank you,

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17059

From"Steve W. Jackson" <steve.w..jackson@1:261/38.remove-yy0-this>
Date2012-08-03 18:54 +0000
Message-ID<501C1563.56018.calajapr@time.synchro.net>
In reply to#17057
  To: clusardi2k
From: "Steve W. Jackson" <stevewjackson@knology.net>

In article <9d328793-264c-41ed-8ca1-74dd9b93504c@googlegroups.com>,
 clusardi2k@aol.com wrote:

> On Thursday, August 2, 2012 2:59:28 PM UTC-4, Eric Sosman wrote:
> > On 8/2/2012 2:30 PM, clusardi2k@aol.com wrote: > Does anyone have a link on
> > the Internet to a project that shows how to build and display a calendar,
> > and lets the user pick a date. http://migcalendar.com/ > Thank you, You're
> > most welcome. -- Eric Sosman esosman@ieee-dot-org.invalid
>
> That's too expensive for me! What about something free without any license?
>
> Thank you,

You might try JCalendar, at <http://www.toedter.com/en/jcalendar/>.  But to be 
clear, it isn't "without any license" but simply licensed in a way that allows 
you to use it at no cost.
--
Steve W. Jackson
Montgomery, Alabama

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17081

From"Knute Johnson" <knute.johnson@1:261/38.remove-yy0-this>
Date2012-08-03 18:54 +0000
Message-ID<501C1567.56040.calajapr@time.synchro.net>
In reply to#17042
  To: clusardi2k
From: Knute Johnson <nospam@knutejohnson.com>

On 8/2/2012 11:30 AM, clusardi2k@aol.com wrote:
> Does anyone have a link on the Internet to a project that shows how
> to build and display a calendar, and lets the user pick a date.
>
> Thank you,
>

Here is one I started some years ago.  It is not complete but it would give you 
an idea how I was thinking of doing one at the time.  I don't really know the 
state of the code as I haven't played with it in some time.

//
//
//
//  JDateChooser
//
//  Written by: Knute Johnson
//
//  Date        Version     Modification
//  ---------   -------
---------------------------------------------------
//  04 jun 05   01.00       incept
//
//
//  Constructor Summary
//      JDateChooser()
//          Creates a new JDateChooser with today's date displayed
//      JDateChooser(GregorianCalendar gc)
//          Creates a new JDateChooser with the specified date displayed
//
//  Method Summary
//      GregorianCalendar getCalendar()
//          Gets the selected date
//      void setCalendar(GregorianCalendar gc)
//          Sets and display's the specified date
//      static GregorianCalendar showDialog(Component comp)
//          Displays a JDateChooser in a modal JDialog and returns the
//           selected date or null if dismissed.
//      static GregorianCalendar showDialog(Component
comp,GregorianCalendar gc)
//          Displays a JDateChooser in a modal JDialog with the
specified date
//           and returns the selected date or null if dismissed.
//
//
//

package com.knutejohnson.components;

import java.awt.*;
import java.awt.event.*;
import java.text.*;
import java.util.*;
import javax.swing.*;

public class JDateChooser extends JComponent {
     /*
     private static final String[] dayStr =
      {"SUN","MON","TUE","WED","THU","FRI","SAT"};
      */
     private final String[] dayStr;

     private final String[] monthStr;
         /*
     private static final String[] monthStr =
      {"JANUARY ","FEBRUARY ","MARCH ","APRIL ","MAY ","JUNE ","JULY ",
       "AUGUST ","SEPTEMBER ","OCTOBER ","NOVEMBER ","DECEMBER "};
       */

     private GregorianCalendar gc;
     private int thisYear,thisMonth,today;
     private int selectedDay;

     private JButton previousButton,nextButton;
     private JLabel[] dayOfWeekLabels = new JLabel[7];
     private JLabel[] dayOfMonthLabels = new JLabel[42];
     private JLabel monthYearLabel;

     private static JDialog dialog;
     private static GregorianCalendar retcod;

     private final Locale locale;

     public JDateChooser() {
         this(new GregorianCalendar(),Locale.getDefault());
     }

     public JDateChooser(GregorianCalendar calendar, Locale locale) {
         gc = calendar;
         thisYear = gc.get(Calendar.YEAR);
         thisMonth = gc.get(Calendar.MONTH);
         today = selectedDay = gc.get(Calendar.DAY_OF_MONTH);

         this.locale = locale;
         DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale);
         monthStr = dfs.getMonths();

         setLayout(new GridBagLayout());

         GridBagConstraints c = new GridBagConstraints();
         c.gridx = c.gridy = 0;  c.insets = new Insets(2,2,2,2);
         c.weightx = 1.0;

         c.anchor = GridBagConstraints.WEST;
         previousButton = new JButton("<");
         previousButton.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
                 gc.add(Calendar.MONTH,-1);
                 int mon = gc.get(Calendar.MONTH);
                 if (selectedDay >
gc.getActualMaximum(Calendar.DAY_OF_MONTH))
                     selectedDay = 1;
                 drawCalendar();
             }
         });
         add(previousButton,c);

         ++c.gridx;  c.anchor = GridBagConstraints.CENTER;
         monthYearLabel = new JLabel("           ",JLabel.CENTER);
         add(monthYearLabel,c);

         ++c.gridx;  c.anchor = GridBagConstraints.EAST;
         nextButton = new JButton(">");
         nextButton.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
                 gc.add(Calendar.MONTH,1);
                 int mon = gc.get(Calendar.MONTH);
                 if (selectedDay >
gc.getActualMaximum(Calendar.DAY_OF_MONTH))
                     selectedDay = 1;
                 drawCalendar();
             }
         });
         add(nextButton,c);

         MouseListener ml = new MouseAdapter() {
             public void mouseClicked(MouseEvent me) {
                 JLabel dayLabel = (JLabel)me.getSource();
                 String str = dayLabel.getText();
                 try {
                     int num = Integer.parseInt(str);
                     gc.set(Calendar.DAY_OF_MONTH,num);
                     selectedDay = num;
                     drawCalendar();
                 } catch (NumberFormatException nfe) {
                 }
             }
         };

         c.gridx = 0;  ++c.gridy;  c.gridwidth = 3;
         c.anchor = GridBagConstraints.CENTER;
         JPanel panel = new JPanel(new GridLayout(7,7,1,1));

         /*
         for (int i=0; i<dayStr.length; i++) {
             dayOfWeekLabels[i] = new JLabel(dayStr[i],JLabel.CENTER);
             panel.add(dayOfWeekLabels[i]);
         }
         */

         dayStr = dfs.getShortWeekdays();
         int firstDay = gc.getFirstDayOfWeek();
         for (int i=0; i<7; i++) {
             int x = firstDay + i;
             if (i == 6)
                 x = firstDay == Calendar.MONDAY ? Calendar.SUNDAY :
                  Calendar.SATURDAY;
             dayOfWeekLabels[i] =
              new JLabel(dayStr[x].toUpperCase(),JLabel.CENTER);
             panel.add(dayOfWeekLabels[i]);
         }

         for (int i=0; i<dayOfMonthLabels.length; i++) {
             dayOfMonthLabels[i] = new JLabel("  ",JLabel.CENTER);
             dayOfMonthLabels[i].setOpaque(true);
             dayOfMonthLabels[i].addMouseListener(ml);
             panel.add(dayOfMonthLabels[i]);
         }

         drawCalendar();

         add(panel,c);
     }

     private void drawCalendar() {
         int month = gc.get(Calendar.MONTH);
         int year = gc.get(Calendar.YEAR);

         monthYearLabel.setText(monthStr[month].toUpperCase() + " " +
          Integer.toString(year));

         gc.set(Calendar.DAY_OF_MONTH,1);
         int firstDayOfMonth = gc.get(Calendar.DAY_OF_WEEK);
         if (gc.getFirstDayOfWeek() == Calendar.MONDAY)
             --firstDayOfMonth;
         gc.set(Calendar.DAY_OF_MONTH,selectedDay);

         int day = 1;
         for (int i=0; i<42; i++) {
             if (i >= (firstDayOfMonth - 1) &&

i<(gc.getActualMaximum(Calendar.DAY_OF_MONTH)+firstDayOfMonth-1)) {
                 dayOfMonthLabels[i].setText(Integer.toString(day));
                 if (day == today && month == thisMonth && year == thisYear)
                     dayOfMonthLabels[i].setForeground(Color.RED);
                 else
                     dayOfMonthLabels[i].setForeground(Color.BLACK);
                 if (day == selectedDay)
                     dayOfMonthLabels[i].setBackground(new Color(0xa0a0a0));
                 else
                     dayOfMonthLabels[i].setBackground(Color.WHITE);
                 ++day;
             } else {
                 dayOfMonthLabels[i].setText("  ");
                 dayOfMonthLabels[i].setBackground(new Color(0xe0e0e0));
             }
         }
     }

     public GregorianCalendar getCalendar() {
         return new GregorianCalendar(gc.get(Calendar.YEAR),
          gc.get(Calendar.MONTH),selectedDay);
     }

     public void setCalendar(GregorianCalendar calendar) {
         gc = calendar;
         drawCalendar();
     }

     public static GregorianCalendar showDialog(Component comp) {
         return showDialog(comp, new
GregorianCalendar(),Locale.getDefault());
     }

     public static GregorianCalendar showDialog(Component comp,
      GregorianCalendar calendar,Locale locale) {
         GridBagConstraints c = new GridBagConstraints();
         c.gridx = c.gridy = 0;  c.insets = new Insets(2,2,2,2);

         c.gridwidth = 2;
         JFrame f = new JFrame();
         dialog = new JDialog(f,"Select Date",true);
         dialog.setLayout(new GridBagLayout());
         dialog.addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent we) {
                 retcod = null;
             }
         });
         final JDateChooser dc = new JDateChooser(calendar,locale);
         dialog.add(dc,c);

         ++c.gridy;  c.gridwidth = 1;  c.anchor = GridBagConstraints.WEST;
         JButton okButton = new JButton("    OK    ");
         okButton.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
                 retcod = dc.getCalendar();
                 dialog.dispose();
             }
         });
         dialog.add(okButton,c);

         ++c.gridx;  c.anchor = GridBagConstraints.EAST;
         JButton cancelButton = new JButton("Cancel");
         cancelButton.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent ae) {
                 retcod = null;
                 dialog.dispose();
             }
         });
         dialog.add(cancelButton,c);

         dialog.pack();
         dialog.setLocationRelativeTo(comp);
         dialog.setVisible(true);

         return retcod;
     }

     public void setFont(Font font) {
         previousButton.setFont(font);
         nextButton.setFont(font);
         for (int i=0; i<dayOfWeekLabels.length; i++)
             dayOfWeekLabels[i].setFont(font);
         for (int i=0; i<dayOfMonthLabels.length; i++)
             dayOfMonthLabels[i].setFont(font);
         monthYearLabel.setFont(font);
     }

     public static void main(String[] args) {
         Runnable r = new Runnable() {
             public void run() {
                 final JDateChooser dc = new JDateChooser();
                 final JFrame f = new JFrame();
                 f.setLayout(new FlowLayout());
                 f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                 f.add(dc);
                 final JButton b = new JButton("DateChooser");
                 b.addActionListener(new ActionListener() {
                     public void actionPerformed(ActionEvent ae) {
                         System.out.println(showDialog(b,new
GregorianCalendar(Locale.FRANCE),Locale.FRANCE));
                     }
                 });
                 f.add(b);
                 f.pack();
                 f.setVisible(true);
             }
         };
         EventQueue.invokeLater(r);
     }
}




--

Knute Johnson

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17092

From"clusardi2k" <clusardi2k@1:261/38.remove-yy0-this>
Date2012-08-03 18:54 +0000
Message-ID<501C156A.56051.calajapr@time.synchro.net>
In reply to#17081
  To: Knute Johnson
From: clusardi2k@aol.com

> On Thursday, August 2, 2012 11:09:13 PM UTC-4, Knute Johnson wrote:

> Here is one I started some years ago.  It is not complete but it would
> give you an idea how I was thinking of doing one at the time.  I don't
> really know the state of the code as I haven't played with it in some time.

Does the code you posted have a copyright.

Thanks,

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17155

From"Knute Johnson" <knute.johnson@1:261/38.remove-5qr-this>
Date2012-08-04 18:41 +0000
Message-ID<501D6352.56115.calajapr@time.synchro.net>
In reply to#17092
  To: clusardi2k
From: Knute Johnson <nospam@knutejohnson.com>

On 8/3/2012 5:58 AM, clusardi2k@aol.com wrote:
>> On Thursday, August 2, 2012 11:09:13 PM UTC-4, Knute Johnson wrote:
>
>> Here is one I started some years ago.  It is not complete but it would
>> give you an idea how I was thinking of doing one at the time.  I don't
>> really know the state of the code as I haven't played with it in some time.
>
> Does the code you posted have a copyright.
>
> Thanks,
>

Feel free to steal this code.  If you can make any money with it, more power to 
you.

--

Knute Johnson

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17158

From"Arne Vajhøj" <arne.vajhøj@1:261/38.remove-5qr-this>
Date2012-08-04 18:41 +0000
Message-ID<501D6353.56118.calajapr@time.synchro.net>
In reply to#17092
  To: clusardi2k
From: Arne Vajhoj <arne@vajhoej.dk>

On 8/3/2012 8:58 AM, clusardi2k@aol.com wrote:
> Does the code you posted have a copyright.

It is expected that code posted to usenet is free for everybody to use for 
whatever. Otherwise there were not really any point in posting it.

A lawyer would probably fell down from the chair hearing about such 
"expectations", but ...

Arne

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17249

From"Gene Wirchenko" <gene.wirchenko@1:261/38.remove-sao-this>
Date2012-08-06 18:08 +0000
Message-ID<50200779.56206.calajapr@time.synchro.net>
In reply to#17158
  To: Arne Vajhøj
From: Gene Wirchenko <genew@ocis.net>

On Fri, 03 Aug 2012 20:44:26 -0400, Arne Vajhoj <arne@vajhoej.dk> wrote:

>On 8/3/2012 8:58 AM, clusardi2k@aol.com wrote:
>> Does the code you posted have a copyright.
>
>It is expected that code posted to usenet is free for
>everybody to use for whatever. Otherwise there were
>not really any point in posting it.

     Nasty scenario: Get someone to use copyrighted code, and then sue
them for it.  Using a computing technique (modularisation), the poster and the 
suer may be different individuals.

     Copyrighted code posted here is still copyrighted.

>A lawyer would probably fell down from the chair
>hearing about such "expectations", but ...

     Well, yes.

     OTOH, if the code is short, I think that that would weaken any
argument.  Most anything posted here (attachments excepted) would be short.

Sincerely,

Gene Wirchenko

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17330

From"Arne Vajhøj" <arne vajhøj@1:261/38.remove-p82-this>
Date2012-08-08 06:20 +0000
Message-ID<5021F863.56284.calajapr@time.synchro.net>
In reply to#17249
  To: Gene Wirchenko
From: =?windows-1252?Q?Arne_Vajh=F8j?= <arne@vajhoej.dk>

On 8/5/2012 9:39 PM, Gene Wirchenko wrote:
> On Fri, 03 Aug 2012 20:44:26 -0400, Arne Vajhoj <arne@vajhoej.dk>
> wrote:
>> On 8/3/2012 8:58 AM, clusardi2k@aol.com wrote:
>>> Does the code you posted have a copyright.
>>
>> It is expected that code posted to usenet is free for
>> everybody to use for whatever. Otherwise there were
>> not really any point in posting it.
>
>       Nasty scenario: Get someone to use copyrighted code, and then sue
> them for it.  Using a computing technique (modularisation), the poster
> and the suer may be different individuals.

Strange things has happened before.

>       Copyrighted code posted here is still copyrighted.

Obviously code posted here is copyrighted.

The question is whether posting to usenet implicit provides a "permissible 
license".

Web fora where users has to register can require an explicit accept.

SO:

You agree that all Subscriber Content that You contribute to the Network is 
perpetually and irrevocably licensed to Stack Exchange under the Creative 
Commons Attribution Share Alike license. You grant Stack Exchange the perpetual 
and irrevocable right and license to use, copy, cache, publish, display, 
distribute, modify, create derivative works and store such Subscriber Content 
and to allow others to do so in any medium now known or hereinafter developed 
(rContent License%) in order to provide the Services, even if such Subscriber 
Content has been contributed and subsequently removed by You.

E-E:

By registering with Experts Exchange and posting Your Content on the Site, you 
hereby: (i) grant Experts Exchange a non-exclusive, perpetual, irrevocable, 
unrestricted, transferable, fully sub-licensable, worldwide, royalty-free 
license to use, distribute, display, reproduce, perform, modify, adapt, 
publish, translate and create derivative works from Your Content in any form, 
media or technology, whether now-known or hereafter developed;

I would argue that usenet posts via tradition, logic and similarity comes with 
an implicit license for free usage by anyone.

Arne

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17331

From"Mike Winter" <mike.winter@1:261/38.remove-p82-this>
Date2012-08-08 06:20 +0000
Message-ID<5021F863.56285.calajapr@time.synchro.net>
In reply to#17330
  To: =?windows-1252?Q?Arne_Vajh=F8j?=
From: Mike Winter <usenet@michael-winter.me.invalid>

On 07/08/2012 00:30, Arne Vajhoj wrote:

> Obviously code posted here is copyrighted.
>
> The question is whether posting to usenet implicit
> provides a "permissible license".
>
> Web fora where users has to register can require an
> explicit accept.
>
> SO:
>
> You agree that all Subscriber Content that You contribute to the Network
> is perpetually and irrevocably licensed to Stack Exchange under the
> Creative Commons Attribution Share Alike license. You grant Stack
> Exchange the perpetual and irrevocable right and license to use, copy,
> cache, publish, display, distribute, modify, create derivative works and
> store such Subscriber Content and to allow others to do so in any medium
> now known or hereinafter developed (rContent License%) in order to
> provide the Services, even if such Subscriber Content has been
> contributed and subsequently removed by You.
>
> E-E:
>
> By registering with Experts Exchange and posting Your Content on the
> Site, you hereby: (i) grant Experts Exchange a non-exclusive, perpetual,
> irrevocable, unrestricted, transferable, fully sub-licensable,
> worldwide, royalty-free license to use, distribute, display, reproduce,
> perform, modify, adapt, publish, translate and create derivative works
> from Your Content in any form, media or technology, whether now-known or
> hereafter developed;
>
> I would argue that usenet posts via tradition, logic and
> similarity comes with an implicit license for free
> usage by anyone.

If I'm not mistaken, those sorts of licenses are merely to permit sites that 
retain user submissions to store that content and resend it others in some form 
(usually forums) without infringing on copyright. It doesn't automatically 
allow other users to use that content as it's the site that is granted the 
license--the work isn't placed into the Public Domain.

Of course, these licenses do mean that such websites could, in principle, take 
someones hard work and use it themselves even though the original creator 
retains ownership.

I would argue that the "to allow others" phrase in the Stack Exchange terms is 
intended to refer only to third-parties that work with them to provide or 
develop its services rather than others generally, but it's ill-defined here 
and could extend to anyone SE deems applicable.

Kind regards,
Mike


--
Michael Winter -- Not a lawyer!
Replace ".invalid" with ".uk" to reply by e-mail.

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17346

From"Lew" <lew@1:261/38.remove-p82-this>
Date2012-08-08 06:20 +0000
Message-ID<5021F867.56300.calajapr@time.synchro.net>
In reply to#17331
  To: Mike Winter
From: Lew <lewbloch@gmail.com>

On Monday, August 6, 2012 5:07:18 PM UTC-7, Mike Winter wrote:
> On 07/08/2012 00:30, Arne Vajhoj wrote:
>> Obviously code posted here is copyrighted.
>>
>> The question is whether posting to usenet implicit
>> provides a "permissible license".
>>
>> Web fora where users has to register can require an
>> explicit accept.
>
>> SO:
>>
>> You agree that all Subscriber Content that You contribute to the Network
> > is perpetually and irrevocably licensed to Stack Exchange under the
> > Creative Commons Attribution Share Alike license. You grant Stack
> > Exchange the perpetual and irrevocable right and license to use, copy,
> > cache, publish, display, distribute, modify, create derivative works and
> > store such Subscriber Content and to allow others to do so in any medium
> > now known or hereinafter developed (rContent License%) in order to
> > provide the Services, even if such Subscriber Content has been
> > contributed and subsequently removed by You.
> ...

>> I would argue that usenet posts via tradition, logic and
>> similarity comes with an implicit license for free
>> usage by anyone.

>
> If I'm not mistaken, those sorts of licenses are merely to permit sites
> that retain user submissions to store that content and resend it others
> in some form (usually forums) without infringing on copyright. It
> doesn't automatically allow other users to use that content as it's the
> site that is granted the license--the work isn't placed into the Public
> Domain.
>
> Of course, these licenses do mean that such websites could, in
> principle, take someones hard work and use it themselves even though the
> original creator retains ownership.
>

The Creative Commons License explicitly allows that, yes.

> I would argue that the "to allow others" phrase in the Stack Exchange
> terms is intended to refer only to third-parties that work with them to
> provide or develop its services rather than others generally, but it's
> ill-defined [sic] here and could extend to anyone SE deems applicable.

You'd be mistaken.

Stack Exchange explicitly specifies the Creative Commons Attribution Share 
Alike license.

That's not ill defined and extends to everyone irrespective of whom SE deems 
applicable. It explicitly allows everyone access, not just SE. If they hadn't 
intended that, they wouldn't have specified a license that explicitly exists 
for the very purpose of extending universal access.

--
Lew

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17380

From"Mike Winter" <mike.winter@1:261/38.remove-qhs-this>
Date2012-08-08 19:04 +0000
Message-ID<5022AB7E.56330.calajapr@time.synchro.net>
In reply to#17346
  To: Lew
From: Mike Winter <usenet@michael-winter.me.invalid>

On 07/08/2012 19:39, Lew wrote:
> On Monday, August 6, 2012 5:07:18 PM UTC-7, Mike Winter wrote:
>> I would argue that the "to allow others" phrase in the Stack Exchange
>> terms is intended to refer only to third-parties that work with them to
>> provide or develop its services rather than others generally, but it's
>> ill-defined [sic] here and could extend to anyone SE deems applicable.
>
> You'd be mistaken.
>
> Stack Exchange explicitly specifies the Creative Commons Attribution
> Share Alike license.

Unfortunately, as it was late I hadn't taken the time to read that license so 
you are of course correct with regard to its implications.

--
Mike Winter
Replace ".invalid" with ".uk" to reply by e-mail.

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17340

From"Gene Wirchenko" <gene.wirchenko@1:261/38.remove-p82-this>
Date2012-08-08 06:20 +0000
Message-ID<5021F864.56294.calajapr@time.synchro.net>
In reply to#17330
  To: =?windows-1252?Q?Arne_Vajh=F8j?=
From: Gene Wirchenko <genew@ocis.net>

On Mon, 06 Aug 2012 19:30:54 -0400, Arne Vajhoj <arne@vajhoej.dk> wrote:

>On 8/5/2012 9:39 PM, Gene Wirchenko wrote:

[snip]

>>       Copyrighted code posted here is still copyrighted.
>
>Obviously code posted here is copyrighted.
>
>The question is whether posting to usenet implicit
>provides a "permissible license".
>
>Web fora where users has to register can require an
>explicit accept.
>
>SO:
>
>You agree that all Subscriber Content that You contribute to the Network
>is perpetually and irrevocably licensed to Stack Exchange under the
>Creative Commons Attribution Share Alike license. You grant Stack

     If I post code that I do not have the copyright for, I can not
give that right.  I can agree with it all I want, but that is not the same 
thing.

[snip]

Sincerely,

Gene Wirchenko

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17366

From"Lew" <lew@1:261/38.remove-qhs-this>
Date2012-08-08 19:04 +0000
Message-ID<5022AB7A.56316.calajapr@time.synchro.net>
In reply to#17340
  To: Gene Wirchenko
From: Lew <lewbloch@gmail.com>

Gene Wirchenko wrote:
>      If I post code that I do not have the copyright for, I can not
> give that right.  I can agree with it all I want, but that is not the
> same thing.

That's not the point. The point is that if you contribute code under that 
agreement, and you do not hold copyright, *you* are liable for the 
infringement, not the site.

--
Lew

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17374

From"Gene Wirchenko" <gene.wirchenko@1:261/38.remove-qhs-this>
Date2012-08-08 19:04 +0000
Message-ID<5022AB7C.56324.calajapr@time.synchro.net>
In reply to#17366
  To: Lew
From: Gene Wirchenko <genew@ocis.net>

On Tue, 7 Aug 2012 11:41:06 -0700 (PDT), Lew <lewbloch@gmail.com> wrote:

>Gene Wirchenko wrote:
>>      If I post code that I do not have the copyright for, I can not
>> give that right.  I can agree with it all I want, but that is not the
>> same thing.
>
>That's not the point. The point is that if you contribute code under
>that agreement, and you do not hold copyright, *you* are liable
>for the infringement, not the site.

     So?  The site is not going to get the right.

     This could lead to trouble if a programmer posts part of an
employer's app, say a useful function.

Sincerely,

Gene Wirchenko

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17375

From"Lew" <lew@1:261/38.remove-qhs-this>
Date2012-08-08 19:04 +0000
Message-ID<5022AB7C.56326.calajapr@time.synchro.net>
In reply to#17374
  To: Gene Wirchenko
From: Lew <lewbloch@gmail.com>

Gene Wirchenko wrote:
> Lew wrote:
>>Gene Wirchenko wrote:
>>>      If I post code that I do not have the copyright for, I can not
>>> give that right.  I can agree with it all I want, but that is not the
>>> same thing.
>
>>That's not the point. The point is that if you contribute code under
>>that agreement, and you do not hold copyright, *you* are liable
>>for the infringement, not the site.
>
>      So?  The site is not going to get the right.
>
>      This could lead to trouble if a programmer posts part of an
> employer's app, say a useful function.

Trouble for whom?

That's the point.

The site's rules mean they aren't the ones who get in trouble.

It isn't about whether the site gets the right, it's about whether they get the 
liability.

That explains why they make that rule. What more are you looking for?

--
Lew

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17383

From"Gene Wirchenko" <gene.wirchenko@1:261/38.remove-qhs-this>
Date2012-08-08 19:04 +0000
Message-ID<5022AB7E.56333.calajapr@time.synchro.net>
In reply to#17375
  To: Lew
From: Gene Wirchenko <genew@ocis.net>

On Tue, 7 Aug 2012 14:51:52 -0700 (PDT), Lew <lewbloch@gmail.com> wrote:

>Gene Wirchenko wrote:
>> Lew wrote:
>>>Gene Wirchenko wrote:
>>>>      If I post code that I do not have the copyright for, I can not
>>>> give that right.  I can agree with it all I want, but that is not the
>>>> same thing.
>>
>>>That's not the point. The point is that if you contribute code under
>>>that agreement, and you do not hold copyright, *you* are liable
>>>for the infringement, not the site.
>>
>>      So?  The site is not going to get the right.
>>
>>      This could lead to trouble if a programmer posts part of an
>> employer's app, say a useful function.
>
>Trouble for whom?
>
>That's the point.
>
>The site's rules mean they aren't the ones who get in trouble.

     They could be the recipient of a cease-and-desist order.

>It isn't about whether the site gets the right, it's about whether they
>get the liability.
>
>That explains why they make that rule. What more are you looking for?

Sincerely,

Gene Wirchenko

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17820

From"Arne Vajhøj" <arne.vajhøj@1:261/38.remove-nlb-this>
Date2012-08-13 18:36 +0000
Message-ID<502943B5.56768.calajapr@time.synchro.net>
In reply to#17383
  To: Gene Wirchenko
From: Arne Vajhoj <arne@vajhoej.dk>

On 8/7/2012 10:53 PM, Gene Wirchenko wrote:
> On Tue, 7 Aug 2012 14:51:52 -0700 (PDT), Lew <lewbloch@gmail.com>
> wrote:
>
>> Gene Wirchenko wrote:
>>> Lew wrote:
>>>> Gene Wirchenko wrote:
>>>>>       If I post code that I do not have the copyright for, I can not
>>>>> give that right.  I can agree with it all I want, but that is not the
>>>>> same thing.
>>>
>>>> That's not the point. The point is that if you contribute code under
>>>> that agreement, and you do not hold copyright, *you* are liable
>>>> for the infringement, not the site.
>>>
>>>       So?  The site is not going to get the right.
>>>
>>>       This could lead to trouble if a programmer posts part of an
>>> employer's app, say a useful function.
>>
>> Trouble for whom?
>>
>> That's the point.
>>
>> The site's rules mean they aren't the ones who get in trouble.
>
>       They could be the recipient of a cease-and-desist order.

The general practice in most countries for user provided content is that:
- if the site removes illegal content when being notified about
   the problem then they are fine
- if the site does not do that then the courts go after the site

Arne

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#17819

From"Arne Vajhøj" <arne.vajhøj@1:261/38.remove-nlb-this>
Date2012-08-13 18:36 +0000
Message-ID<502943B5.56767.calajapr@time.synchro.net>
In reply to#17374
  To: Gene Wirchenko
From: Arne Vajhoj <arne@vajhoej.dk>

On 8/7/2012 5:17 PM, Gene Wirchenko wrote:
> On Tue, 7 Aug 2012 11:41:06 -0700 (PDT), Lew <lewbloch@gmail.com>
> wrote:
>
>> Gene Wirchenko wrote:
>>>       If I post code that I do not have the copyright for, I can not
>>> give that right.  I can agree with it all I want, but that is not the
>>> same thing.
>>
>> That's not the point. The point is that if you contribute code under
>> that agreement, and you do not hold copyright, *you* are liable
>> for the infringement, not the site.
>
>       So?  The site is not going to get the right.
>
>       This could lead to trouble if a programmer posts part of an
> employer's app, say a useful function.

Sure.

And if you buy a car from someone that does not own that car, then you can also 
get in problems.

Arne

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.java.programmer


csiph-web