Re: New update.1 build 669

2007-12-31 Thread Bernardo Innocenti
Dennis Gilmore wrote:
 On Saturday 29 December 2007, Bernardo Innocenti wrote:
 What happened?
 
 We applied F-7 updates as per http://dev.laptop.org/ticket/5650

That's good, but aren't we doing the same in joyride too?

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Tools for creating svg icons

2007-12-31 Thread Steve Lewis
I am working in 'sugarizing' some activities, Avtivities take an svg
icon. I tried creating a 50 x 50 icon with Inkscape but it has color
(samples do not) and does not blink properly - any suggestions for tools
or settings

-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)
Skype lordjoe_com
AIM LordJoe2000
ICQ 127138272
email 
[EMAIL PROTECTED] (permanent)

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Terminating activities

2007-12-31 Thread Steve Lewis
I have created a Sugar activity to launch a process (a java app). I
after I spawn the task I want to cleanly terminate the activity. Also is
there any way tp set the icon for an already running activity?

-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)
Skype lordjoe_com
AIM LordJoe2000
ICQ 127138272
email 
[EMAIL PROTECTED] (permanent)

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: TurtleArt Mandelbrot

2007-12-31 Thread Bernardo Innocenti
Samuel Klein wrote:
 Ben, that's neat.  Speaking of fractals: Bernie has been working on
 sugarizing Gnu Xaos, and we were just tweaking an icon.  It has a
 lovely tutorial about what fractals are that could serve as a model
 for other tutorials.

The port somewhat preliminary, but I still think it's pretty
cool:

   http://wiki.laptop.org/go/XaoS

The XaoS bundle is just 441K including dozens of examples and
tutorials in several languages :-)

If I have time, I'd like to port more old skool apps to the
laptop.  They are blazingly fast on our hardware and they
rarely drag in external dependencies.

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Tools for creating svg icons

2007-12-31 Thread Bernardo Innocenti
Steve Lewis wrote:
 I am working in 'sugarizing' some activities, Avtivities take an svg
 icon. I tried creating a 50 x 50 icon with Inkscape but it has color
 (samples do not) and does not blink properly - any suggestions for tools
 or settings

After you save the svg, you need to set two entities and
use them as stroke and fill values, as explained here:

  http://wiki.laptop.org/go/Sugar_Icon_Format

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: OLPC News 2007-12-30

2007-12-31 Thread David Woodhouse
On Sun, 2007-12-30 at 12:05 -1000, Mitch Bradley wrote:
 I meant the OLPC kernel.
 
 I presume that OLPC changes will be offered to mainline in some batch 
 fashion, rather than piecemeal. This particular one is of no upstream 
 value in isolation, as it is utterly dependent on OLPC-specific EC
 commands.

As a general rule, that is totally incorrect. Changes should be pushed
towards upstream _before_ they're ever committed to our tree, and any
change which has been made only in the OLPC tree and not pushed upstream
should be considered volatile and likely to disappear... like the
private wireless ioctls I removed last week because they weren't
upstream for example¹.

However, you're right about this patch not going upstream -- I thought
I'd already told you that the naïve patch to cs5536_warm_reset() as
shown in ticket #4397 was not acceptable. It doesn't live in that
function, and even if it did, it shouldn't be happening unconditionally
based on CONFIG_OLPC.

-- 
dwmw2

¹ I have actually put them back now, temporarily. But they will be going
away again. Nothing is stable until it's upstream.


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


iwpriv (Was: OLPC News 2007-12-30)

2007-12-31 Thread Bernardo Innocenti
David Woodhouse wrote:

 As a general rule, that is totally incorrect. Changes should be pushed
 towards upstream _before_ they're ever committed to our tree, and any
 change which has been made only in the OLPC tree and not pushed upstream
 should be considered volatile and likely to disappear... like the
 private wireless ioctls I removed last week because they weren't
 upstream for example¹.

 ¹ I have actually put them back now, temporarily. But they will be going
 away again. Nothing is stable until it's upstream.

btw, we still have code in /etc/init.d/olpc-configure that
tries to use one of those private ioctls to remap the leds,
and outputs errors if they're missing.  Is this still needed?


 However, you're right about this patch not going upstream -- I thought
 I'd already told you that the naïve patch to cs5536_warm_reset() as
 shown in ticket #4397 was not acceptable. It doesn't live in that
 function, and even if it did, it shouldn't be happening unconditionally
 based on CONFIG_OLPC.

