JTabbedPane how to add some logo in the Tabs area?
Hello,
I was wondering if there is any way of adding some logo or any icon at the right side of the tabs area without that the JTabbedPane has all it's horizontal size full of tabs..
| TAB1_| | __TAB2__| TAB3_| |__TAB4____| __________________LOGO_____
|..................................................................................................................................|
|..................................................................................................................................|
|..................................................................................................................................|
|..................................................................................................................................|
|_________________________________________________________________|
If you put the tabbed pane on a panel, the panel will show through the right side. So if you put some graphics on the panel, it would show.import java.awt.*;
import javax.swing.*;
public class Test extends JFrame {
public Test() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container content = getContentPane();
content.add(new JLabel("Top"), BorderLayout.NORTH);
content.add(new JLabel("Bottom"), BorderLayout.SOUTH);
JPanel mainPanel = new JPanel(new BorderLayout());
mainPanel.setBackground(Color.pink);
JTabbedPane jtp = new JTabbedPane();
mainPanel.add(jtp, BorderLayout.CENTER);
content.add(mainPanel, BorderLayout.CENTER);
jtp.add("One",new JPanel());
jtp.add("Two",new JPanel());
jtp.add("Three",new JPanel());
setSize(300, 275);
setVisible(true);
public static void main(String args[]) { new Test(); }
}
Similar Messages
-
How to add some days to the current system date
can anyone help how to add some days to the current date i.e if today is 3-12-2007 and if v add 15 more days then the output should be 18-12-2007
RajeshChandan wrote:
First of all thanks a lot ,and coming to the question i dont mean to change the sysdate instead i want to write a prg. where after entering the current date it should effect with the no.of days that i have given but not the system date .if u can answer please reply for thisAh, I see. In that case, you can use an instance of GregorianCalendar and use it's add(...) method to add days, months, years etc. to it.
http://java.sun.com/javase/6/docs/api/java/util/GregorianCalendar.html
Good luck. -
Pages 5.2.2 - how to add a logo in the page header
Hi, how can I add a logo in the page header of each page?!
seems header and footer only supports text and automated page numbering only...
I need some advise on this one
thanksAdd an image to any page in the section, then drag it where you want it to appear on each page.
Reduce the opacity using the slider in the Style pane of the Format inspector to change the object’s transparency.
Choose Arrange > Section Masters > Move Object to Section Master (from the Arrange menu at the top of your computer screen). -
How can add some text on the image
I have images in the gif format.
How can I add some text in specified point on the image?
Fpor example, by using Intermedia plugins?We do not support this functionality. I suspect you are talking about watermarking?
I would suggest you send a message to [email protected] , the product manager for interMedia and describe your application. This would be helpful in defining future requirements. He may also know of partners that can supply this technology.
You can add text to an image using JAI or some other packages before the image goes into the database, or when it goes out.
Larry -
How to add an Image in the Tab strip of a Tab
Hi,
I am trying to add an image to the Tabstrip of a Tab UI element. I have declared a context variable of type string and also added the gif file into the \src\mimes\Components\ folder.
How can I assign the context variable to point to this Image? I am not sure how to go about binding the Image.Source property of the context. Will be of great help if someone can throw more light in this area.
Thanks for all your help in advance.
Best regards,
DivyaHi Divya,
you could do for example in the wdDoInit() of the view
wdContext.currentContextElement().setPicture("picture.gif");
Now you assign this context variable to the Tab using the Tab_header's imageSource-Property. When you click on its value column, you see a button with three dots on it. If you click on this button, you will get all context nodes and attributes for this View. Usable variables are clearly marked, you now choose the one named Picture or what ever name you prefer to use. But it must correspond to the one set in the wdDoInit.
I think setting a picture (not necessarily for the tab-page) is done in one of the excellent tutorials. If you are a newcomer I strongly recommend doing some of the tutorials. I have learned tremendously from them.
Hope this helped
Harald -
How to add our logo to the top of our portal
Is there an EASY way to add our corporate logo to our portal?
Thanks!Hi Patrick,
I believe I have (an idea).
You'll have to use the (System Adminstration -> Portal Display ->) Desktop & Display Rules.
You might like to check out those links:
https://media.sdn.sap.com//ebooks/ep6/addons/exercises/Themes.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/portal customization.abst
Hope this helps/solves your problem,
Robert -
How do I add a tiny logo to the tab in the browser?
How do I add a tiny logo to the tab in the browser?
Hello,
You're most possibly referring to "Favicons", and they can be added in a Muse site from the "File -> Site Properties -> Layout" section. Check this screenshot: http://jingsite.businesscatalyst.com/jing/2013-09-05_2332.png
Hope this helps.
Cheers
Parikshit -
I want to add some fields in the report of FBL5N, Can anybody tell me how ?
I want to add some fields in the report of FBL5N, Can anybody tell me how to do it?
The fields are sales order, delivery, order quantity, net value and others.
I can only find the shipment number in FI document.
Thank you very much.Dear Jie,
Billing document number can be displayed in customer line item display
(FBL5N) and not in G/L line item display (FBL3N).
The value of VBELN is saved in table BSEG. So, this means, you
have to define the field BSEG-VBELN as a special field in table
T021S. Then you can use it in FBL3N, because then the report looks
directly in BSEG-VBELN.
For further information,please read the SAP note 207436. You don't have to
implement the coding corrections, if they are already in your system
with the hotpackage. But it explains very detailed the system
behaviour. The example in the note with field EBELN could be
replicated on your field VBELN.
About the MEINS field, please refer to 1-U_MEINS (bseg-meins field).
The SAP note 215798 may also be helpful.
Mauri -
How to add a page in the SAP Scripts
Hi All,
I want to know how to add a page in the sap scripts. there is already sap script developed by some other person.
Now I have to add a page in front of that and have to add some more data.I added a page in page windows but thats not at all working.
Please help me out in this.
Thanks,
Praveennew page will create in sap scripts using new page command.
you have to set condition like after some number of records displayed in page new page has to be trigger.
ex:YOU HAVE SO MANY RECORDS FOR PRINTING BUT YOU WANT TO DISPLAY 100 RECORDS IN FIRST PAGE REMAINING IN SECOND PAGE LIKE THAT.
Here you can use NEW PAGE COMMAND .
IT IS OPPOSITE PURPOSE OF PROTECT AND ENDPOTECT.
Reward if useful. -
Add a logo to the header definition of an Interactive Report
Hi Folks.
Using Apex 3.1 and BI Publisher.
I am enabling an Interactive Report region to output to PDF & Excel.
Has anyone managed to add a logo to the Header/footer definition in the Print Attributes section?
Is it possible? The region definition does not understand simple HTML syntax.
If anyone would let me know if a) They've done it or b) It ain't possible that would be great.
Many thanks.
Dogfighter.Just reading through this thread. So perhaps a few comments might be helpful:
- Interactive report regions do currently not support Report Layouts, you're limited to the built-in generic layout and won't be able to include images
- You can add a button to your interactive report region page which could initiate the download of a report query, when doing this, you would get the result set of your report query not the interactive report region, so even if the queries are the same, you might have different filters applied to your interactive report
- You can in fact include static images in your RTF report layouts using the BI Publisher Desktop Word Plug-In and MS Word, so you can have logos etc in your PDF documents. But report layouts currently only work with report queries and classic report regions
- You can also include dynamic images in your PDF, e.g. based on images stored in a BLOB column, there's currently a character escaping issue causing some trouble with this, which will be fixed in 3.1.1, more on that once 3.1.1 is out (soon)
- the print server overwrite is designed to point to a different print server than the one configured for your APEX instance, not to point to a specific report. So if your instance has BI Publisher configured, but for a specific report you want to do some special rendering using your own code, you can write e.g. a JSP, Servlet, etc that's doing the rendering, and then point yout report to that URL
Hope this helps, we do plan to add support for report layout to interactive report regions in the next full release of Application Express
Regards,
Marc -
How to add some image in adobe muse
hi.. im just new in adobe muse .. im sorry for this very noob question.. i just want to ask how to add some image in adobe muse ?? with a link .. thanks
To add images press CTRL+D and then select the image and place it where you want.
To hyperlink it go to the top menu and there should be Hyperlink folowed by a box. Enter your URL to link in there.
You can also use the slideshow widget should you want to make a slideshow. -
How to add F4 help for the custom field of a custom table
Hi All,
How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
PROCESS ON VALUE-REQUEST.
FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
Thanks&Regards
maheshHi,
Create a subroutine under the event and call the following FM
1. Select all the related data into an itab, for ex i_kunnr
2. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'KUNNR'
PVALKEY = ' '
dynpprog = sy-repid
dynpnr = '1000'
dynprofield = <selection screen field>
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = <b>i_kunnr</b>
FIELD_TAB =
return_tab = < return table >
DYNPFLD_MAPPING =
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3 -
Rejection Applicant: How to add plain text to the mail E Mail Letter?
Dear All:
I'm working with a ECC6 version.
In transaction PB60, when we do the candidate rejection activity, the E Mail letter generates a mail with empty body text, and an attachment with the letter in PDF format. The letter is OK, but I would like to know how to add some plain text to this E Mail letter. An empty mail is not a good practise.
I searched across the forums and SAP documentation, but I could not find any clue.
I would appreciate any help regarding to this matter.
Best regards
JordiHere you go ! ( you need to create Text in t-code SO10 for ID = PAML " )
Two Default texts under ID = PAML :
*MAIL-APP-INTERVIEW *EN TEXT PAML SYSTEM
MAIL-APPLICANT EN TEXT PAML SYSTEM
Personnel Management->Applicant Activities->Mail Connection ->Create standard texts for mail connection
Create standard texts for mail connection
In this step you can create the standard texts to be used in mails.
Example
u2022 Request for return of applicant file
u2022 Notification of date of job interview
Requirements
u2022 You should have assigned a standard text to the activity.
u2022 You should also have set the variables which are to be used.
u2022 Finally, you should also have made the settings for supplying the variable with values.
Standard settings
The standard system contains two examples of standard texts. You can use these examples as references to help you create your own standard texts. The standard texts have the following names:
u2022 MAIL-APPLICANT (note on an applicant activity)
u2022 MAIL-APP-INTERVIEW (note on appointment for interview)
Please note that the standard texts are stored under text ID PAML.
Activities
Now create the standard texts you require under text ID PAML.
Further notes
Every mail is made up of a heading and contents. In the first line of the standard text you enter the heading of the mail and from the second line on, the contents.
The standard default settings for style and layout are used for mails.
The SAP System treats standard texts as application data. This is why there is no automatic connection to the transport system. If you want to copy texts from one client to another within the same system, please use the functions of the transaction to create the texts. If you want to send the texts to a different system, please enter the transport manually as follows:
PgmID Obj Objectname
R3TR TEXT TEXT,XYZ,PAML,E
| | | --- Language (e.g. E for English)
| | -
Text ID (e.g. PAML for standard mails)
| -
Text name (probably not XYZ)
Text object (TEXT ist fixed)
Good luck
Saquib Khan -
How do I add another movie to the project area to work on without it being attached to a previous project?
No. I have a number of items in the Event Library. I am trying to move some of them to the Project Library and when I do it attaches itself to the other project I have there.
-
How to hide some functions in the menu bar of flash paper
Do anyone know how to hide some functions in the menu bar of
flash paper? As I want to show a swf file(converted from pdf) on
the website without printing function. How can I do it?
Also, if possible, can anyone know how to hide all functions
on the menu bar except the logo of flash paper?
Thank you very much, it is very urgent.Here is an article about how to integrate flashPaper into
Director. It has most of the functions that can be executed on
flashPaper. Maybe it will help?
http://www.adobe.com/devnet/director/articles/flashpaper_in_director.html
and here is all his code
http://www.mediamacros.com/item/item-1006687373/
Note: it is for 1.01, but works with 2.0
Maybe you are looking for
-
Using an external hard drive with a 400mhz iMac slot loader
I need to upgrade my iMac to either Tiger or Leopard. I also need the capability to run Classic for a few programs. I know I need more memory which I will install. My question is about whether or not I can connect a 640GB MiniMax Desktop Hard Drive v
-
Got a new Macbook Pro today and I plugged in my WD external hard drive to backup with but it didn't allow me to backup. The problem is that now my computer won't show the drive in finder. I can see it in Disk Utility and cannot access it. Help?
-
Burning a slideshow from imovie to idvd doesn't work...Please help
Hello, I'm trying to burn a slideshow I created in imovie to DVD but it doesn't seem to work. Everytime I click on the burn icon in idvd it tells me to insert a blank DVD. Once i insert a blank dvd it spits it right out. I'm getting married on July 1
-
How can i add portlet programetically to a page
Hi I want to create a portlet that contains a list of my portlets so i can place this on a page(by default customization) and all the authorized users can just click on items of this portlet to add this item to their view of the page. This is just to
-
How to Correct and Re-send new idoc # in WE19
Hi Expert Can you please give me the steps to correct and re-send (new idoc) in WE19. Here is the situation: Outbound ASN failed in EDI for having special char in field ARKTX(E1EDK08-E1EDP07-E1EDP09-ARKTX). Here I just need to remove special characte