Remove border from HTML portlet
Hii,
When i am adding HTML portlet then a border is coming automatically. How to remove this border.
Hi,
The Rendering of the Portlet depends on the Region too - you can have a look at the "Edit Defaults" ( the Pencil Icon ) link for the Region where the Portlet is located. You can uncheck the " Show Portlet Borders " ( or, even " Show Portlet Headers " ).
Regards,
Sandeep
Similar Messages
-
* This is a crosspost, hope you don't mind. The earlier post I made was in the wrong forum and in the wrong thread.. *
I'm trying to remove the border from a bunch of JButtons.
My code adds custom actions to a custom JToolbar. The code responsible for this looks like this: JButton button = this.add(action);
//button.setBorder(new EmptyBorder(1, 2, 1, 2));
button.setBorder(null);I've tried both lines, and both work and don't work at the same time. In one panel it works but in five others it doesn't. The only difference I see between these two groups is that the panel that works uses a GroupLayout and the other panels use a BorderLayout.
Also, I'm trying to create an onMouseOver effect similar (well, exactely the same actually) as is used in Eclipse. When the users mouse hover over the button the button should be given a border, when it is not the border should be gone.
Any help on these issues would be appreciated,
JurgenThis might also help if you want to make a button out of a Componet
package tjacobs.ui.drag;
import java.awt.Color;
import java.awt.Component;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JFrame;
import javax.swing.JPanel;
import tjacobs.ui.swing_ex.JLabel;
import tjacobs.ui.util.RandomColor;
public class Buttonize extends MouseAdapter {
private Component c;
private Action a;
private static int sNumClicks = 2;
private int numClicks;
private boolean showClicks = false;
private Buttonize(Component c, Action a) {
this.c = c;
this.a = a;
numClicks = sNumClicks;
c.addMouseListener(this);
* Main interface to Buttonize. Makes a component double-clickable
* @param c Component to listen for clicks on. Not null
* @param a Action to be run when the click count is hit. Not null
* @return
public static Buttonize MakeButton(Component c, Action a) {
if (c == null || a == null) throw new IllegalArgumentException("Invalid Parameters");
Buttonize b = new Buttonize(c, a);
return b;
public void mouseClicked(MouseEvent me) {
if (TEST) System.out.println("clicked");
if (me.getClickCount() % numClicks == 0) {
int modifiers = me.getModifiers() | me.getModifiersEx();
//if (ev == null) {
//Object source, int id, String command, long when, int modifiers
Component src = (me.getSource() instanceof Component) ? (Component)me.getSource() : c;
ActionEvent ev = new ActionEvent(me.getSource(), me.getID(), src.getName(), me.getWhen(), modifiers);
a.actionPerformed(ev);
private static final boolean TEST = false;
public void mousePressed(MouseEvent me) {
if (TEST)
System.out.println("pressed" + me.getPoint());
if (showClicks) {
Component c = me.getSource() instanceof Component ? (Component) me.getSource() : this.c;
Graphics g = c.getGraphics();
g.setXORMode(Color.BLACK);
c.paint(g);
public void mouseReleased(MouseEvent me) {
if (TEST) System.out.println("released" + me.getPoint());
if (showClicks) {
Component c = me.getSource() instanceof Component ? (Component) me.getSource() : this.c;
c.repaint();
public void setClicks(int clicks) {
numClicks = clicks;
public int getClicks() {
return numClicks;
public static void setDefaultClicks(int clicks) {
sNumClicks = clicks;
public static int getDefaultClicks() {
return sNumClicks;
public void setShowClicks(boolean b) {
showClicks = b;
public boolean getShowClicks() {
return showClicks;
public static void main(String[] args) {
// TODO Auto-generated method stub
JLabel hic = new JLabel("Hic"), haec = new JLabel("Haec"), hoc = new JLabel("Hoc");
Action a = new AbstractAction() {
public void actionPerformed(ActionEvent ae) {
System.out.println(ae.getActionCommand());
RandomColor rc = new RandomColor();
Color c = rc.getRandomROYGBV();
((JLabel)ae.getSource()).setForeground(c);
JPanel jp = new JPanel(new FlowLayout());
hic.setName("Hic");
haec.setName("Haec");
hoc.setName("Hoc");
jp.add(hic);
jp.add(haec);
jp.add(hoc);
MakeButton(hic, a);
Buttonize b = MakeButton(haec, a);
b.setShowClicks(true);
//MakeButton(hoc, a);
hoc.addMouseListener(b);
JFrame jf = new JFrame("Buttonize Test");
jf.setContentPane(jp);
jf.setBounds(100,100,200,100);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.setVisible(true);
} -
Remove border from last item in ul, li?
Hello! I am using this css style for a list.
ul.listright { border-left:1px solid #EDEDED; padding-top:4px; }
ul.listright li { border-bottom:1px solid #D9D9D9; margin:0 0 -1px; padding:1.1em 0; }
I am trying to remove the border from the li on the bottom. I tried:
ul.listright li last { border-bottom:medium none; }
..but that didn't do anything. What am I doing wrong?nemci7v wrote:
Hello! I am using this css style for a list.
ul.listright { border-left:1px solid #EDEDED; padding-top:4px; }
ul.listright li { border-bottom:1px solid #D9D9D9; margin:0 0 -1px; padding:1.1em 0; }
I am trying to remove the border from the li on the bottom. I tried:
ul.listright li last { border-bottom:medium none; }
..but that didn't do anything. What am I doing wrong?
In cases where you need to remove the border on one element its faster and simpler to just go into code view and use some inline css styling as below:
<ul class="listright">
<li>Some text</li>
<li>Some text</li>
<li style="border: none;">Some text</li>
</ul> -
Removing Border from a JtextField
Hi all
how do i remove the border surrounding the JTExtfield in my applet (using jdk1.3)
Thank YouA brief browsing of the Java documentation (which I always keep close at hand) indicates that JComponent has the setBorder() method. A website mentioned in the setBorder part gives this example (I haven't tested it):
nameOfTextField.setBorder(BorderFactory.createEmptyBorder());Here is the site I extracted it from:
http://java.sun.com/docs/books/tutorial/uiswing/misc/border.html -
Remove filter from Html Form Web part
Hi,
I've created a HTML form web part and connected it to a document library web part. It filters fine and as expected, but the only way I found to remove the filter is to reload the entire page. As I have several html form web parts on the page, filtering on
different columns, that is a quite unsatisfactory method. Isn't there a value I can pass to the connected web part that just means "any". I've tried to send empty strings or '*' or even '[everyone]' (for the modified by column) but nothing works.
Is there really no way?
Thanks!Hi,
For your issue, you can use the Text Filter Web Part. In the Text Filter Web Part, you can send empty strings to the connected web part which means "any":
For more information, you can have a look at the blog:
https://support.office.com/en-us/article/SharePoint-lists-VI-Exciting-ways-to-display-your-list-data-4f24f5a6-9a82-497e-8965-6b9f98e03a01
Best Regards,
Eric
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
TIP: Remove underline from HTML CFGRIDCOLUMN HREF
It took me almost all of yesterday to find the solution on
how the remove the underline in HTML CFGRID / CFGRIDCOLUMN with an
HREF
Before the CFGRID definition add this new style for each
column where you don't want the underline appearing
<STYLE>
<!--
.x-grid-col-3 {text-decoration:none !important;}
.x-grid-col-4 {text-decoration:none !important;}
-->
</STYLE>Thank you so much, Scott for putting me on the right lines here.
I've been putting up with underlined href links in my cfgrids for years now and finally snapped today. After much hunting on the Web and coming across many, many people who are frustrated by this issue, I found your solution in the rather obvious place to check first.
Based on your solution, I tried
.x-grid-col div {text-decoration:none !important;}
in a separate CSS stylesheet, and that worked just great for all columns in the grid.
Hussah! -
Need to remove border from stock image...
I am very very new to using Illustrator10 and I have a stock image that I bought online and am trying to make some adjustments to it. I've been successful so far with my changes except for a thin black line border that was around the image when I opened it in Illustrator. I can't even seem to click on it or highlight it at all and therefore I have no idea how to delete it. Any help would be greatly appreciate! Thanks!
The artwork has no printable border.
What you are seeing is the artboard bounds. You can prove it to yourself by printing the document (print to PDF if you don't want to waste paper) or by changing the artboard size via File | Document Setup.
The artwork does happen to have a rectangle that exactly coincides with the artboard size. It provides the taupish background. If you select it and look at the appearance palette, you'll see it has a fill but no stroke.
{Beaten to the punch by Larry.} -
How do I remove header from FORM portlet?
I am using a daymanic page to open several portlets. I got everything working except for...
I am opening a form as a portlet and cannot get rid of the srupid header with the Oracle logo.
ROTARY.wwv_component_control.run_as_portlet(p_module_id =>
1861048119); works great but shows the header
ROTARY.wwv_component_control.run_as_portlet(p_module_id =>
1861048119,p_show_header =>'No');
gives me the error:
ORA-06550: line 1, column 13704:
PLS-00306: wrong number or types of arguments in call to 'RUN_AS_PORTLET'
what is the correct syntax!
sand where would I find it anyway!Hi,
This is a bug and has been fixed. It will be available with 30984.
Thanks,
Sharmila -
Hi there!
I'm searching for a method to remove Tags from HTML (using HTMLEditorKit, HTMLDocument ...).
My current code is as follows:
// first get the whole paragraph
int iCaretPos = tpMyTextPane.getCaretPosition();
Object oAttrib;
HTMLDocument.BlockElement oElem = (HTMLDocument.BlockElement)oMyDocument.getParagraphElement(iCaretPos);
AttributeSet oAttribs;
SimpleAttributeSet oNewAttribs;
int iParaStart = oElem.getStartOffset();
int iParaEnd = oElem.getEndOffset();
tpMyTextPane.select(iParaStart, iParaEnd);
// the following only fetches the Tags that are valid for the whole paragraph!!!!!
oAttribs = tpMyTextPane.getCharacterAttributes();
oNewAttribs = new SimpleAttributeSet(oAttribs);
if(iParaEnd - iParaStart > 0)
// now analyse the attributes (remove all paragraph-tags)
for(int iIndex = 0; iIndex < oaOurFormatTags.length; iIndex++)
oNewAttribs.removeAttribute(oaOurFormatTags[iIndex]);
if(iParaEnd - iParaStart > 0)
oMyDocument.setCharacterAttributes(iParaStart, iParaEnd - iParaStart, oNewAttribs, true);
tpMyTextPane.setCaretPosition(iCaretPos);
tpMyTextPane.requestFocus();
tpMyTextPane.repaint();
}This code works for me, but all Tags of the selected paragraph are removed. That means:
<P><H1>This is a <B>test</B> text<H2></P>
will be converted to:
<P>This is a test text</P>
but I want it to be converted to:
<P>This is a <B>test</B> text</P>
Is there any other method to remove specific Tags (<H1>, ... <H6>) without touching other tags????In February I wrote a feature request about this. Today it has been accepted to the bug database. Please make your vote:
http://developer.java.sun.com/developer/bugParade/bugs/4760082.html -
Trim filter for iPlanet - whitespace removing from html
Hi,
I've just published my Trim Filter NSAPI plugin for Sun One Web Server/iPlanet
It is a plugin/filter which removes whitespaces from HTML code. Its LGPL and it can be found here: http://www.thrull.com/iplanet/
Feel free to test it :-)
BR,
IgorCool, thanks for sharing it!
I took a quick look, and I think I spotted a bug in the write filter method: /* workaround for a bug? in iPlanet, when returning empty content */
if (!out_size && amount) {
rv = net_write(layer->lower, NON_EMPTY_STRING, 1);
out_size = 1;
} else {
rv = net_write(layer->lower, (const char *)buffer, out_size);
return rv;According to the NSAPI Programmer's Guide (http://docs.sun.com/source/817-6252/npgnsapi.html#wp1004627), the write filter method should return the number of bytes consumed on success. It looks like your write filter method is returning the number of bytes written instead. Perhaps that's the reason you needed that work around? -
Need to remove the "customize" from a portlet
Hi Everyone,
Hoping someone can help with this...
I would like to remove the "customize" link from the portlet header. There are no user servicable parts inside when the portlet appears, it has essentially all it needs to function properly.
Can I make a PL/SQL call before the page is rendered to disable this?
Is there an example somewhere I have not yet found?I'm sorry most of these options won't help.
1) Header will disappear altogether, Including title.
2) The same problem
3) If you don't give Edit privileges to a folder you still will be able to customize the portlet.
4) Can work, but it is very time consuming to create a portlet with the same functionality as the folder portlet. I heard that this will be solved anyway in future releases.
Another option is giving the header (customize) text the same color as the background (using page style). But this option also has disadvantages.
a. You will still be able to click on customize (although you cannot see the text)
b. In some browser you still see the underline.
Regards,
Bram
null -
How to remove the border from an AWT Component (specifically a ScrollPane)
I've been trying to remove the border from an AWT ScrollPane, but having no luck.
I've tried setting the bounds on the ScrollPane to get rid of the border:
ScrollPane scrollPane = new ScrollPane();
scrollPane.setBounds(-2, -2, getSize().width+4, getSize().height+4);
I've also tried overwriting the paint method of the ScrollPane but it didn't draw anything:
private class CustomScrollPane extends ScrollPane
public void paint(Graphics p_g)
super.paint(p_g);
Graphics2D g2 = (Graphics2D)p_g.create();
g2.setColor(Color.MAGENTA); //tried magenta so I could easily see it
g2.drawLine(0, 0, 0, getSize().width);
Is there anything else I should try? (I wish AWT components had a setBorder method)Is there anything else I should try? (I wish AWT components had a setBorder method)Actually this probably isn't possible. One of the main drawbacks of AWT was that since everything is connected to peers, you can't actually draw over or customize the view of your AWT component.
The only recommendation I might make would be that you could try creating Canvases around your ScrollPanel that draw over the border -
Testing execution of 6i reports from a HTML portlet
How can I execute an Oracle 6i report from a portal30 HTML portlet. The HTML command looks something like this "C:/reports_6i_runtime.exe userid=user_account/password@connect_string H:/report_6i.rep" I get the message "page cannot be displayed".
When I create a shortcut on the desktop and call the shortcut with this command "C:\Desktop\report_6i.rep" it will execute. This is not an option.<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Leung ([email protected]):
It looks like you are trying to call a URL on your local machine. If this is the case, you may need to format your URL as:
file://c|/blah/
or something to that effect. I believe it needs to be a proper URL if you are calling it from your local filesystem.
You may get a better response from the Reports forum.
<HR></BLOCKQUOTE>
I did try using "file://" in my HTML, with the same results.
I was able to get the reports runtime to come up when I executed it from the windows run command line, but it did not accept either parameter I passed.
The command did not run at all from the browser.
null -
Removing blue border from rollover image in cs6
Have 14 sliced images. But only the images created for rollover have the blue border when I reveiw in the browser. Not sure how to remove them in Dreamweaver CS6
Message was edited by: MrBotisJust to clarify, to remove borders from linked images, use this in your CSS:
a img }
border:none;
Ouline serves a different purpose. It's usually dotted and displays when the link is in focus, as when people tab through links with their keyboard.
Jon, I know you know this.
Nancy O. -
Remove red border from required fields
Is there a way to remove the red border from required fields.?
No, not the same error message that Acrobat issues. You'll have to do your own using JavaScript. The script would check each of the required fields and alert the user if anything was wrong, but you'd have to set up your own "Print" button on the form and convince your users to use it. But they can always choose not to use it and orint without going through the checking process.
Even though there is a Document Will Print event that you can attach code to, there is no way to prevent printing in the event.
Maybe you are looking for
-
Product Configurator tab missing in Sales Order in ICWC for complaints
Hello Our environment - ECC 6.0 & CRM 6.0 We have variant config items created in ECC & downloaded to CRM via Knowledgebase & runtime versions. The customer service reps place the order via ICWC. Till now only standard sales orders were being created
-
Long Number being displayed when people receive Texts
People who have been receiving texts are getting a long string of numbers, like 13 numbers?? what is this?? how can this issue be resolved?
-
Hi, We have an AIR application that we'd love to release on the Mac App Store. However, due to Apple's strict guidelines on installers, it seems that AIR apps would not be allowed. We we need is something in the vein of the Flash Packager for iPhone,
-
IPod Classic will not sync to iTunes 11.0.4.
I have an iPod Classic 160Gb. After connecting to itunes, my ipod is recognized but it will not sync any of my new songs that i just bought. I tried factory reset and now none of my songs will sync to my iPod Classic. Apperently this has been a probl
-
Hi All, We have a user who currently has a box (serial key) version of Adobe CS6 installed on his machine. We now have a number of cloud licenses available and I want to move hm to a cloud license so that we can install the apps available from the cl