An interesting goal would be cleaning up CONFIG_OLPC so that
it could be enabled in stock kernels of standard Linux distros.

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Tools for creating svg icons

2007-12-31 Thread Justin Gallardo
On Dec 31, 2007 7:32 AM, Steve Lewis [EMAIL PROTECTED] wrote:
 I am working in 'sugarizing' some activities, Avtivities take an svg
 icon. I tried creating a 50 x 50 icon with Inkscape but it has color
 (samples do not) and does not blink properly - any suggestions for tools
 or settings

Don't forget to refer to the HIG[0] for the standards on icons.

Cheers!

[0] 
http://wiki.laptop.org/go/OLPC_Human_Interface_Guidelines/The_Sugar_Interface/Icons
-- 
Justin Gallardo
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Tricks to getting Java Frames working on the OLPC

2007-12-31 Thread Steve Lewis
The following code allows Java JFrames to work properly on the OLPC -
it assumes - only one active frame and that the frame is full screen.
You can add it to common applications = the active sections work only on
the OLPC
The trick is to use showFrame and hideFrame instead of setVisible -
these cause the frame to become the graphic environments full screen
window -
With this I have menus forking. I have patched JEdit to use this and
have that application fully functional
on the OLPC - I also have a first cut at a Sugar jedit launcher -
Write me for code - I will look for a good place to post this

// OLPC Patch Slewis  [EMAIL PROTECTED]
/**
 * true of the code is running on OLPC
 *
 * @return as above
 */
public static boolean isOLPC() {
String s = System.getProperty(os.name);
if (!s.equalsIgnoreCase(Linux))
return false;
s = System.getProperty(os.arch);
if (!s.equalsIgnoreCase(i386))
return false;
s = System.getProperty(os.version);
if (!s.contains(.olpc.))
return false;
return true;
}

/**
 * a simgle active frame
 */
private static JFrame gActiveFrame;

/**
 * retrieve the current active frame
 * @return possibly null active frame
 */
protected static JFrame getActiveFrame() {
return gActiveFrame;
}

/**
 * set the active frame in effect setting is visible
 * @param pActiveFrame possibly null frame - null hides
 * @throws IllegalStateException if there is an active frame
different from the argument
 */
protected static void setActiveFrame(JFrame pActiveFrame) throws
IllegalStateException
{
if(gActiveFrame != null)  {
if(gActiveFrame == pActiveFrame)
return;  // nothing to do
if(pActiveFrame != null) {
throw new IllegalStateException(Only one active frame
allowed);
}
else {
if(gActiveFrame != null)
gActiveFrame.setVisible(false);  // is this needed???
 }
}
GraphicsEnvironment env = GraphicsEnvironment.
getLocalGraphicsEnvironment();
GraphicsDevice[] devices = env.getScreenDevices();
// REMIND : Multi-monitor full-screen mode not yet supported
GraphicsDevice dev = devices[0];
boolean isFullScreen = dev.isFullScreenSupported();  // always
true on OLPC
dev.setFullScreenWindow(pActiveFrame);
if(pActiveFrame != null)
pActiveFrame.setVisible(true);  // is this needed???
gActiveFrame = pActiveFrame;
}

/**
 * Use this code instead of frame.setVisible(true)
 *
 * @param frame non-null frame
 */
public static void showFrame(JFrame frame) {
// OLPC Patch
if (isOLPC()) {
setActiveFrame(frame);
} else {
frame.setVisible(true);
}
}

/**
 * Use this code instead of frame.setVisible(false)
 *
 * @param frame non-null frame
 */
public static void hideFrame(JFrame frame) {
// OLPC Patch
if (isOLPC()) {
if(getActiveFrame() == frame)
setActiveFrame(null);
} else {
frame.setVisible(false);
}
}

-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)
Skype lordjoe_com
AIM LordJoe2000
ICQ 127138272
email 
[EMAIL PROTECTED] (permanent)

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


New Project: inferno-olpc

2007-12-31 Thread Eric Van Hensbergen
1. Project name : inferno-olpc
2. Existing website, if any : http://www.vitanuova.com/inferno
3. One-line description : Customized launcher and environment for
running a hosted Inferno instance.

