Hello.
Can anyone bring me up to speed to use XML to manage adding and removing tabs
from a JTabbedPane?
I am adding tabs and I Would like some code or links that could show me how to
serialize any changes I make to a JTabbedPane.
Thanks
Hello.
Can anyone bring me up to speed to use XML to manage adding and removing tabs
from a JTabbedPane?
I am adding tabs and I Would like some code or links that could show me how to
serialize any changes I make to a JTabbedPane.
Thanks
Hello.
Can anyone bring me up to speed to use XML to manage adding and removing tabs
from a JTabbedPane?I am adding tabs and I Would like some code or links that could show me how to
serialize any changes I make to a JTabbedPane.
Thanks
Hello.
Can anyone bring me up to speed to use XML to manage adding and removing tabs
from a JTabbedPane?I am adding tabs and I Would like some code or links that could show me how to
serialize any changes I make to a JTabbedPane.
Thanks
Of course my first post makes no sense at all.
I have a program that adds frames and tabs to UI components.
Simultaneously adding folders in a dirctory.
I would like to learn how to use the program to write XML to save the paths to these folders.
first:
is this even close to a XML structure?
if so, can java write this?
further,can the blocks be added and removed and then saved?
<?xml version="1.0" encoding="utf-8"?>
<data>
<frame>
<frameName>Java Notes</frameName>
<framePath>C:\user\target\Java Notes\</framePath>
<tab>
<tabName>Using XML</tabName>
<tabPath>C:\user\target\Java Notes\Using XML\</tabPath>
<doc>
<docName>How to use DOM</docName>
<docPath>C:\user\target\Java Notes\Using XML\How to use DOM\</docPath>
</doc>
<doc>
<docName>How to load XML</docName>
<docPath>C:\user\target\Java Notes\Using XML\How to load XML\</docPath>
</doc>
<tab>
</frame>
<frame>
<frameName>Grocery List</frameName>
<framePath>C:\user\target\Grocery List\</framePath>
<tab>
<tabName>Meals</tabName>
<tabPath>C:\user\target\Grocery List\Meals</tabPath>
<doc>
<docName>Monday</docName>
<docPath>C:\user\target\Grocery List\Meals\Monday\</docPath>
</doc>
<doc>
<docName>Tuesday</docName>
<docPath>C:\user\target\JavaNotes\Grocery List\Tuesday\</docPath>
</doc>
<tab>
</frame>
</data>
totally lost here. thanks
Of course my first post makes no sense at all.
I have a program that adds frames and tabs to UI components.
Simultaneously adding folders in a dirctory.
I would like to learn how to use the program to write XML to save the paths to these folders.
first:
is this even close to a XML structure?
if so, can java write this?
further,can the blocks be added and removed and then saved?<?xml version="1.0" encoding="utf-8"?> <data> <frame> <frameName>Java Notes</frameName> <framePath>C:\user\target\Java Notes\</framePath> <tab> <tabName>Using XML</tabName> <tabPath>C:\user\target\Java Notes\Using XML\</tabPath> <doc> <docName>How to use DOM</docName> <docPath>C:\user\target\Java Notes\Using XML\How to use DOM\</docPath> </doc> <doc> <docName>How to load XML</docName> <docPath>C:\user\target\Java Notes\Using XML\How to load XML\</docPath> </doc> <tab> </frame> <frame> <frameName>Grocery List</frameName> <framePath>C:\user\target\Grocery List\</framePath> <tab> <tabName>Meals</tabName> <tabPath>C:\user\target\Grocery List\Meals</tabPath> <doc> <docName>Monday</docName> <docPath>C:\user\target\Grocery List\Meals\Monday\</docPath> </doc> <doc> <docName>Tuesday</docName> <docPath>C:\user\target\JavaNotes\Grocery List\Tuesday\</docPath> </doc> <tab> </frame> </data>
totally lost here. thanks
I ran some system out and I have the data I need for now.
I have never done an internal dtd. Can someone proof it for me?
Can I write these as .xml and then use DOM TO use them?
thanks
--> in public void sysOut() { var: xxxxxxxxx : xxxxxxxx<--
<?xml version="1.0"?>
<!DOCTYPE frameData (frameElement+) [
<!ELEMENT frameElement(frameName,framePath)>
<!ELEMENT frameElement (frameElement)*>
<!ATTLIST frameElement index NMTOKEN #REQUIRED>
<!ELEMENT frameName (#PCDATA)>
<!ELEMENT framePath (#PCDATA)>
]>
<frameData>
<frameElementindex="frame folder">
<frameNameElement>
frame folder
</frameNameElement>
<framePathElement>
C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder
</framePathElement>
</frameElement>
--> in public void sysOut() { var: xxxxxxxxx : xxxxxxxx<--
<?xml version="1.0"?>
<!DOCTYPE tabData (tabElement+) [
<!ELEMENT tabElement(tabName,tabPath)>
<!ELEMENT tabElement (tabElement)*>
<!ATTLIST tabElement index NMTOKEN #REQUIRED>
<!ELEMENT tabName (#PCDATA)>
<!ELEMENT tabPath (#PCDATA)>
]>
<tabData>
<tabElementindex="tab folder">
<tabNameElement>
tab folder
</tabNameElement>
<tabPathElement>
C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder\tab folder
</tabPathElement>
</tabElement>
Fixed.
CLASS
CreateSystemStartFolders:
--> in public CreateSystemStartFolders() var: xxxxxxxxx : xxxxxxxx<--
: : caller
--->: setupTargetFolder(.targetFolders) : var: xxxx : xxxxxxx <-----
--> in public void setupTargetFolder(.targetFolders) var: xxxxxxxxx : xxxxxxxx<--
--> in public void sysOut() { var: xxxxxxxxx : xxxxxxxx<--
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE frames [
<!ELEMENT frames (frame)+>
<!ELEMENT frame (name,path)>
<!ATTLIST frame title CDATA #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ELEMENT path (#PCDATA)>
]>
<frames>
<frame title="frame folder">
<name>
frame folder
</name>
<path>
C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder
</path>
</frame>
</frames>
--> in public void internalFrameActivated(INTERNAL_FRAME_ACTIVATED) var: xxxxxxxxx : xxxxxxxx<--
--> in public void internalFrameActivated(INTERNAL_FRAME_ACTIVATED) var: xxxxxxxxx : xxxxxxxx<--
key
CLASS
public static class InternalFrameNotes extends JInternalFrame implements Serializable, InternalFrameListener:
CLASS
OneNoteSetupTabFrame:
--> in public void allowCreationOfOneNoteTab(tab folder) var: name : xxxxxxxx<--
: : caller
--->: SaveInitialNoteTab.firstInstance(view.SchoolJDesktopPane$InternalFrameNotes[,0,0,750x500,invalid,layout=javax.swing.plaf.basic.BasicInternalFrameUI$Handler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.metal.MetalBorders$InternalFrameBorder@f3552f,flags=264,maximumSize=,minimumSize=,preferredSize=,closable=true,defaultCloseOperation=DISPOSE_ON_CLOSE,desktopIcon=javax.swing.JInternalFrame$JDesktopIcon[,0,0,160x31,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@122c9df,flags=8,maximumSize=,minimumSize=,preferredSize=],frameIcon=sun.swing.ImageIconUIResource@33c658,iconable=true,isClosed=false,isIcon=false,isMaximum=false,isSelected=true,maximizable=true,opened=true,resizable=true,rootPane=javax.swing.JRootPane[,5,28,740x467,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true,title=frame folder] , tab folder , C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder\tab folder) : var: frame : folderName : folderLocation <-----
--> in public void firstInstance(view.SchoolJDesktopPane$InternalFrameNotes[,0,0,750x500,invalid,layout=javax.swing.plaf.basic.BasicInternalFrameUI$Handler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.metal.MetalBorders$InternalFrameBorder@f3552f,flags=264,maximumSize=,minimumSize=,preferredSize=,closable=true,defaultCloseOperation=DISPOSE_ON_CLOSE,desktopIcon=javax.swing.JInternalFrame$JDesktopIcon[,0,0,160x31,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@122c9df,flags=8,maximumSize=,minimumSize=,preferredSize=],frameIcon=sun.swing.ImageIconUIResource@33c658,iconable=true,isClosed=false,isIcon=false,isMaximum=false,isSelected=true,maximizable=true,opened=true,resizable=true,rootPane=javax.swing.JRootPane[,5,28,740x467,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true,title=frame folder] , tab folder : C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder\tab folder) var: frame.getTitle() :frame.getTitle() : path :<--
CLASS
public class SaveInitialNoteTab {:
--> in public void firstInstance(view.SchoolJDesktopPane$InternalFrameNotes[,0,0,750x500,invalid,layout=javax.swing.plaf.basic.BasicInternalFrameUI$Handler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.metal.MetalBorders$InternalFrameBorder@f3552f,flags=264,maximumSize=,minimumSize=,preferredSize=,closable=true,defaultCloseOperation=DISPOSE_ON_CLOSE,desktopIcon=javax.swing.JInternalFrame$JDesktopIcon[,0,0,160x31,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@122c9df,flags=8,maximumSize=,minimumSize=,preferredSize=],frameIcon=sun.swing.ImageIconUIResource@33c658,iconable=true,isClosed=false,isIcon=false,isMaximum=false,isSelected=true,maximizable=true,opened=true,resizable=true,rootPane=javax.swing.JRootPane[,5,28,740x467,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true,title=frame folder] , tab folder : C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder\tab folder) var: frame.getTitle() :frame.getTitle() : path :<--
: C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder\tab folder: folderLocation :
CLASS
public class SaveInitialNoteTab {:
--> in public void firstInstance(view.SchoolJDesktopPane$InternalFrameNotes[,0,0,750x500,invalid,layout=javax.swing.plaf.basic.BasicInternalFrameUI$Handler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.metal.MetalBorders$InternalFrameBorder@f3552f,flags=264,maximumSize=,minimumSize=,preferredSize=,closable=true,defaultCloseOperation=DISPOSE_ON_CLOSE,desktopIcon=javax.swing.JInternalFrame$JDesktopIcon[,0,0,160x31,invalid,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@122c9df,flags=8,maximumSize=,minimumSize=,preferredSize=],frameIcon=sun.swing.ImageIconUIResource@33c658,iconable=true,isClosed=false,isIcon=false,isMaximum=false,isSelected=true,maximizable=true,opened=true,resizable=true,rootPane=javax.swing.JRootPane[,5,28,740x467,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true,title=frame folder] , tab folder : C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder\tab folder) var: frame.getTitle() :frame.getTitle() : path :<--
: true: bCreated target :
--> in public CreateSystemStartFolders() var: xxxxxxxxx : xxxxxxxx<--
CLASS
CreateSystemStartFolders:
--> in public CreateSystemStartFolders() var: xxxxxxxxx : xxxxxxxx<--
: : caller
--->: setupTargetFolder(.targetFolders) : var: xxxx : xxxxxxx <-----
--> in public void setupTargetFolder(.targetFolders) var: xxxxxxxxx : xxxxxxxx<--
--> in public void sysOut() { var: xxxxxxxxx : xxxxxxxx<--
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE tabs [
<!ELEMENT tabs (tab)+>
<!ELEMENT tab (name,path)>
<!ATTLIST tab title CDATA #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ELEMENT path (#PCDATA)>
]>
<tabs>
<tab title="tab folder">
<name>
tab folder
</name>
<path>
C:\Users\Steves_\.targetFolders\admin\admin\One Note Folder\frame folder\tab folder
</path>
</tab>
</tabs>
--> in insertSelectedTab() var: xxxxxxxx<--
CLASS
NotesAction:
--> in insertSelectedTab() var: xxxxxxxx<--
: : caller
--> : CreateContentTabPanels.noteContentTab() : var: xxxx : xxxxxxx <--
:WAVE:
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.