Re: [Bojangles-devel] dom4j help
Status: Alpha
Brought to you by:
nehresma
From: Nathan E. <neh...@cs...> - 2002-08-23 13:16:18
|
Wesley Widner wrote: > Yeah I got the email about the picturebutton class, and no, I didnt really > need the picturebutton class. cool. i'll take it outta CVS then so we don't have a cluttered repository. i think i'll also take out the textbutton and page widget classes since those are also not used anymore. sound good? > I can create the document and all but I can't figure out how to add elements > to it. You can see how far I got in MainWindow.java's loadprefs function. > Also I can't seem to convince bojangles to display the prefs dialog. oops. i misunderstood. to create elements (starting with the root element, of which there can only be one): Document d = DocumentHelper.createDocument(); Element rootElement = d.addElement("indiana"); Element subElement = root.addElement("basketball"); subElement.addAttribute("is_cool", "true"); that's all there is to it.. just keeping adding elements and so forth. > As far as what I want prefs.xml to hold... It needs to hold the full path to > the browser (i.e. /usr/bin/netscape), the hostname with centrallix on it, > the port, the dir where the test xml is held, and the last known save path. > The prefs.xml should have this in it. cool beans. sounds good. it'd be cool to have the prefs also save the setup of the GUI (like how big each splitpane is, etc.) eventually. that drives me crazy right now cause i'll change the size of the tree but i have to do it every time. :) oh well. prefs are our friends. later, nre |