4. Longer description   : Inferno is a virtual-machine based
distributed operating system environment originally developed at Bell
Labs.
: Adding Inferno to OLPC will create yet
another environment for development and exploration as well as a
number
: of new applications.  Inferno can be run
today from the shell, but the goal of this project is to optimize
Inferno for
: the OLPC in order to better integrate it
with the rest of the environment.

5. URLs of similar projects : http://gsoc.cat-v.org/projects/OLP9C/

6. Committer list
   Please list the maintainer (lead developer) as the first entry. Only list
   developers who need to be given accounts so that they can commit to your
   project's code repository, or push their own. There is no need to list
   non-committer developers.

  Username   Full name SSH2 key URLE-mail
     - --
   #1 ericvh Eric Van Hensbergen ssh2 id.pub attached [EMAIL PROTECTED]
   #2
   #3
  ...

   If any developers don't have their SSH2 keys on the web, please attach them
   to the application e-mail.

7. Preferred development model

   [] Central tree. Every developer can push his changes directly to the
   project's git tree. This is the standard model that will be familiar to
   CVS and Subversion users, and that tends to work well for most projects.

   [X] Maintainer-owned tree. Every developer creates his own git tree, or
   multiple git trees. He periodically asks the maintainer to look at one
   or more of these trees, and merge changes into the maintainer-owned,
   main tree. This is the model used by the Linux kernel, and is
   well-suited to projects wishing to maintain a tighter control on code
   entering the main tree.

   If you choose the maintainer-owned tree model, but wish to set up some
   shared trees where all of your project's committers can commit directly,
   as might be the case with a discussion tree, or a tree for an individual
   feature, you may send us such a request by e-mail, and we will set up the
   tree for you.

8. Set up a project mailing list:

   [X] Yes, named after our project name
   [ ] Yes, named __
   [] No

   When your project is just getting off the ground, we suggest you eschew
   a separate mailing list and instead keep discussion about your project
   on the main OLPC development list. This will give you more input and
   potentially attract more developers to your project; when the volume of
   messages related to your project reaches some critical mass, we can
   trivially create a separate mailing list for you.

   If you need multiple lists, let us know. We discourage having many
   mailing lists for smaller projects, as this tends to
   stunt the growth of your project community. You can always add more lists
   later.

9. Commit notifications

   [X] Notification of commits to the main tree should be e-mailed to the list
   we chose to create above
   [ ] A separate mailing list, projectname-git, should be created for commit
   notifications
   [] No commit notifications, please

10. Shell accounts

   As a general rule, we don't provide shell accounts to developers unless
   there's a demonstrated need. If you have one, please explain here, and
   list the usernames of the committers above needing shell access.

11. Translation
   [X] Set up the laptop.org Pootle server to allow translation
commits to be made
   [ ] Translation arrangements have already been made at ___

12. Notes/comments:


id_rsa.pub
Description: Binary data
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: iwpriv (Was: OLPC News 2007-12-30)

2007-12-31 Thread David Woodhouse

On Mon, 2007-12-31 at 12:56 -0500, Bernardo Innocenti wrote: 
 btw, we still have code in /etc/init.d/olpc-configure that
 tries to use one of those private ioctls to remap the leds,
 and outputs errors if they're missing.  Is this still needed?

Yes, I think so. And I think it probably even justifies a private ioctl.
So it'll get proper consideration and it'll get sent upstream. Not just
dumped into our kernel and forgotten. 

  However, you're right about this patch not going upstream -- I thought
  I'd already told you that the naïve patch to cs5536_warm_reset() as
  shown in ticket #4397 was not acceptable. It doesn't live in that
  function, and even if it did, it shouldn't be happening unconditionally
  based on CONFIG_OLPC.
 
 An interesting goal would be cleaning up CONFIG_OLPC so that
 it could be enabled in stock kernels of standard Linux distros.

I actually see that as a prerequisite for getting the thing upstream.
And the first step along that path is to stop making it worse.

-- 
dwmw2

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Killing activities

2007-12-31 Thread Steve Lewis
I am finding myself in a situation where I start an activity that fails
to start - this happens alot becaise I am writing my own
activities - short of restarting sugar is there any way to kill a stuck
activity - one which says it is starting and never gets the Stop/Resume
menu?

