Re: why does this paint twice?

2013-03-07 Thread Greg Brown
going to Java2D > directly, but I just wanted to make sure since I am still learning of Pivot's > capabilities and power. > > Thanks, > Cynthia > > -----Original Message- > From: Greg Brown [mailto:gk_br...@verizon.net] > Sent: Thursday, March 07, 2013 9

Re: why does this paint twice?

2013-03-07 Thread Greg Brown
What code? On Mar 7, 2013, at 12:30 PM, "Schwartz, Cynthia L" wrote: > Is that code the best (fastest, most efficient...) way to accomplish the > painting of a custom control in Pivot? > > Thanks > Cynthia > > -Original Message- > From: Greg

Re: why does this paint twice?

2013-03-07 Thread Greg Brown
paint() is called any time any region of the screen needs to be updated. This update could be triggered by the application or it could be triggered by the OS (for example, if an overlapping window is moved). The graphics context passed to paint() will be clipped to the bounds of the update reg

Re: pivot + webkit?

2013-03-01 Thread Greg Brown
t; > > > > > > ---- Original Message > Subject: Re: pivot + webkit? > From: Greg Brown > To: Andrei Pozolotin > Cc: user@pivot.apache.org > Date: Thu 28 Feb 2013 11:49:55 AM CST >> Possibly. But even if the source code becomes public,

Re: pivot + webkit?

2013-02-28 Thread Greg Brown
nal Message > Subject: Re: pivot + webkit? > From: Greg Brown > To: Andrei Pozolotin > Cc: user@pivot.apache.org > Date: Thu 28 Feb 2013 10:28:20 AM CST >> JWebPane might be helpful if it existed, but unfortunately that work was >> turned into the JavaFX WebView

Re: pivot + webkit?

2013-02-28 Thread Greg Brown
niakov/ > https://blogs.oracle.com/geertjan/entry/waiting_for_jwebpane > > Original Message > Subject: Re: pivot + webkit? > From: Greg Brown > To: Andrei Pozolotin > Cc: user@pivot.apache.org > Date: Thu 28 Feb 2013 09:26:47 AM CST >>> I am cu

Re: pivot + webkit?

2013-02-28 Thread Greg Brown
> I am curious if we go "level down" (almost JNI) > and try to talk to the underlying webkit wrapper for javafx, > would it be easier to integrate in pivot? I don't think so. The JavaFX port of WebKit is enormous and complex - not an easy thing to work with. Also, I think many of those APIs are

Re: pivot + webkit?

2013-02-28 Thread Greg Brown
9:23 AM, Andrei Pozolotin wrote: > re: "Hosting Pivot within JavaFX or vice versa is likely to be difficult. " > - what is the underlying reason for that? > > Original Message ---- > Subject: Re: pivot + webkit? > From: Greg Brown > To: user@pivot.apach

Re: pivot + webkit?

2013-02-28 Thread Greg Brown
Hosting Pivot within JavaFX or vice versa is likely to be difficult. However, since it is possible to embed both Pivot and JavaFX in a Swing app, maybe you could create a thin Swing app to host both. Another option might be to host Pivot within an SWT app and use the SWT browser widget for your

Re: How to draw Java2D primitives to a window

2013-01-26 Thread Greg Brown
> Drawing functions of Pivot has been used a little, so in 2.0 they have > been removed, so now usually it's used SVG via SVGSalamander. That's true for the shape DOM classes, but you can still perform custom drawing using the Visual#paint() method. This is generally done in the skin and is how

Re: How to set ListView data binding?

2012-08-14 Thread Greg Brown
> If I have an ArryList of person objects, is the only way to display their > names in a ListView to create an ArrayList of Strings filled with their names > and pass it to setListData ? You can use a custom list item renderer for this. See this example: http://svn.apache.org/repos/asf/pivot/tr

Re: I had a question on TableView.

2012-06-29 Thread Greg Brown
Have you looked at this example? http://pivot.apache.org/tutorials/table-views.html It is written in BXML, but it should be pretty easy to figure out what is going on. If you need to understand how BXML maps to Java, take a look at this document: http://pivot.apache.org/tutorials/bxml-primer.h

Re: Combine Pivot and Swing?

2012-06-04 Thread Greg Brown
> This works mostly fine. But if i want to deserialize an Panel-Element, > df.getDisplay().add(panel) says, that i have to add an window. That is correct. > The next problem is, that the added "window" is not affected by resizes > of the parent component. Is there a way to fix this? Try setting

