Add new type of component
I want the user to be able to select which type of component gets added to each new tab in a JTabbedPane
for example, if the user opted to have a JTextArea in each new Tab
we could use
tabbedPane.add("new Tab", new JTextArea());
//But what if the user doesnt want a JTextArea they actually want a JButton, so this doesnt work
//or
JComponent newTabComponent = new JTextArea();
tabbedPane.add("new Tab",newTabComponent);
//this doesnt work as all swing components can only be child to one parent, so the op wont be able to add more than one tabany ideas how to implement this feature , thanks in advance
Calypso
found out how to do it, heres an example
JComponent c;
try {
c = tabbedPane.getNewTabComponent().getClass().newInstance();
c.setPreferredSize(tabbedPane.getPreferredSize());
tabbedPane.add(c);
} catch (InstantiationException ex) {
System.err.println("IE "+ex);
} catch (IllegalAccessException ex) {
System.err.println("IAE "+ex);
} catch (NullPointerException ex){
System.err.println("NPE "+ex);
}
Similar Messages
-
Add new type phones CUCM 4.2
Hello, i have work to buy new phones in organization. But 7900 not selling now, how i see. How i can add new types phones to my CUCM.
Thanks!Hi Dmitry,
The "G" in the suffix of these models (like 7941G) stands for Global. The
"GE" in the 7941G-GE stands for "Gigabit ethernet" as it is a 10/100/1000
model.
Keep in mind that there are 7900 models like the 7945G/65G and
7942G/62G that are not End of Sale or End of Life and can be added to
CCM 4.2(3) with the installation of a Device Pack like the one shown below;
Firmware Versions
Cisco Unified CallManager Device Package 4.2.3(60.0) includes the following firmware versions:
Firmware
4.2(3)Devpack 60
Analog Access WS-X6624
A00204000013 / A0034322
Digital Access WS-X6608
D00404000032 / D0054322
Conference Bridge WS-X6608
C00104000003 / C002E031
Media Termination Point WS-X6608
M00104000006 / M002E031
ATA18X
ATA030204SCCP090202A
7915-12 Button Extension Module
B015-1-0-3
7915-24 Button Extension Module
B015-1-0-3
7916-12 Button Extension Module
B016-1-0-3
7916-24 Button Extension Module
B016-1-0-3
IP Phone 7902g
CP7902080002SCCP060817A
IP Phone 7905g
CP7905080003SCCP070409A
IP Phone 7906G/11
SCCP11.8-4-4S
IP Phone 7912g
CP7912080003SCCP070409A
IP Phone 7920
cmterm_7920.4.0-03-02
IP Phone 7921g
CP7921G-1.3.2
P Phone 7925g
CP7925G-1.3.2
IP Phone 7935
P00503021900
IP Phone 7936
cmterm_7936.3-3-20-0
IP Phone 7937
apps37sccp.1-3-3-0
IP Phone 7941/7961
SCCP41.8-4-4S
IP Phone 7941G/7961G
SCCP41.8-4-4S
IP Phone 7942/7962
SCCP42.8-4-4S
IP Phone 7945/7965
SCCP45.8-4-4S
IP Phone 7970/7971
SCCP70.8-4-4S
IP Phone 7975
SCCP75.8-4-4S
IP Phone 7985
cmterm_7985.4-1-7-0
IP Phone 7960
P00308010100
IP Phone 7940
P00308010100
7914 14-Button Line Expansion Module
S00105000400
http://www.cisco.com/web/software/282074299/26745/ciscocm.4-2-3-DevPack-60_readme.html
Available via this path;
Downloads Home
Products
Voice and Unified Communications
IP Telephony
Unified Communications Platform
Cisco Unified Communications Manager (CallManager)
Cisco Unified CallManager Version 4.2
Unified Communications Manager/CallManager Device Packages-4.2(3.60)
Cheers!
Rob
"Clocks go slow in a place of work
Minutes drag and the hours jerk"
-The Clash -
How to add new links to a page
Hello Community
In Sharepoint 2013 Server can you create:
A Link in the left navigtion bar or Quick Launch
when clicked it can open a new page and on that page there is an “Add New” type of
button.
Then on that page you can add as many links as the page will allow, each
of those links can contain a url
Thank you
ShabeautHi,
To add a new link on the left nav:
You can go to site settings> navigation> add a link under "current navigation".
For the second requirement:
You can create a "links" list and add it to that second page. This way you can have that "Add Links" option and add links.
Thanks,
norasampang -
How can i add a new regional map component in xcelsius 2008 ?
hi,
we need to add a new regional map component in xcelsius 2008 , how can i do it ?
Where do I find any examples ?
ThanksYou might want to check out the Any Map Component found on the Marketplace: http://www.ondemand.com/information/xcelsius.asp. Then click on Visit the Marketplace to view all add-ons.
This is one of the cool components that the users created using the Xcelsius 2008 Component SDK. -
I need to add new data type like SDO_GEOMETRY in spatial Oracle.
I don't mean the User-Defined Datatype but new datatype imbed in the database.
It might be written in C++ or Java but I do not know how.
Any hints and help will be appreciated. Thanks,> It is not simply defining new VARCHAR3.
I will compare embedded new built-in data type and UDT as part of my research.
What I really meant was what do you want from your new type that a user-defined object can't give you? (Apart from the obvious shortcomings of Oracle object types being addressed, but that could take a while.) You specifically said "I don't mean the User-Defined Datatype but new datatype imbedded in the database" and I wondered what you meant by that. -
How to add new row in KL02 trx - Activity type control data
Hi guys.
I am not a FI-CO consultant, but I want to add a row since KL02 transaction within a cost center, with a new fiscal year. When you access KL02 (change activity type), you set the activity type, then press Master Data and the basic screen appears. If you press the Display planning control button, you will see the "Display Activity Type Control Data" List. I wanna add a row for a specific cost center here, because the cost center I refer has not 2011 as fiscal year. I tried to use, since basic screen of KL02, use the Change planning control button, but when I set my cost center and 2011 as fiscal year, the Save button is inactive. Furthermore, I tried to press the Period screen and a message appeared "No data has been entered yet". So I dont know how to add one row for a cost center in the Planning control (Activity type control data) list of the KL02 transaction, specifically for an activity type. Do you know? Thanks in advanceHi,
The list of cost centers in which the activity type is planned is given in KL02 under planning data. In order to add a new cost center to this, you need to enter the activity type in transaction KP26 for a particular year.
Goto transaction KP26
Give version - 0
from period 1 to 12
year - 2011
cost center - mention the cost center
Activity type - mention activity type
goto overview screen F5 and add the plan price for the activity in the cost center. This step will automatically add new row in the activity type control data.
Hope this helps.
Thanks,
Ram -
Need to add new condition type using BAPI_SALESORDER_CHANGE
Hi all,
I am using BAPI_SALESORDER_CHANGE to add new condition type for an order item.
I am able to add it, but problem here is, that i want that condition type to be manually changable. Here, in BAPI, after execution, condition type field becomes disable.
My code is as follows:
MOVE 'B' TO wa_logic-pricing.
MOVE 'X' TO wa_logic-cond_handl.
wa_cond-itm_number = wa_vbap-posnr.
* wa_cond-cond_st_no = it_konv1-stunr.
* wa_cond-cond_count = it_konv1-zaehk.
wa_cond-cond_type = it_discount-kschl.
wa_cond-CONDORIGIN = 'C'.
APPEND wa_cond TO i_cond.
CLEAR: wa_cond.
wa_condx-itm_number = wa_vbap-posnr.
* wa_condx-cond_st_no = it_konv1-stunr.
* wa_condx-cond_count = it_konv1-zaehk.
wa_condx-cond_type = it_discount-kschl.
wa_condx-updateflag = 'I'.
wa_condx-COND_VALUE = 'X'.
APPEND wa_condx TO i_condx.
CLEAR: wa_condx.
FORM f_update_order .
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = salesdocument
order_header_in = wa_headerdata
order_header_inx = wa_headerdatax
logic_switch = wa_logic
TABLES
return = it_return
order_item_in = i_itemdata
order_item_inx = i_itemdatax
conditions_in = i_cond
conditions_inx = i_condx.
IF NOT it_return[] IS INITIAL.
PERFORM f_commit_or_rollback.
ENDIF.
ENDFORM.
Please let me know, if it could be achievable.
Best regards,
Meena
Moderator Message: Corrected the code tags. You need to use flower brackets.
Edited by: kishan P on Aug 25, 2010 6:04 PMHi,
This is the demo code i am writing:
Even Change manual entry field in BAPI did not helped me.
[code]REPORT ZTESTM1.
data: l_knumv type knumv.
DATA: it_return TYPE STANDARD TABLE OF bapiret2, "Internal table for t_txt_ret
wa_return type bapiret2.
data: begin of it_konv occurs 0.
include structure konv.
data: end of it_konv.
data: logic_switch type standard table of BAPISDLS,
wa_logic type BAPISDLS.
data:itemdata type STANDARD TABLE OF BAPISDITM,
wa_item type BAPISDITM.
data : salesorder type BAPIVBELN-VBELN.
data:itemdatax type STANDARD TABLE OF BAPISDITMx,
wa_itemx type BAPISDITMx.
data: wa_header type BAPISDH1,
wa_headerx type BAPISDH1X.
data: i_cond type STANDARD TABLE OF BAPICOND,
wa_cond type BAPICOND.
data: i_condx type STANDARD TABLE OF BAPICONDX,
wa_condx type BAPICONDX.
move '0060008601' to salesorder.
move '000010' TO wa_item-itm_number.
append wa_item to itemdata.
move ' ' to wa_header-BILL_BLOCK.
move 'U' to wa_headerx-UPDATEFLAG.
move 'X' to wa_headerx-BILL_BLOCK.
MOVE: 'U' to wa_itemx-UPDATEFLAG,
'000010' TO wa_itemx-itm_number.
append wa_itemx to itemdatax.
move 'B' to wa_logic-PRICING.
move 'X' to wa_logic-COND_HANDL.
select single knumv from vbak into l_knumv where vbeln = '0060008601' .
select * from konv into table it_konv where knumv = l_knumv and kposn = '000010'.
wa_cond-ITM_NUMBER = it_konv-kposn.
wa_cond-cond_type = 'Z550'.
wa_cond-CONDCHAMAN = 'X'.
append wa_cond to i_cond.
clear: wa_cond.
wa_condx-ITM_NUMBER = it_konv-kposn.
wa_condx-COND_TYPE = 'Z550'.
wa_condx-UPDATEFLAG = 'L'.
append wa_condx to i_condx.
clear: wa_condx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = salesorder
ORDER_HEADER_IN = wa_header
order_header_inx = wa_headerx
LOGIC_SWITCH = wa_logic
tables
return = it_return
ORDER_ITEM_IN = itemdata
ORDER_ITEM_INX = itemdatax
CONDITIONS_IN = i_cond
CONDITIONS_INX = i_condx
EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.[code]
Thank you.
Meena -
Add a new type of object links (transaction CV02N) - by material group .
Hi experts .
How can I create an additional screen for new tab by material group
in DMS System ?
I have a requirement : 1. Add a new type of object links in transaction CV02N
by material group(V023-MATKL) .
Today we use 2 existing options : by Equipment and material .
2. Save and display data .
We did the following steps :
1 . In customizing for Document Management :
a. Maintained a key fields :
table : V023 , tran.code : OMSF , field name : MATKL .
b. Maintained screen object link for V023 .
Our problem is screen number . we used at existing screen - 500 for user exit.
So we get a new tab with material instead of material group .
How I can create a new screen with field material group
for set this screen number in step b ?
May be I need the access key for FUNCTION GROUP CV130
and create this screen by myself ? .
c. Defined Object links for special document type .
2 . Created in se19 at implementation of DOCUMENT_OBJ
with defined filter : V023 .
Regards Helena .Hi Nuno,
how did you solve this problem?
tks -
To add new file type in SharePoint
Hi,
I am trying to add new file type for sharepoint site like MSWord, PDF etc.,
Are there any ways to create new file types in SharePoint? My requirement is to create a file type for AutoCAD drawings (.dwg format).
Please note, we are using SharePoint 2007 version!
ThanksBrowse to the Central Admin site
Select the Operations tab
Under the Security Configuration section, click the link for
Blocked file types
Select the Web Application that you would like to modify from the drop down list
Each blocked file extension displayed in the list is blocked by SharePoint. To enable the blocked file extension, simply remove it from the list.
Check with your type and if its there unblock it.
Regards, Dharnendra Shah "strong belief is the only way to success" -
Add new field in Work Order Component Tab
Dear Experts,
Really need your advice to solve my client requirement related to Work Order. The requirement is to put status code and estimated date of returned material in WO Component Tab.
And because we almost use all of fields in Component. So i'm trying to know, is there any configuration (in SPRO - if any) by adding new custom fields in Work Order (WO) Component Tab?.
Or is there any enhancement (EXIT) to add new fields in WO?
Please advice.
Thanks.
LN.Hi Anthyodaya,
Try this screensexit not sure if this is what you are looking for
EXIT_SAPMV45A_001( Take help of ABAP for this)
Hope this helps.
Thanks and Regards
Rohit
this Question is raised by you twice..please close one. -
Hi,
I'm trying to add new font types to SAP GUI to be available to edit smartforms and mail forms, but, after I do the upload in SAP system (by SE73 transaction)of ARIAL font, when I associate it to a smartstyle, what really appears with ARIAL name is a Times New Roman font example.
Greetings,
Nuno MoreiraHi Nuno,
Maybe this question isnt corresponding with this forum. But I have a thread with the answer... look at
Re: Adding a new font for SAPscript/SMARTFORM output
Regards.
Manuel -
Create new / add Custom Node in Component Pallete - Workflow Editor
is there anyway to Create new / add Custom Node in Component Pallete - Workflow Editor in SQL Developer - Oracle Data Miner?
Now i'm in progress create data cleansing engine in database package, and I have an idea to create new node in workflow editor, the node will call my procedure data cleansing.
Anybody help?Hi,
Not currently.
We are working on a SQL Query node that would process data on connected input nodes and allow the user to create any sql query specification they would like.
So as long as your implementation is compatible with being included as part of a sql query, then you may be able to take advantage of this new node.
Since you describe your implementation as a data cleansing implementation, I could see it taking in what ever input is provided in the flow, and then returning a cleansed result set.
Thanks, Mark -
Add New File type to Symbian os 9.1 ?
Hi all
I wanna Know is there any way to add new file type (for example AVI Filetype) in S60v3
- I know that Y-Task (Filetype) can modify File Association (But only for Known file types by Symbian os & cant add New file type)
Is there another app or trick?
Thanks in advanceI don't think there is any trick yet available. But there are 2-3 applications that play AVI media files.
-
Add New discount reason type Amount / Percent Discount fields
Hi Experts,
Add New discount reason type "with description P1 Package" for "
Amount / Percentage Discount fields."
please help.
Regards,
Sujit SHi Sujit,
I am siva from chennai . now i am searching job .. i am working in leading newspaper in chennai .. u know any newspaper like times of india , hindustan times , the hindu ... i have done one end to end implementation ... with 5+ years experiance .... please give ur mail id i will send my resume for ur further processing.
Regards
S.Siva
SAP Is-Media -
Omwn - add new combination of movement type
i need to add a new cobination to omwn
for mov 281 q with consumption indicator = p
but i dont know how to append because there is no option for new entry
thankshi
After you type OMJJ select 'Movement Type' check box put 281 and enter, you will see 'Change view movement type: details" screen, click on the 'copy as' button on the left top of the screen -
>
here
even if i copy the movment to new one it copies only the combinations which are in the old one.
i want to add new combination to the "old" movment
thanks
Maybe you are looking for
-
In an earlier version (Firefox v.31) on this, and (presently) on two other PC's, I was/am able to run add-on FT DeepDark 11.3.1 without any problems. It was only recently - after updating to v.32.0.3 on this PC that this situation started. The PC in
-
Workflow does not start automatically on create item (yet another time)
The topic has been discussed broadly throughout different forums, but I didn't find the solution to my issue yet and hope you can help me out with ideas to sidestep the difficulties created by Microsoft. I have one list 1 in Site Collection A, and on
-
How mail messages are sorted in Yosemite
I have noticed an unwelcome change in the way mail items are presented in OS X 10.10 Yosemite. Before, when I had messages sorted by date received and wanted to change the view to sort by sender, I could highlight a message, change the "sort by" dro
-
HT5622 How to select iPod touch in the Devices list?
I am wanting to update my ipod touch 4.2.1 . How do I do this? Christian
-
Computer short name counted twice in System Profiler
My Macbook Pro's Short Name is somehow being counted twice when I look in System Profiler. It shows (2) next to the name of my computer. Any idea how to fix this?