-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)
Skype lordjoe_com
AIM LordJoe2000
ICQ 127138272
email 
[EMAIL PROTECTED] (permanent)

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Tricks to getting Java Frames working on the OLPC

2007-12-31 Thread Asheesh Laroia
On Mon, 31 Dec 2007, Steve Lewis wrote:

 The following code allows Java JFrames to work properly on the OLPC -
 it assumes - only one active frame and that the frame is full screen.
 You can add it to common applications = the active sections work only on
 the OLPC
 The trick is to use showFrame and hideFrame instead of setVisible -
 these cause the frame to become the graphic environments full screen
 window -

Sweet (*) - one JVM per child!

If you're looking for where to post this, a good start would be a page on 
the OLPC wiki at http://wiki.laptop.org/

-- Asheesh.

*. That is, if Java gets you excited in a positive way.

-- 
This wasn't just plain terrible, this was fancy terrible.  This was terrible
with raisins in it.
-- Dorothy Parker
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Cerebro: Scalable presence information

2007-12-31 Thread Polychronis Ypodimatopoulos
Announcing Cerebro - http://cerebro.mit.edu

Cerebro is a scalable, light-weight protocol that allows 802.11b/g 
devices to form a mesh network. Cerebro has the following advantages:

- It provides presence information about 100 nodes using only a single 
frame per 10 seconds, per node.
- It runs on _any_ 802.11b/g device (tested on XO, Ubuntu, Nokia N800)
- It can (but not yet) provide routing information within the mesh 
network that is formed by regular wifi devices.

Demo:

http://lyme.media.mit.edu:8000/

The simulation running here shows 50 simulated nodes and a real one 
(shown in the center of the screen). The nodes within the same group are 
all in range with each other, but each group is not in range with other 
groups. As a result, nodes within the same group are placed close 
together, whereas different groups are placed as far apart as possible. 
All nodes have information about presence and distance for every other 
node.


There are 50 nodes simulated in 8 groups of 5 nodes and 1 group of 10 
nodes. Although the presence algorithm scales quite well, the 
visualization does not scale as well (yet :-). Therefore, only the first 
20 nodes are displayed properly, while the rest are simply put in the 
list on the right.


A sugarized version of the UI will follow soon!

Enjoy!

Pol


-- 
Polychronis Ypodimatopoulos
Graduate student
Viral Communications
MIT Media Lab
Tel: +1 (617) 459-6058
http://www.mit.edu/~ypod/

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Updated API documentation for everything.

2007-12-31 Thread Gerard J. Cerchio
C. Scott Ananian wrote:
 The subject line of my previous message should have been 'updated API
 documentation', not 'updates API documentation', sigh.
  --scott

   
Scott,

Is this going to be a more or less permanent location?  I am setting my 
link on my PlayGo activity page to the 
http://dev.laptop.org/~cscott/joyride-1477-api/sugar.activity-module.html.

Do you plan to move this into the wiki?

-Gerard
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Question about School Server and student tracking

2007-12-31 Thread John Watlington

This is really a question to the activity developers/learning experience
folks, not server devel...

On Dec 29, 2007, at 10:01 AM, Bryan Berry wrote:

 Question for those working on the school server

 In Nepal we are looking at how to track students' academic progress as
 they workthrough our Squeak-based activities. I believe that Moodle  
 has
 a gradebook feature but I am not sure how we could integrate that w/
 Squeak.

 For the foreseeable future, learning activities for OLPC will probably
 be developed using a number of different toolsets such as Squeak,  
 Flash,
 Pygames,etc. I am curious how we can track students' progress across
 different learning activities implemented in different languages.

 We want to track just a few things such as whether the student  
 completed
 a given activity, how long they spent on it, and how they did on the
 activity such as unsatisfactory, satisfactory, excellent, and perfect.
 This information would help our developers measure how much progress
 kids make on our activities. For example, after X number of tries they
 get to the top level or after X tries they stay at the same level.

If this is for the developers, anonymous information is acceptable.
If it is used to track individual student's progress, it raises  
larger issues.

 Does anyone know if there a way to log a student's progress to Moodle
 through a web service call from w/in a Squeak, Python, or Flash-based
 activity? Is there a way to do this w/ the competing platform, Sakai?

 I have looked at Sakai only briefly and it seems that they have a more
 web-services oriented architecture than Moodle. Does anyone out in
 OLPC-Open-land have personal experience w/ Sakai?
 http://www.sakaiproject.org/media2/2006/overview/overview.htm

 I am sure we could build our own web service from scratch but I would
 much rather piggyback off of an established open-source community than
 start something ourselves.

