customizeAuthorPopUpMenu
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 140
- Joined: Fri Feb 28, 2020 4:02 pm
customizeAuthorPopUpMenu
Post by vishwavaranasi »
Hello Team , We have our oxygen plugin implemented with Menu , and the overridden as
@Override
public void customizeAuthorPopUpMenu(JPopupMenu popup,
AuthorAccess authorAccess) {
// Add our custom action
popup.add(CustomAction);
}
for Custom Menu , how do i change the Background color of Menu option on select for example
on select "Welcome" by default the bg color is blue , wanted to change that , please help me here.
and also for javax swing components how can we handle the style sheets ? as like web apps , i Know this is something related to java , was just checking is there anything samples already that oxygenxml has?
Thanks,
vishwa
@Override
public void customizeAuthorPopUpMenu(JPopupMenu popup,
AuthorAccess authorAccess) {
// Add our custom action
popup.add(CustomAction);
}
for Custom Menu , how do i change the Background color of Menu option on select for example
- image.png (1.24 KiB) Viewed 662 times
and also for javax swing components how can we handle the style sheets ? as like web apps , i Know this is something related to java , was just checking is there anything samples already that oxygenxml has?
Thanks,
vishwa
Thanks,
vishwa
vishwa
Re: customizeAuthorPopUpMenu
Hi,
The Oxygen desktop's user interface is built using Java Swing components, so it cannot be customized as a web page using HTML and CSS.
Maybe what you want can be done something like this:
but I would advise you against customizing the colors for menu items, Oxygen has multiple possible color schemes (see Preferences->"Appearance") and your custom chosen colors may not look good with a certain color theme, for example with our "Graphite" color scheme.
Regards,
Radu
The Oxygen desktop's user interface is built using Java Swing components, so it cannot be customized as a web page using HTML and CSS.
Maybe what you want can be done something like this:
Code: Select all
public void customizeAuthorPopUpMenu(JPopupMenu popUp, AuthorAccess authorAccess) {
JMenuItem menuItem = new JMenuItem(CustomAction);
menuItem.setOpaque(true);
menuItem.setBackground(Color.RED);
menuItem.setForeground(Color.WHITE);
popUp.add(menuItem);
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service