Re: Combine Pivot and Swing?

2012-06-04 Thread Greg Brown
> Oh, as we are at it, can I embed a Swing JTextPane to display HTML in a Pivot > window? > Or is there any better way to achieve that? This is not possible. We prototyped a few approaches for doing this a while back, but none of them worked very well.

Re: Combine Pivot and Swing?

2012-06-04 Thread Greg Brown
Take a look at this example: http://svn.apache.org/repos/asf/pivot/trunk/demos/src/org/apache/pivot/demos/swing/ On Jun 4, 2012, at 9:52 AM, Michael Stummvoll wrote: > Hi Pivot Folks, > > I want to "embed" a Pivot-Panel into a Swing-Frame/Panel. Whats the > best way to do that? > > The reaso

Re: dynamic theme switch?

2012-05-04 Thread Greg Brown
No, this is not possible. On May 4, 2012, at 2:28 PM, Andrei Pozolotin wrote: > Hello; > > I am curious is there a way to do dynamic theme switch > in a running application w/o re-creating all of the components? > > Thank you, > > Andrei >

Re: How to allow a ItemRenderer to take user input?

2012-02-20 Thread Greg Brown
Yes, ListView also supports editors. The Kitchen Sink demo contains an example. On Feb 20, 2012, at 5:27 AM, Sandro Martini wrote: > Hi, > >> I built a ListView with customized ItemRenderer. In the ItemRender, I have >> a TextInput field and I want to make it Editable and be able to take user

Re: Long-Term experiments for Pivot: WebGL

2012-01-24 Thread Greg Brown
> a crazy idea come to my mind from what I start to read, it seems that > WebGL will be more and more present in our future … FYI - last I checked, Microsoft had not committed to this standard, though that may have changed. > It's not clear to me if HTML5 Canvas should be enough IMO, the bigges

Re: Deploing pivot application using Java Web Start

2012-01-09 Thread Greg Brown
> On IcedTea I get: org.apache.pivot.serialization.SerializationException with > message: "Script engine for 'javascript' not found.", I'm guessing IcedTea does not include a JS engine. You could try adding Rhino to your classpath to see if that helps. > and on Oracle Java: "org.apache.pivot.be

Re: TreeView

2011-12-21 Thread Greg Brown
Since tree data is just composed of nested Lists, you can use any method in the List interface to modify the structure. G On Dec 19, 2011, at 5:05 AM, coder java wrote: > Hi, > I just follow the Tree View example in svn . > I need to update the content dynamically . Any one please give some id

Re: How to do localization in a BXML Prompt

2011-12-21 Thread Greg Brown
> in my bxml file, I use a Prompt > > > message="%Reallyclosethistab" > options="['Cancel', 'OK']" selectedOptionIndex="1"/> > > > where all other string I can use % for substitution, except the Cancel and OK. > > Is there a way of doing it? This is a

Re: can we add listeners to ListButton?

2011-12-08 Thread Greg Brown
See ListButtonSelectionListener. On Dec 8, 2011, at 4:24 AM, V SANTOSH PAVAN RAJU BS wrote: > Hi, > In my application i want o perform some actions based on SelectedItems in a > ListButton. > To make it happen can i add a Listener to ListButton, like the we do it for > PushButtons. > If you h

Re: Form Field Label & Error Message

2011-12-07 Thread Greg Brown
You need to put the Form.Label attributes and flags on the BoxPane, not the Label. On Dec 6, 2011, at 11:44 PM, Jumbo wrote: > In the following markup code, the Form field labels are not displayed. When > Error Flags are set for the fields during validation, the tooltips with > error messages a

Re: build on mac

2011-12-05 Thread Greg Brown
You should be able to build Pivot on a Mac. What is the specific problem you are encountering? On Dec 5, 2011, at 2:25 PM, sarahr wrote: > I'm trying to follow directions to build from the trunk but running into > issues. Has anyone been through this before? > > -- > View this message in con

Re: JAXB handling in Pivot

2011-12-05 Thread Greg Brown
> Is there any way to handle the JAXB response from Pivot web client? I haven't used JAXB in a long time, but I don't see any reason why it wouldn't be possible. > Is there alternative for this? or we should just stay with JSON object > between server and client under Pivot. I personally pref