There is not currently an OLPC recommended method for doing this.

 Related to this, has the school server team settled on using Moodle  
 for
 the School server?

Nothing has been settled.  Open source is required.
We've been concentrating our limited resources on basic operation,
but should have more resources becoming available in January.

 I will be in Boston for much of January and hope to meet w/ the  
 members
 of the server team based there.

Please let me know exactly what dates, so we can schedule something...

John

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: New Project: inferno-olpc

2007-12-31 Thread Bernardo Innocenti
Eric Van Hensbergen wrote:

 1. Project name : inferno-olpc

Great project.  Looking forward to see it in action!

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: [sugar] OLPC emulation

2007-12-31 Thread Bernardo Innocenti
Matt Price wrote:

 i would definitely advise against trying to use the standard emulation
 images, as they take some work to get running.

I'm interested in helping fix such problems.  Please,
file bugs for major problems you've experienced and
assign them to me.  Even better, submit patches.

I'll try to allocate a small portion of my time on making
our emulation experience better.

-- 
 \___/
 |___|   Bernardo Innocenti - http://www.codewiz.org/
  \___\  One Laptop Per Child - http://www.laptop.org/
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


qemu and the file system and development

2007-12-31 Thread Steve Lewis
I have gotten sugar running under windows with QEMU -
no I have lots of questions
1) If I make changes in the emulated system are those changes remembered
between runs?
2) Can I have the emulator point at a part of the windows file system -
allowing my tools to work
on data to be used by the system
3) How do I move changes I made on the XO to the emultator
4) How can I move changes I make in the emulator to the XO
Is there a way to hook an external ide to the image running in QEMU

-- 
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)
Skype lordjoe_com
AIM LordJoe2000
ICQ 127138272
email 
[EMAIL PROTECTED] (permanent)

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Killing activities

2007-12-31 Thread Ivan Krstić
On Dec 31, 2007, at 1:11 PM, Steve Lewis wrote:
 I am finding myself in a situation where I start an activity that  
 fails
 to start - this happens alot becaise I am writing my own
 activities - short of restarting sugar is there any way to kill a  
 stuck
 activity - one which says it is starting and never gets the Stop/ 
 Resume
 menu?

In the development versions, activities that fail to start after some  
amount of time should be reaped automatically by Sugar:

http://dev.laptop.org/git?p=sugar;a=commitdiff;h=b876648bd616fa57b0e3c8050af46bb1c6268e75
 
 

Unless your actual processes are getting stuck (in which case you can  
sigkill them), there's nothing particularly bad about the pulsating  
icon being stuck; it's just a visual annoyance. You could crank the  
activity failed reaping timeout down significantly in your Sugar  
checkout while doing development.

Please note Reply-To. Cheers,

--
Ivan Krstić [EMAIL PROTECTED] | http://radian.org

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Tricks to getting Java Frames working on the OLPC

2007-12-31 Thread Jeffrey Kesselman
Its good you found an hack... but this is definitely a hack.  As it
stands Java wouldn't pass verification on the OLPC and thus cannot be
said to be working yet.

Does this throw some light on what might be wrong at the matchbook level?

JK

