• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
D2JC Checkbox label position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

D2JC Checkbox label position


  • Subject: D2JC Checkbox label position
  • From: William Butler <email@hidden>
  • Date: Tue, 14 Jan 2003 17:04:01 -0500

I am wading into the land of D2JC. I had tried but turned back on prior releases because the documentation was inadequate and because the thing had bugs--but this time I am making actual progress. The basic idea of a rule driven system that generates XML to the client is, indeed, brilliant.

In the various widgets the label gets placed to the left of the input widget, except that it gets placed on the right in EOCheckBoxController. I've tried setting labelComponentPosition to "Left" in the rule system and in frozen XML, and also calling setLabelComponentPosition(javax.swing.SwingConstants.LEFT) at various places in objects that extend EOCheckBoxController. However, despite the above the label position remains on the right. (By the way, the documentation only states that setLabelComponentPosition takes an integer argument but does not say which argument value means which position. It is an assumption of mine that they intend the use of javax.swing.SwingConstants. If this assumption is incorrect then it may explain my problems).

The only way I've gotten the label to be on the left is by overriding newWidget() in an class that extends EOCheckBoxController and setting setHorizontalTextPosition(avax.swing.SwingConstants.LEFT) in the result of super.newWidget(). But this is not satisfactory because the result is not properly aligned with the other fields.

Is there someway I can do to get this to work to have labels shown on the left of checkboxes?

Also, while I have your attention, does someone out there have a good scheme for logging from the client to the server (beyond placing invokeStatelessRemoteMethod calls in the client classes)?

Thanks,

Bill Butler
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: xactisolevel not recognized
  • Next by Date: Re: Breakpoint don't work with WebObjects 5.2 and Project Builder 2.1
  • Previous by thread: Re: Breakpoint don't work with WebObjects 5.2 and Project Builder 2.1
  • Next by thread: D2JC Checkbox label position
  • Index(es):
    • Date
    • Thread