Re: Getting proper size of the window component

2011-12-05 Thread Greg Brown
> Some of the windows don't have their preferred size set - the size depends on > their contents. A component does not require a caller to set a preferred size. All components have a default preferred size. setPreferredWidth() and setPreferredHeight() allow a caller to override this default siz

Re: Getting proper size of the window component

2011-12-04 Thread Greg Brown
The size is 0 because the window has not been laid out yet. Can you perform your logic based on the preferred size of the window? That is generally the size it will be given when layout occurs. On Dec 4, 2011, at 7:02 AM, Piotr Kołaczkowski wrote: > Hi, > > How to get the size of a window or

Re: How to listen to window resize events?

2011-12-04 Thread Greg Brown
It is in ComponentListener. On Dec 4, 2011, at 7:15 AM, Piotr Kołaczkowski wrote: > Hi, > > Is there a way to listen to resize events of a window? > I can't find appropriate methods in WindowListener nor WindowStateListener. > > Regards, > Piotr Kołaczkowski >

Re: Question about "previewSheetClose"

2011-12-02 Thread Greg Brown
then brings up > my prompt. > > Roger Whitcomb | Architect, Engineering | roger.whitc...@actian.com| Actian > Corp. | 500 Arguello Street | Suite 200 | Redwood City | CA | 94063 | USA | > +1 650-587-5596 | fax: +1 650-587-5550 > > From: Greg Brown [mailto:gk_br...@verizon.

Re: Question about "previewSheetClose"

2011-12-02 Thread Greg Brown
In your listener, are you vetoing the close event? On Dec 2, 2011, at 1:15 PM, Roger L. Whitcomb wrote: > I need to implement a prompt in my Save As dialogs to confirm if you want to > overwrite an existing file. So, I try to add a SheetStateListener and begin > the prompt in there. That all

Re: editable property on a row

2011-11-22 Thread Greg Brown
One way to do this would be to disable your non-editable rows. That way you can prevent the user from editing them as well as offer a visual cue that the row is not editable. You can do this by specifying a disabled row filter. On Nov 22, 2011, at 5:45 AM, David Delbecq wrote: > Hello, > > I

Re: How to refresh a HighLowChartView

2011-11-21 Thread Greg Brown
> } > > Is it correct ? > Jérôme Serré > > Manage your cellar > http://www.macave.eu > > > De : Greg Brown [mailto:gk_br...@verizon.net] > Envoyé : lundi 21 novembre 2011 14:04 > À : user@pivot.apache.org > Objet : Re: How to

Re: display chart data dynamically

2011-11-21 Thread Greg Brown
Updating the backing data should automatically update the chart without a flicker. Can you file a JIRA ticket with a small sample app that demonstrates the problem? G On Nov 20, 2011, at 7:33 PM, Kostas Georgiadis wrote: > Hello, > > I have an application with a LineChartView. The chart data g

Re: How to refresh a HighLowChartView

2011-11-21 Thread Greg Brown
to appear on the chart I must "move" by hand. How can I get > it to refresh automatically ? > > Jérôme Serré > > Manage your cellar > http://www.macave.eu > > > De : Greg Brown [mailto:gk_br...@verizon.net] > En

Re: How to refresh a HighLowChartView

2011-11-18 Thread Greg Brown
some others) listen this event : > public void itemInserted(List list, int index) { > “Update ChartData” > } > Ok, I think, I cannot use the event ? > Jérôme Serré > > Manage your cellar > http://www.macave.eu > > >

Re: How to refresh a HighLowChartView

2011-11-18 Thread Greg Brown
g but none graphics elements are visible on ihm ! > > Jérôme Serré > > Manage your cellar > http://www.macave.eu > > > De : Greg Brown [mailto:gk_br...@verizon.net] > Envoyé : vendredi 18 novembre 2011 19:29 > À : user@pivot.apac

Re: How to refresh a HighLowChartView

2011-11-18 Thread Greg Brown
> I tested without thread and it works, I use Thread not TaskAdapter or > ApplicationContext#queueCallback() > May I keep Thread and use ApplicationContext#queueCallback() Yes. > And How to use it ? Just put the code you want to run on the UI thread in the run() method (same as SwingUtilities

Re: How to refresh a HighLowChartView