On Dec 31, 2007 1:00 PM, Steve Lewis [EMAIL PROTECTED] wrote:
 The following code allows Java JFrames to work properly on the OLPC -
 it assumes - only one active frame and that the frame is full screen.
 You can add it to common applications = the active sections work only on
 the OLPC
 The trick is to use showFrame and hideFrame instead of setVisible -
 these cause the frame to become the graphic environments full screen
 window -
 With this I have menus forking. I have patched JEdit to use this and
 have that application fully functional
 on the OLPC - I also have a first cut at a Sugar jedit launcher -
 Write me for code - I will look for a good place to post this

 // OLPC Patch Slewis  [EMAIL PROTECTED]
 /**
  * true of the code is running on OLPC
  *
  * @return as above
  */
 public static boolean isOLPC() {
 String s = System.getProperty(os.name);
 if (!s.equalsIgnoreCase(Linux))
 return false;
 s = System.getProperty(os.arch);
 if (!s.equalsIgnoreCase(i386))
 return false;
 s = System.getProperty(os.version);
 if (!s.contains(.olpc.))
 return false;
 return true;
 }

 /**
  * a simgle active frame
  */
 private static JFrame gActiveFrame;

 /**
  * retrieve the current active frame
  * @return possibly null active frame
  */
 protected static JFrame getActiveFrame() {
 return gActiveFrame;
 }

 /**
  * set the active frame in effect setting is visible
  * @param pActiveFrame possibly null frame - null hides
  * @throws IllegalStateException if there is an active frame
 different from the argument
  */
 protected static void setActiveFrame(JFrame pActiveFrame) throws
 IllegalStateException
 {
 if(gActiveFrame != null)  {
 if(gActiveFrame == pActiveFrame)
 return;  // nothing to do
 if(pActiveFrame != null) {
 throw new IllegalStateException(Only one active frame
 allowed);
 }
 else {
 if(gActiveFrame != null)
 gActiveFrame.setVisible(false);  // is this needed???
  }
 }
 GraphicsEnvironment env = GraphicsEnvironment.
 getLocalGraphicsEnvironment();
 GraphicsDevice[] devices = env.getScreenDevices();
 // REMIND : Multi-monitor full-screen mode not yet supported
 GraphicsDevice dev = devices[0];
 boolean isFullScreen = dev.isFullScreenSupported();  // always
 true on OLPC
 dev.setFullScreenWindow(pActiveFrame);
 if(pActiveFrame != null)
 pActiveFrame.setVisible(true);  // is this needed???
 gActiveFrame = pActiveFrame;
 }

 /**
  * Use this code instead of frame.setVisible(true)
  *
  * @param frame non-null frame
  */
 public static void showFrame(JFrame frame) {
 // OLPC Patch
 if (isOLPC()) {
 setActiveFrame(frame);
 } else {
 frame.setVisible(true);
 }
 }

 /**
  * Use this code instead of frame.setVisible(false)
  *
  * @param frame non-null frame
  */
 public static void hideFrame(JFrame frame) {
 // OLPC Patch
 if (isOLPC()) {
 if(getActiveFrame() == frame)
 setActiveFrame(null);
 } else {
 frame.setVisible(false);
 }
 }

 --
 Steven M. Lewis PhD
 4221 105th Ave NE
 Kirkland, WA 98033
 425-889-2694
 206-384-1340 (cell)
 Skype lordjoe_com
 AIM LordJoe2000
 ICQ 127138272
 email
 [EMAIL PROTECTED] (permanent)

 ___
 Devel mailing list
 Devel@lists.laptop.org
 http://lists.laptop.org/listinfo/devel




-- 
~~ Microsoft help desk says: reply hazy, ask again later. ~~
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Java question

2007-12-31 Thread Cay Horstmann
Beginner's luck, I guess. Try running

javaws http://www.horstmann.com/violet/violet.jnlp

to see what I mean.

I ran jEdit, and indeed it works ok. I didn't have to do anything with
Ctrl-n or Ctrl-p. The menus and dialogs all came up, just at weird places.

Speed is acceptable, both on the device and with ssh -X.

So...it seems to me that there would be a huge benefit of getting Java
to work properly on the device.

Cay

Jeffrey Kesselman wrote:
 Wow. well congratulations.
 
 You take the prize for the *most* broken Java apps.
 
 I got JEdit and HeroDesigner both up and working fine except for the
 need to ctl-n/ctl-p between windows and the bad layout and menus.
 
 JK
 
 On Dec 29, 2007 3:36 PM, Cay Horstmann [EMAIL PROTECTED] wrote:
 Yes. Ctrl-n navigates to the completely white window. Once in there,
 neither Ctrl-n nor Ctrl-p do anything.

 Jeffrey Kesselman wrote:
 On Dec 29, 2007 3:04 PM, Cay Horstmann [EMAIL PROTECTED] wrote:

 It is much worse than that for the two apps that I tried. In the
 WebStart app, there was a giant gray window containing only the Java
 Application banner. In the other app, there was an empty white window.
 Did you try ctl-n/ctl-p ??




 --


 Cay S. Horstmann | http://horstmann.com | mailto:[EMAIL PROTECTED]

 
 
 


-- 

Cay S. Horstmann | http://horstmann.com | mailto:[EMAIL PROTECTED]

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel