How to use JTable model listener???
Anyone got idea , how to use table model listener. Can explain in simple example with code?? how to pass back to resultset ??
Well, your pretty good at asking questions, but not very good at thanking people for the help given to you so I don't think I'll waste too much time helping this time.
A TableModelListener notifies you when the contents of a cell are changed. So simply take the data from the cell and update your ResultSet. You question is so general I don't know how you expect any more advice than that.
Similar Messages
-
hi master
sir how i use jtable
please send me any detail sample with swing interfas and code
thank's
aamirDid you read the JTable API???
You will find a link titled "How to Use Tables" that takes you to the Swing tutorial. -
How to use multiple models in one Function module?
Hi,
In my FM i am using 2 models and if i dont completely exit the Function and use the same fm for another query based on another
model it is giving error saying invalid type.
if iv_type_of_search = 'A'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BP_APPL' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BuilHeaderAdvancedSearch' ).
Contact Search
elseif iv_type_of_search = 'C'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BP_APPL' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BuilContactAdvancedSearch' ).
*Opportunity Search
elseif iv_type_of_search = 'O'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BT' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BTQOpp' ).
endif.
Any idea how to over come this or remove the instance of the old query and model every time its run?
it looks like the object of the last run is still there and i cant find any destructor method or way and
if i exit se37 it works fine....Hi George,
You can also set up your model (component set) with the components you need.
Check it on:
SPRO->CRM->CRM Cross-Application Components->Generic Interaction Layer/Object Layer->Basic Settings
Kind regards,
Garcia -
How to Use Same Models in Different DC's.
Hi Experts,
I want to use same Models in Different DC's. How I achieve it by adding Model to Public parts.
With Regards,
Roop Kumar.Hi Roop,
It's enough to reimport Only Parent DC. No need to change in Child DC
This depends on scenario according to my experience.
Changes to the model definition can be three ways
1)Addition: Adding new fields or structures to your model.
In this case "It's enough to reimport Only Parent DC. No need to change in Child DC", if you are not using the new fields or structures in child DC.
2)Modification: Modifying existing fields or structures (e.g. data types) in your model.
In this case "It's enough to reimport Only Parent DC. No need to change in Child DC", because fields or structures in child DC are reference to the Parent DC.
3)Deletion:Deleting fields or structures in your model.
In this case, "It's enough to reimport Only Parent DC. No need to change in Child DC", if you are not using the deleted fields or structures in child DC.
But this holds if you make your DC as a public part but not the model and the parent DC's Interface Controller must have the context that you are going to use in child DC. You will find more help [here |/docs/DOC-8661#section5]
Regards,
Siva -
Hi,
We are evaluating the Adobe Captivate software and we are in
the process of identifying on how to use the Object model to record
the screen Programmatically. Do you have any idea on how to do this
using the captivate object model? We have a custom application and
we want to activate the recording by clicking a button in our page.
Kindly help. Thanks.
EricHi Captiv8r / Rick,
Thanks for your answer,
Actually, we have a web application that utilize the WME
(Windows Media Encoder) to record a video from the client side by
just clicking a button on our web page. That button has the
application logic to start the recording of his screen via calling
some "methods" on the WME dll files via object model (API). Now, we
are looking for some possible solutions on how we can implement the
same thing using the Adobe Captivate software or how we can utilize
adobe captivate to be able to integrate this software within our
web application.
Do you have any suggestions on how we can leverage the
benefits of adobe captivate in a custom web application? Thanks.
Eric -
How to use Simulate model in product configuration?
Hi,
May i know how to use (step by step) simulate model in product configuration?
and what is the function of simulate model?
Regards,
Rhesa SyahrialHi Rhesa,
You can simulate your product right from the product master in CRM.
Execute transaction: COMMPR01
Select the configurable material.
Go to tab 'Configuration'.
You will see the list of Models.
Select the Model and click on Simulate Model.
Best Regards,
Pratik Patel
<b>Reward with Points!</b> -
HI,
Here trying to populate the ImageIcon using JLabel in Jtable cell. For that I used DefaultCellRenderer. For implement the mouseListener to label I used the DefaultCellEditor. I am facing one problem here. After editing the label I selected the second row of the table, the first row image is not displaying. Can any one help on this issue?
public class LabelCellEditor extends DefaultCellEditor {
public LabelCellEditor(final JCheckBox checkBox) {
super(checkBox);
public Component getTableCellEditorComponent(final JTable table, final Object value,
final boolean isSelected, final int row, final int column) {
Color background = null;
background = ColorManager.SELECTED_ROW_BGCOLOR;
labelVal = (JLabel) value;
labelVal.setOpaque(true);
labelVal.setFont(FontManager.TABLE_DATA_FONT);
labelVal.setBackground(background);
labelPanel = new JPanel();
labelPanel.setOpaque(true);
labelPanel.setBackground(background);
labelPanel.setLayout(new FlowLayout(FlowLayout.LEFT));
labelPanel.setBorder(new EmptyBorder(5, 0, 0, 0));
labelPanel.add(labelVal);
return this.labelPanel;
public Object getCellEditorValue() {
return this.labelPanel;
public class LabelCellRenderer extends DefaultTableCellRenderer {
public LabelCellRenderer(final int alignment) {
//setHorizontalAlignment(alignment);
this.align = alignment;
public Component getTableCellRendererComponent(final JTable table, final Object value,
final boolean isSelected, final boolean hasFocus, final int row, final int column) {
if (value != null) {
if (value instanceof JLabel) {
labelVal = (JLabel) value;
labelVal.setOpaque(true);
labelVal.setFont(FontManager.TABLE_DATA_FONT);
labelVal.setBackground(background);
labelVal.setHorizontalAlignment(this.align);
labelVal.setBorder(new EmptyBorder(0, LRPADD, 0, LRPADD));
JPanel panel = new JPanel();
panel.setOpaque(true);
panel.setBackground(background);
panel.setLayout(new FlowLayout(FlowLayout.LEFT));
panel.setBorder(new EmptyBorder(5, 0, 0, 0));
panel.add(labelVal);
return panel;
return this;
}With more than 30 postings you should know by now how to use the "Code" tags when posting code so the code reatains its original formatting and is therefore more readable.
There is no need to create a custom editor, here is a simple example. -
How to use a model of an ess application in other ess application
Hi All,
I need to add the name and address in the overview screen of W4 ess DC, The W4 uses P0210 Model which doesnot has these name and address fields,but the address ess DC application which uses P0006 Model has name and address fields, How can i put the name and address fields on overview screen of w4, moreover the overview screen is bizcardview.Please give your valuable suggestions.
Thanks,
yogiHello,
To copy across the data you can use the traditional EXP/IMP or the Datapump utility.
If you're used to using EXP/IMP I'd encourage you to look at Datapump, if you haven't used EXP/IMP before I'd encourage you to look at Datapump (datapump rocks) -
http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
There are a few major differences between Datapump and traditional EXP/IMP (EXP/IMP creates the export file on the client side, Datapump creates it on the server side etc).
In my book "Pro Oracle Application Express" I have a section on cloning applications/data between instances, which you might find useful.
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
How to use JTable with DataBase
Dear All,
how can i show a table in a frame that containes a data from a database, then can edit , add and delete some records in the database
thnx 4 allHi
I've used below codes for fetching data in JTable.
try{
DataRequest = Db.createStatement();
Results = DataRequest.executeQuery("SELECT * FROM Employee");
rm = Results.getMetaData();
col = rm.getColumnCount(); //getColumnCount and store it in integer variable col;
Vector colNames = new Vector();
for (int i = 1; i<= col; i++){
colNames.addElement(rm.getColumnName(i));
while(Results.next()){
Vector row = new Vector();
for(int i = 1; i <= col; i++){
row.addElement(Results.getObject(i));
data.addElement(row);
jDataTable.setModel(new DefaultTableModel(data,colNames));
jDataTable.revalidate();
Results.close();
catch (SQLException sql){
JOptionPane.showMessageDialog(this, "Cannot connect to Database"+sql,"Error", JOptionPane.WARNING_MESSAGE);
}Hope you satisfied with this code. -
How to use ATO Model & ATO Item as bill for ATO Model
Can anybody have an Idea of using ATO Item inside an ATO Model, ATO Model as a bill for another ATO model. In the below mentioned scenario, is it possible for the ATO Item(item_compE) to be manufactured based on the sales order.. I don't want to keep it manufactured.. But in Vision Instance, the parent Job is completed normaly & able to ship the SO. But when i checked the onhand for the ATO Item components, its not reduced.. ie it is not manufactured & shipped, but didn't throw any error....
1 Order_itemABCDE (ATO Model)
1.1 item_compA (Purchased)
1.2 item_compB (Purchased)
1.3 item_compC (Purchased)
1.4 item_compD (ATO Option Class)
1.4.1 item_compD1 (Purchased)
1.4.2 item_compD2 (Purchased)
1.4.3 item_compD3 (Finished)
1.5 item_compE (ATO ITEM)
1.5.1 item_compE1 (Finished)
1.5.2 item_compE2 (Purchased)
1.5.3 item_compE3 (Purchased)
Now I am creating a separate discreet job order for the ATO Item & keep the onhand available, & its working fine...Is there a way to automatically create a Job order for ATO Item along with the parent item from the Sales order?.
Also How can I extend it to a requirement like, an ATO Model item, inside another ATO model item???For example ItemA(ATO Model) as a bill for ItemB(ATO Model). How it can be accomplished, as ItemA is not directly ordered thru SO, its jus a component for ItemB & want to manufacture based on requirement..
Hope the Scenario is clear.. Please suggest if this can be achieved...
Thanks
Ranjithrrenji83 wrote:
Can anybody have an Idea of using ATO Item inside an ATO Model, ATO Model as a bill for another ATO model. In the below mentioned scenario, is it possible for the ATO Item(item_compE) to be manufactured based on the sales order.. I don't want to keep it manufactured.. But in Vision Instance, the parent Job is completed normaly & able to ship the SO. But when i checked the onhand for the ATO Item components, its not reduced.. ie it is not manufactured & shipped, but didn't throw any error....
1 Order_itemABCDE (ATO Model)
1.1 item_compA (Purchased)
1.2 item_compB (Purchased)
1.3 item_compC (Purchased)
1.4 item_compD (ATO Option Class)
1.4.1 item_compD1 (Purchased)
1.4.2 item_compD2 (Purchased)
1.4.3 item_compD3 (Finished)
1.5 item_compE (ATO ITEM)
1.5.1 item_compE1 (Finished)
1.5.2 item_compE2 (Purchased)
1.5.3 item_compE3 (Purchased)
Now I am creating a separate discreet job order for the ATO Item & keep the onhand available, & its working fine...Is there a way to automatically create a Job order for ATO Item along with the parent item from the Sales order?.
Also How can I extend it to a requirement like, an ATO Model item, inside another ATO model item???For example ItemA(ATO Model) as a bill for ItemB(ATO Model). How it can be accomplished, as ItemA is not directly ordered thru SO, its jus a component for ItemB & want to manufacture based on requirement..
Hope the Scenario is clear.. Please suggest if this can be achieved...
Thanks
RanjithI don't know..if i got your requirement correctly or not
Make ATO Item supply type as phantom for the ATO model Bill..this way when the job is created for the top model...ATO item will be exploded..
HTH
Mahendra -
How to use JTable and database
how i want to know how to store data into Jtable from the database for the end users.
any tutorial or example will be helpfull.
thank youmy problem is i want to store data that i will get from the database into a JTableThen you problem is with Swing in which case you should be searching the Swing forum for answers. This question has been asked and answered several times. I know I've posted solutions before.
-
Create declaritive jsf components : how to use a model ?
Hi,
I'd like to create a component, like it is described in this how to : [http://www.oracle.com/technology/products/jdev/tips/fnimphius/declarative_comp_adf/declarative_component_adf.html|http://www.oracle.com/technology/products/jdev/tips/fnimphius/declarative_comp_adf/declarative_component_adf.html], and the screencast from Shay Schmeltzer.
What we need is only one attribute, that is a Model. A model in the meaning of the TableModel in JavaSwing or CollectionModel, TreeModel with ADF. My question is : is there a class that my java class Model should extend, or implement, so that attributes of this class are usable in the jsf page that encapsulate the component. In mean, even with getters and setters, attribute are not usable in the jsf with any EL. Maybe I am going the wrong way here.
So to sum up : a jsf declarative component that takes a Model as parameters, and from this model, the component builds itself. Is it even possible ? How ?
Many thanks.
regards
Fred-Hi,
why don't you define an attribute of type CollectionModel on the declarative component. You can then access this attribute from a managed bean in your declarative component (make sue its in backingBeanScope) to work with it. Note that the collection model is passed to the component to read data fromit. It is not a way to share data between your component and the JSF page
Frank -
How to use java to listen to a socket?
i want to create a listener to monitor the input and output of a very socket,i don't know which classes can be used.
thk u very much!!!!!!You can't create a socket in java to 'monitor the output'. At least not in the general sense.
In the general sense this is usually referred to as raw sockets and the default java does not do that. You can however, do it via JNI. If that is what you had in mind then look at http://www.goto.info.waseda.ac.jp/~fujii/jpcap/index.html
If this isn't what you are looking for then provide a bit more detail about what you will be monitoring. -
How to use/populate JTable in Jdev 3.0 ?
Is there any tutorial or examples available
on how to use JTable in JDeveloper 3.0 ?
After creating business objects project
and application, what steps do I take to
a) put a jtable class object into my application ? I have tried creating a
frame (JFrame) using new\objects\frame, and
then dragging JTable into the UI, but don't
know how to connect things from there.
b). manipulate/populate the grid from there
using the business objects created
earlier in the project ?
The html documentation included with JDev 3 provides some clues on individual key word searches, but does not at all connect the dots. What is needed
here is a tutorial like some of the others
included.
nullYou may find the following steps useful.
Create an InfoBus form by:
Select menu File | New...
Select "InfoBus Data Form" and press OK
Go through the wizard and create a
Detail or Master Detail form.
Be sure to place the detail in a GRID control (last few pages of wizard).
Then look at the generated code. This form will contain a useful class GridControl which contains a JTable element. Most noteworthy is that the JTable is already hooked up to the data source.
In particular, the GridControl that is in
your source has a public method:
public final JTable getTable()
This gives you access to the JTable to further customize the way you need.
Ofcourse there are other tutorials that touch
on the above, but you won't find a tutorial
on how to hook up a JTable to a database because we have many more advanced classes
(InfoSwing: GridControl,...) that do that
and much more for you. You will be much more
productive if you rely on the additional InfoSwing components.
I hope this helps,
John@Oracle JDeveloper Team http://technet.oracle.com
null -
How to integrate the model build using Oracle10g
Hi All,
I am not getting an idea as how to integrate the model build using Oracle10g into existing application. Suppose i want to use the model then how to automate the whole process.Could you give more details on what you mean by the whole process? Do you mean how to use a model that was built or automate the building of a model?
--Marcos
Maybe you are looking for
-
Adding a new column to af:query on af:table
Hi, I have an ADF table added to a jspx page as below: <af:table value="#{bindings.RuleLibraryVO1.collectionModel}" var="row" rows="#{bindings.RuleLibraryVO1.rangeSize}" emptyText="#{bindings.RuleLibraryVO1.viewable ? coregccomplianceuiBundle.MSG_NO_
-
Can a Calculated key figure be derived from characteristic value?
Hi, I would like to know whether BW allows to derive a calculated key figure based on a characteristic value. Let us say we have a row like PLANT-DAY-INVENTORYQTY and based on my plant value, I want to have another column 'CALCULATEDSCRAP' which is d
-
Migrating from weblogic 8.1 to sun one server
I need some documentation that could guide, in steps involved, in migrating an J2ee application from weblogic 8.1 to sun one application server. Please help.
-
Allow SET button on 6D to change White Balance Preset
On the EOS 6D right now, there is no fast/easy way to change/set the White Balance. Even my old 30D camera has a WB button where you press it, then rotate the main dial to change the WB presets. On the 6D right now, you can customize the SET button t
-
Installed CS5 after CS5.5. How do I fix associations?
I installed CS5.5 Master which includes PRemiere and After Effects onto a brand new PC I built. I though I knew that I'd never need my copy of CS5 MC again so I didn't even load it. Then I realized I have several plug-ins that will not install in CS5