2011-11-18 Thread Greg Brown
OK, are you performing the update using TaskAdapter or ApplicationContext#queueCallback()? If not, that might be the problem. On Nov 18, 2011, at 10:57 AM, Jérôme Serré wrote: > yes > > Jérôme Serré > > Manage your cellar > http://www.macave.eu &

Re: How to refresh a HighLowChartView

2011-11-18 Thread Greg Brown
You shouldn't need to call repaint() yourself. Are you updating the chart data in a background thread? On Nov 18, 2011, at 10:46 AM, Jérôme Serré wrote: > Hello, > > I try to refresh a chartview when a new candlestisk is add. It doesn’t work ! > > After this code: > > ((ValueSeries)this.getCh

Re: how to get the path of a tree node

2011-11-18 Thread Greg Brown
> but i cannot use the last node for setting the selection, unless i got the > new path for the node, which is somehow very tricky :-( Not sure what you mean. When you add an item to a list, the add() method returns the index of the new item. So if you add a node to the branch at path [0][1][2]

Re: how to get the path of a tree node

2011-11-18 Thread Greg Brown
By definition, a branch node must be a List. The selected path simply refers to the last node in the selection. On Nov 18, 2011, at 4:25 AM, pan peter wrote: > by using drag and drop, i can move a tree node to be child of another tree > node. but how to select the dropped tree node after drop? >

Re: how to get absolute location of a component?

2011-11-17 Thread Greg Brown
Try: tableViewHeader.mapPointToAncestor(tableViewHeader.getDisplay()); On Nov 17, 2011, at 4:55 AM, pan peter wrote: > i need to get the absolute coordinates of a table header. It is a child of > some box pane, and the box pane is a child of split pane, etc. when i use > getBounds(), it gives

Re: Adding domain object data to tableview

2011-11-16 Thread Greg Brown
You get an exception when using a key that does not exist in your bean? It does seem like that should be OK. I'd expect the column to simply be empty in this case - not sure about the idea of providing a default property for what might be considered developer error. On Nov 16, 2011, at 9:17 AM,

Re: Adding domain object data to tableview

2011-11-16 Thread Greg Brown
You can just use instances of your bean as your table rows. Just name the columns according to your bean property names. FYI, this is not considered "data binding". TableView is considered a "data-driven" component. On Nov 16, 2011, at 8:32 AM, jensebhasen wrote: > Hi, > > I've been looking

Re: how to use drag and drop swap table columns

2011-11-14 Thread Greg Brown
Nice! On Nov 14, 2011, at 9:18 AM, pan peter wrote: > OK. eventually i got everything works for drag and drop. The trick is I have > to remove the dragged column, then insert it again with preferred index > >TableView.ColumnSequence tc = > tableViewHeader.getTableView().getColum

Re: how to convert CalendarButton type to String type...

2011-11-14 Thread Greg Brown
Did you try CalendarDate#decode()? On Nov 12, 2011, at 1:11 AM, pavanraju@gmail.com wrote: > >> Actually i need a CalendarButton as one of the cell component in >> TableView. > > TableView can only present data. It can't contain other components. You can > use a CalendarButton in a table vi

Re: how to use drag and drop swap table columns

2011-11-11 Thread Greg Brown
Looks like you are painting your root component into the buffered image in getRepresentation(). Try painting the TableViewHeader instead. On Nov 11, 2011, at 11:05 AM, pan peter wrote: > actually with following code i did manage to drag some thing while press on > the table header, but it doesn'

Re: how to convert CalendarButton type to String type...

2011-11-11 Thread Greg Brown
> Actually i need a CalendarButton as one of the cell component in TableView. TableView can only present data. It can't contain other components. You can use a CalendarButton in a table view editor, though.

Re: how to convert CalendarButton type to String type...

2011-11-11 Thread Greg Brown
Have you tried calling CalendarDate#toString()? On Nov 11, 2011, at 2:53 AM, V SANTOSH PAVAN RAJU BS wrote: > In my application i need to convert a CalendarButton type to String type in > order to save them in DB. > so please help me in this regard. > > -- > Thanks & Regards > B.S.V.S.

Re: Difficulties implementing a ListView.ItemRenderer

2011-11-11 Thread Greg Brown
> There's not a whole lot of help, even in the Javadoc, for knowing what > a Renderer should look like. You are right, this is a weak point in the documentation. > I...found the subtle element that, I'm > guessing, pretty much every Renderer needs to do if it's based on a > Component: > >@

Re: Replace column in table view

2011-11-10 Thread Greg Brown
Could this be related to your problem? https://bugzilla.mozilla.org/show_bug.cgi?id=588455 On Nov 10, 2011, at 10:12 AM, pan peter wrote: > Hi, > > I need to swap table columns as well. i don't really understand what you > guys talk about here, i made the > >tableView = (TableView)

Re: how to put some bxml code into another bxml file?

2011-11-09 Thread Greg Brown
If you want the BXML files to share the same namespace, you need to specify inline="true" on the include. On Nov 9, 2011, at 8:00 AM, pan peter wrote: > i have a big bxml file that contains a lot of stuff. now i want to reduce the > size of this bxml file, for example, put some menu bar definiti

Re: how can i get rid of the layer around my frame?

2011-11-09 Thread Greg Brown
I see. No, there is no easy way to hide the native window trim. On Nov 9, 2011, at 4:23 AM, pan peter wrote: > i have attached a picture. maybe your browser doesn't show that? > > There are two titles as Client there, the one outside the frame has > different font than all text in frame. And I

Re: how can i get rid of the layer around my frame?

2011-11-08 Thread Greg Brown
Not sure what you mean by layer. A screen shot might help. On Nov 8, 2011, at 5:15 AM, pan peter wrote: > by using the menu bars example, i created an application. but my frame > contains two layers with icon and title. i can hide the inner one by set the >showWindowControls:false > for the

Re: how to copy one row content to the next row in TableView

2011-11-05 Thread Greg Brown
Again, it depends on the nature of your row. If it is a map, you need to copy all the key/value pairs. If it is a bean, you need to copy all the property values. On Nov 5, 2011, at 6:37 AM, V SANTOSH PAVAN RAJU BS wrote: > I have created a tableview and added rows in it by using a List. Now i

Re: how to persistent some GUI component state?

2011-11-04 Thread Greg Brown
> so pivot doesn't provide any interface for this purpose, like which expander > is closed/open during last session? No. > seems RCP has some data that is kept persistent like left/right panel size, > etc. RCP is a much broader platform that is built on top of SWT (which is more analogous to Pi

Re: how to persistent some GUI component state?

2011-11-03 Thread Greg Brown
You can use the standard Java preferences API (java.util.prefs) for this. On Nov 3, 2011, at 8:43 AM, pan peter wrote: > for example, if some trees are open during user close the window, next time > he opens the window, can the application remember last state of the trees, > then user doesn't ne

Re: tableview

2011-11-03 Thread Greg Brown
TableViews are backed by an instance of List. You can get access to each of the beans to delete via the get() method, which takes an integer index. On Nov 3, 2011, at 3:08 AM, V SANTOSH PAVAN RAJU BS wrote: > I have created a TableView and added rows using a Bean class and inserted > column ent

Re: any good XML editor you guys use for bxml editing?

2011-11-02 Thread Greg Brown
I'm using Helios, so from the Helios download site (http://download.eclipse.org/releases/helios), it is Programming Languages > Eclipse XML Editors and Tools v3.2.3. On Nov 2, 2011, at 11:00 AM, pan peter wrote: > what plugin have you installed to edit bxml? > > -- > View this message in con

Re: any good XML editor you guys use for bxml editing?

2011-11-02 Thread Greg Brown
FWIW, I have generally been pretty happy with the XML support that is built into Eclipse (though depending on which distribution you installed, you may need to download and install it separately). On Nov 2, 2011, at 10:35 AM, pan peter wrote: > the xmlfox is somehow interesting except it doesn'

Re: i had a doubt regarding TableView,

2011-11-02 Thread Greg Brown
How you do this depends on the nature of the data you use to represent a row. If it is a Map, you can just call get() on the row, passing the key for the column you want. If it is a bean, you can call the property getter for the appropriate column. On Nov 2, 2011, at 9:18 AM, V SANTOSH PAVAN RA

Re: any good XML editor you guys use for bxml editing?

2011-11-02 Thread Greg Brown
There is no schema for BXML. The valid elements and attributes are defined by what is currently on your classpath. It is theoretically possible to generate a schema from a given set of JARs, but I'm not aware of any tool that does this at the moment. On Nov 2, 2011, at 9:05 AM, pan peter wrote

Re: Hi,

2011-11-01 Thread Greg Brown
> Here when run this pivot application the above mentioned TextInput was > completely filled with red background color. > Here i understood, because of the validator it is showing like this. But i > want to make sure that validation must be done when some event happens > like. , after i ent

Re: SV: Passing parameters to BXML include tag.

2011-10-31 Thread Greg Brown
ield with a public > getter and public setter. > > Regards, > Piotr > > W dniu 2011-10-31 15:09, Greg Brown pisze: >> Sounds like a bug. >> >> On Oct 31, 2011, at 9:41 AM, Piotr Kołaczkowski wrote: >> >>> Thanks, that works. >>>

Re: SV: Passing parameters to BXML include tag.

2011-10-31 Thread Greg Brown
Sounds like a bug. On Oct 31, 2011, at 9:41 AM, Piotr Kołaczkowski wrote: > Thanks, that works. > BTW: Why @BXML doesn't work in unsigned applets, although there is a public > setter present? > > > W dniu 2011-10-31 14:00, Greg Brown pisze: >> Try implementing

Re: SV: Passing parameters to BXML include tag.

2011-10-31 Thread Greg Brown
Try implementing Bindable in your root element and overriding initialize(). On Oct 31, 2011, at 8:46 AM, Piotr Kołaczkowski wrote: > Thanks, I tried that but the load method is not called. However, the > constructor of the component is called, and the setter of the property is > also called. >

Re: Hi

2011-10-31 Thread Greg Brown
See org.apache.pivot.wtk.validation. On Oct 31, 2011, at 3:33 AM, V SANTOSH PAVAN RAJU BS wrote: > I am using apache pivot and i want to know this framework provides any built > in validators support for validating TextInput components? > > -- > Thanks & Regards > B.S.V.S.Pavan Raju. > Skype

Re: can we make some transparent dialog?

2011-10-28 Thread Greg Brown
Put it in a BoxPane and put the BoxPane in the StackPane. On Oct 28, 2011, at 5:38 AM, pan peter wrote: > actually now i have to ask another stupid question: how can i set the > indicator size? after i put it into the stack pane, it covers the whole > page, no matter i set miximum height, prefe

Re: Can't run tutorial demos

2011-10-27 Thread Greg Brown
> > > Mark > > > > Subject: Re: Can't run tutorial demos > Date: Thu, 27 Oct 2011 17:14:14 -0400 > From: > To: > Reply-To: user@pivot.apache.org > > I'm using Firefox 7.0.1 on Windows 7 Ultimate. > > > Mark > > > > Subjec

Re: Can't run tutorial demos

2011-10-27 Thread Greg Brown
What OS/browser are you using? It works for me in OS X 10.6.8/Safari 5.1. On Oct 27, 2011, at 4:59 PM, wrote: > Hi, > > > Was browsing the Apache Pivot page today and noticed that none of your Applet > demos seemed to load on my machine. When I open the page in my browser, I > just get th

Re: DialogBoxes with default buttons

2011-10-27 Thread Greg Brown
tor should have the ability to cancel > closing the dialog. > > Regards, > Piotr > > W dniu 2011-10-27 20:41, Greg Brown pisze: >> You don't need to do anything special to achieve this. A dialog will close >> automatically with a result of true when the user presse

Re: DialogBoxes with default buttons

2011-10-27 Thread Greg Brown
You don't need to do anything special to achieve this. A dialog will close automatically with a result of true when the user presses Enter. It closes with a result of false when the user presses Escape. You could use styles to highlight the OK button as the "default". On Oct 27, 2011, at 2:31

Re: can we make some transparent dialog?

2011-10-27 Thread Greg Brown
Yes, but you may be better off using a StackPane for this. On Oct 27, 2011, at 9:26 AM, pan peter wrote: > now i want a busy indicator, but i don't like a dialog to place the indicator > on it. can the dialog be transparent so that user only see the indicator? > > -- > View this message in cont

Re: how to make a login window before main window?

2011-10-26 Thread Greg Brown
> i think it's not good to have a shaddow gray frame behind the login dialog. Sure - but as I suggested earlier, you don't have to implement it that way. You could open your main window and show some nice background image while the login dialog is open. Then when the user logs in, you replace t

Re: how to make a login window before main window?

2011-10-26 Thread Greg Brown
I have no idea how Pivot might interact with RCP. It may work, but it was not designed to support that. Any reason you can't simply use a Pivot dialog within your main host frame? Is there a reason you need a native dialog? If so, you may have better luck implementing your login in AWT or Swing

Re: how to make a login window before main window?

2011-10-26 Thread Greg Brown
When you say "Pivot window", do you mean the native application frame that hosts the Pivot display? If so, this is by design - all Pivot windows are hosted within a single native frame. You can open multiple native frames (i.e. multiple displays) using DesktopApplicationContext#createDisplay().

Re: how to make a login window before main window?

2011-10-26 Thread Greg Brown
> Then I pass a null as > display, then got null pointer exception for display. You need to pass the display that is passed to your startup() method. > Even only contains > these code in start up, it still opens a big pivot window, Make sure you don't have maximized="true" in your dialog markup

Re: how to make a login window before main window?

2011-10-26 Thread Greg Brown
> how to create a dialog without owner? Don't pass an owner to open(). > when i do it in startup(), it always open a big pivot window, then shows the > dialog. Don't open your main window before opening the dialog.

Re: how to make a login window before main window?

2011-10-26 Thread Greg Brown
start() would be the right place to do it. Just make sure that the dialog isn't maximized and has no owner. Another option is to open your main window first, but not show any content until the dialog closes. On Oct 26, 2011, at 8:11 AM, pan peter wrote: > i need to provide a login page before

Re: ListButton with icons and text

2011-10-24 Thread Greg Brown
I think an additional simple example that demonstrates ListItem and references other similar classes and renderers would probably be sufficient. On Oct 24, 2011, at 9:51 AM, Sandro Martini wrote: >> There is, but how to do it isn't specifically mentioned in the tutorial. You >> have to look at

Re: ListButton with icons and text

2011-10-24 Thread Greg Brown
There is, but how to do it isn't specifically mentioned in the tutorial. You have to look at the source code to figure it out. On Oct 24, 2011, at 9:05 AM, Sandro Martini wrote: > Hi all, > if I remember well there sould be something like this even in the > Kitchen Sink Demo, but sorry I can't l

Re: ListButton with icons and text

2011-10-24 Thread Greg Brown
> val listViewItemRenderer = new ListViewItemRenderer > listViewItemRenderer.setShowIcon(true) > triggerSlopeListButton.setItemRenderer(listViewItemRenderer) > > For sure, there should be an example of how to do that in the tutorial - > without looking at the Pivot source code I'd have no idea to

Re: Hi, I had a doubt regarding TableView

2011-10-19 Thread Greg Brown
Depends on how you define "contains". The row *is* the data. So if the row is present, it by definition contains data. On Oct 19, 2011, at 12:55 AM, V SANTOSH PAVAN RAJU BS wrote: > Can any one tell me how to test whether a row in a TableView contains data or > not. > > -- > Thanks & Regards

Re: Modeless dialog gets moved to the back in display order

2011-10-18 Thread Greg Brown
It was a pretty simple fix. We weren't checking the value of the modal flag so all dialogs behaved as if they were modal. On Oct 18, 2011, at 3:33 PM, Tomas Stenlund wrote: > Quick as always, care to enligthen me with what it was ? > > Thanks, > > Tomas > > On 10/17

Re: SV: hi,

2011-10-18 Thread Greg Brown
Also, please subscribe to the user list if you want to see a response. On Oct 18, 2011, at 10:00 AM, Edvin Syse wrote: > Please ask your question on the user list, this is not a dev question :) > > -- Edvin > >> -Opprinnelig melding- >> Fra: V SANTOSH PAVAN RAJU BS [mailto:pavanraju

Re: Modeless dialog gets moved to the back in display order

2011-10-17 Thread Greg Brown
>> Did you try opening the dialog with the main frame as its owner? That will >> ensure that it remains on top of the frame. > Yes, but then I don't get it to be non-modal even if I use the setModal > (false) on the dialog. So I can't continue to use the main frames menus and > buttons. Or am I

Re: Hi

2011-10-17 Thread Greg Brown
> tableView.removeSelectedIndex(rowIndex); removeSelectedIndex() removes the given value from the list of selected indexes. It does not remove the item from the model. You can use List#remove() to do that. FYI, I'm moving this to the user list since it isn't a dev question - please make sure y

Re: Modeless dialog gets moved to the back in display order

2011-10-17 Thread Greg Brown
Did you try opening the dialog with the main frame as its owner? That will ensure that it remains on top of the frame. On Oct 16, 2011, at 5:13 AM, Tomas Stenlund wrote: > I have an Application that creates a Frame containing menues and some > controls. Nothing fancy. In addition to this I have

Re: Having pivot 1 & 2

2011-10-06 Thread Greg Brown
If you are using it in a separate app, there should be no problem. However, you won't be able to combine Pivot 1.x and Pivot 2.x in the same application. On Oct 6, 2011, at 10:55 AM, Jason Dorsey wrote: > Very new to java... > > At my internship they have an app that uses pivot 1 and I want to

Re: pivot & ui state persistence patterns

2011-10-06 Thread Greg Brown
I would recommend using the standard Java preferences APIs (java.util.prefs) for this. On Oct 6, 2011, at 12:51 AM, prophe wrote: > Hi! Can you post an example or share code or give me an advice how to save > the state of an application? I mean opened tabs, selected tabs, selected > tree items a

Re: keyboard short-cuts for buttons

2011-10-05 Thread Greg Brown
What is the root element? You can just add a keyboard listener to that (via getComponentKeyListeners().add()). On Oct 5, 2011, at 12:37 AM, Adarsh Y.V wrote: > hi > this my java file for a simple bxml page for setting destination folder > during installation. > can someone show a sample to ad

Re: JavaFX 2.0 VS Pivot

2011-10-05 Thread Greg Brown
I'm not aware of any performance tests comparing JFX2 to Pivot. G On Oct 5, 2011, at 12:27 AM, Brendan cheng wrote: > > Hi, > How do you compare the latest JavaFX with Pivot?Do you have any performance > test with it? > Regards, > Brendan

Re: keyboard short-cuts for buttons

2011-10-03 Thread Greg Brown
There is no built-in way to do this. Easiest thing to do is attach a keyboard listener to the button's container or another ancestor and handle the shortcut key presses there. On Oct 2, 2011, at 10:59 PM, Adarsh Y.V wrote: > How can we enable key board short-cuts (if mouse is not present) for b

Re: Replace column in table view

2011-10-03 Thread Greg Brown
The simplest way to do this is probably to attach a decorator to the header that draws the line. On Oct 3, 2011, at 3:13 AM, prophe wrote: > And now I want to paint the bold line on the filter that is under mouse > cursor while dragging and a narrow under the filter. Looking like on the > pictur

Re: keyboard short-cuts for buttons

2011-10-03 Thread Greg Brown
There is no built-in way to do this. Easiest thing to do is attach a keyboard listener to the button's container or another ancestor and handle the shortcut key presses there. On Oct 2, 2011, at 10:59 PM, Adarsh Y.V wrote: > How can we enable key board short-cuts (if mouse is not present) for b

Re: Replace column in table view

2011-10-03 Thread Greg Brown
Glad you figured it out. I misunderstood the issue so my suggestion wouldn't have worked anyway. On Oct 3, 2011, at 12:04 AM, prophe wrote: > How can I do that? Now my column picture when I try to drag look like: > http://apache-pivot-users.399431.n3.nabble.com/file/n3389036/rty.jpg > As you ca

Re: how to change the window size

2011-10-03 Thread Greg Brown
You can either call Display#getHostWindow() and set the size on that or pass --width and --height command-line arguments to your app. On Oct 3, 2011, at 2:58 AM, pan peter wrote: > i made a window based on the menu bars example, but i cannot change the > window size with either set size or set

Re: Replace column in table view

2011-10-02 Thread Greg Brown
You'll probably want to translate to the coordinates of the header rather than the origin coordinates. On Oct 1, 2011, at 1:58 AM, prophe wrote: > I've replaced graphics.translate(-headerBounds.x, -headerBounds.y); > And the problem with black rectangle is resolve. But When I try to move > secon

Re: Replace column in table view

2011-09-30 Thread Greg Brown
> I try to do: > > @Override > public Visual getRepresentation() { > Picture picture = null; > if (selectedIndex!=-1){ > Bounds headerBounds = getHeaderBounds(selectedIndex); > BufferedImage bImg = new > BufferedI

Re: Replace column in table view

2011-09-30 Thread Greg Brown
> @Override > public Visual getRepresentation() { > Picture picture = null; > if (selectedIndex!=-1){ > Bounds headerBounds = getHeaderBounds(selectedIndex); > BufferedImage bImg = new > BufferedImage(headerBounds.

  1   2   3   4   5   6   7   8   9   10   >