Click here to Skip to main content
12,395,871 members (63,237 online)
   

Java

 
GeneralRe: Any Java Book Recommend Pin
waylife12-Nov-12 22:08
memberwaylife12-Nov-12 22:08 
GeneralRe: Any Java Book Recommend Pin
Gowtham Gutha15-Nov-12 0:22
memberGowtham Gutha15-Nov-12 0:22 
GeneralRe: Any Java Book Recommend Pin
waylife15-Nov-12 3:10
memberwaylife15-Nov-12 3:10 
GeneralRe: Any Java Book Recommend Pin
waylife14-Nov-12 0:54
memberwaylife14-Nov-12 0:54 
AnswerRe: Any Java Book Recommend Pin
Ivan Melnikov1-Jul-13 22:38
memberIvan Melnikov1-Jul-13 22:38 
QuestionHow to create/set an element of a document Pin
prithaa6-Nov-12 3:43
memberprithaa6-Nov-12 3:43 
AnswerRe: How to create/set an element of a document Pin
padmanabanproject7-Nov-12 19:58
memberpadmanabanproject7-Nov-12 19:58 
GeneralRe: How to create/set an element of a document Pin
prithaa4-Dec-12 3:55
memberprithaa4-Dec-12 3:55 
hello
thanks for your reply
I am using swing libraries and there i am able to create a leaf or a branch of a document but the leafelement doesnt seem to get added to the default root .

public class MyDoc extends DefaultStyledDocument  {
 
protected void insertUpdate(AbstractDocument.DefaultDocumentEvent e,
            AttributeSet attr){				
Element root = getDefaultRootElement(); 
Element branchroot = new BranchElement(root, null);
branchroot = createBranchElement(root,null);
Element leafElement = new LeafElement(branchroot, null, 0,0);
leafElement = createLeafElement(branchroot,null,"p");
}
 

public Element createBranchElement(Element parent,AttributeSet a) 
{
   return super.createBranchElement(parent, a);
}
 
protected Element createLeafElement(Element parent,AttributeSet a, String arg) throws BadLocationException 
{
return super.createLeafElement(parent, null, startOffset(arg),startOffset(arg)+5);
//complete code createleaf not written 
}		
 
}

Questionhow to Use Java to get the database info by Internet Protocol Pin
XMafei5-Nov-12 4:03
memberXMafei5-Nov-12 4:03 
AnswerRe: how to Use Java to get the database info by Internet Protocol Pin
Richard MacCutchan5-Nov-12 5:24
mvpRichard MacCutchan5-Nov-12 5:24 
GeneralRe: how to Use Java to get the database info by Internet Protocol Pin
XMafei5-Nov-12 13:58
memberXMafei5-Nov-12 13:58 
GeneralRe: how to Use Java to get the database info by Internet Protocol Pin
Richard MacCutchan5-Nov-12 22:13
mvpRichard MacCutchan5-Nov-12 22:13 
AnswerRe: how to Use Java to get the database info by Internet Protocol Pin
jschell5-Nov-12 8:33
memberjschell5-Nov-12 8:33 
Questionaddress book in java Pin
Shah Baba5-Nov-12 3:19
memberShah Baba5-Nov-12 3:19 
AnswerRe: address book in java Pin
Richard MacCutchan5-Nov-12 3:24
mvpRichard MacCutchan5-Nov-12 3:24 
Questionhi Pin
Md Abdullah Al Masud4-Nov-12 19:00
memberMd Abdullah Al Masud4-Nov-12 19:00 
Questionjava progarm Pin
hardikv923-Nov-12 22:45
memberhardikv923-Nov-12 22:45 
AnswerRe: java progarm Pin
Richard MacCutchan4-Nov-12 2:05
mvpRichard MacCutchan4-Nov-12 2:05 
AnswerRe: java progarm Pin
Gowtham Gutha15-Nov-12 1:15
memberGowtham Gutha15-Nov-12 1:15 
AnswerRe: java progarm Pin
Member 1111060025-Sep-14 16:52
memberMember 1111060025-Sep-14 16:52 
QuestionUpdating content of JtextField through jbutton in sql server 2005 using netbeans ide and jdk 1.6 Pin
Member 95656712-Nov-12 0:14
memberMember 95656712-Nov-12 0:14 
AnswerRe: Updating content of JtextField through jbutton in sql server 2005 using netbeans ide and jdk 1.6 Pin
Richard MacCutchan2-Nov-12 0:47
mvpRichard MacCutchan2-Nov-12 0:47 
Question[JAVA] web log file Pin
mariankral1-Nov-12 1:53
membermariankral1-Nov-12 1:53 
AnswerRe: [JAVA] web log file Pin
TorstenH.1-Nov-12 4:03
memberTorstenH.1-Nov-12 4:03 
Questionquestion Pin
dina rajab28-Oct-12 0:14
memberdina rajab28-Oct-12 0:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 23 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid