How to add calender component
hi maxideon. i done upto the diagram which is shown to you. now i have small problem
anybody please go through this link then you will get idea
[http://www.mediafire.com/?sharekey=c2ec1a687d8279f091b20cc0d07ba4d2ddbbdb9f07ee802d]
in the paint diagram i wrote "i want a seperator like that to the existing structure" after that i have a calender class,i want to add that calender below of that seperator(i am showing with green box).how can i add it.please help me
thanks in advance
nagaraju.
i done as you told but i got some problem. when i doing like below my tree struture frame totally disappeard the freshely added calender appeard.
public class HorizantalDemo extends JPanel
private JSplitPane splitPane;
private JTable jtable;
JPanel p=new JPanel();
JSeparator js=new JSeparator();
splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
jsp, jsp1);-------------------------------------------------->*split pane created with tree strucute(left side) table structure(right side)*
splitPane.setOneTouchExpandable(true);
splitPane.setDividerLocation(150);
p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS));--------------->*box layout*
p.add(js);-------------------------------------------------------------------->*adding jseparator to Jpanel*
p.add(new UseJCalendar());----------------------------------------->*adding calender class to Jpanel*
splitPane.setLeftComponent(p);------------------------------------>*adding Jpanel left side of the splitPane(while doing this total tree structure and table structure in splitPane disappear and this calender only appear,actually this calender need to appear below the tree structure with seperator)*
frame.getContentPane().add(splitPane);the above one is my problem please help me
thanks in advance
nagaraju.
Similar Messages
-
How to add HR component in Netweaver 2004
Hi
i was installed sap Netweaver 2004 successfully. It has BASIS, ABAP, BI components available by default.
i want to add HR component. How to do it???? What is the Link in SMP?
pls. provide solution
regards
raghuReyes!
Yes. i checked "Package level" from SPAM. It shows ONLY following components,
BASIS 640
ABAP 640
PI_BASIS 2004_.....
BI 3.50
Now how do u add HR component, logistics and others.............
Psl. provide solution.......... it's urgert..........
regards
raghu -
How to Add Calender & Calculator controls on TextBox in SAP B1
Hi Experts,
How to add the calender control and calculator control to textbox in SAP B1
Thanks,
Y.
Edited by: Yughandar on Jul 20, 2010 3:24 AMHi,
Textbox will automatically display calucator and calender depending on the binding.ie if we bind the textbox with UDF of type Datetime then the it will automatically display the calender..
Regards
Arun -
How to add one component when some action take place
Hi,
i created a GUI using Netbeans Ide, In that i want add a component when i click some button
i showed it here see the diagram
[click here to see|http://www.mediafire.com/imageview.php?quickkey=jtgzjrfenwm]
my sample code
public class ProcessFiles1 extends javax.swing.JFrame implements ActionListener,
PropertyChangeListener{
private JProgressBar progressBar;
/ Creates new form ProcessFiles1 */*
* public ProcessFiles1() {*
* initComponents();*
* /** This method is called from within the constructor to
*initialize the form.*
WARNING: Do NOT modify this code. The content of this method is
*always regenerated by the Form Editor.*
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {====================================>here i am not adding Progress bar
to GUI
jToggleButton1 = new javax.swing.JToggleButton();
jToggleButton2 = new javax.swing.JToggleButton();
jComboBox1 = new javax.swing.JComboBox();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jComboBox2 = new javax.swing.JComboBox();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Admin@localhost");
setIconImage(Toolkit.getDefaultToolkit().getImage("c:\\Logo.PNG"));
jToggleButton1.setText("Select File");
jToggleButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
FileChooser(evt);
jToggleButton2.setText("Run Files");
jToggleButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addComp(evt);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jComboBox1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBox1ActionPerformed(evt);
jLabel1.setText("Success");
jLabel2.setText("Faild");
progressBar = new JProgressBar(0, 100);
progressBar.setValue(0);
progressBar.setStringPainted(true);
jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jTextArea1.setColumns(20);
jTextArea1.setEditable(false);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());=================>from here i am adding components
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(26, 26, 26)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 965, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jToggleButton1)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jToggleButton2)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(32, 32, 32)
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addContainerGap(29, Short.MAX_VALUE))
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jToggleButton1)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1)
.addComponent(jLabel2)
.addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addComponent(jToggleButton2)
.addGap(18, 18, 18)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 583, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(20, Short.MAX_VALUE))
pack();
}// </editor-fold>
private void addComp(java.awt.event.ActionEvent evt)---------------------------------------->when 'runfile' button clicked i am
trying to add progressbar component it is not adding
layout.addLayoutComponent("Progress", progressBar);
pack();
}how can i add progressbar when runfile button clicked
please any one focus some light on this
Thanks in advance,
Nagaraju.
Edited by: uppala on Dec 18, 2009 11:33 AMWell, normally the code would be:
panel.add( someComponent );
panel.revalidate();But since you are using the IDE to generate your code you need to learn and understand how to use the GroupLayout and all its constraints to add the component.
My advice is to get rid of the IDE generate code and create the GUI yourself. -
How To add One component to a TabbedPane
Hi,
I have a TabbedPane with four tabs in it
the tabs are created dynamically it may be four or five
i want to add only one component to it i.e JTable
if i just add a component to the tabpan like below
tabpane is an instance of JTabbedPane
tableofvalues is an instance of JTable
tabpane.add(tableofvalues); this code creates a
default tab and add the component
but i dont want the default tab i just want only the component
can somebody please give me a solution for this
give me the overiding function alsoi need to add one component which is common to all the tabs You can't. A component can only be added to a single container.
However you might be able to share a model. For example:
JTextField forTab1 = new JTextField("some data");
JTextField forTab2 = new JTextField( forTab1.getDocument() ); -
How to add sprite component to application
Hi,
In my application i am using a custom component which
extends Sprite class. I am adding this component to application as
<local:mySprite width="500" height="300" /> but it is showing
following error on application run;
Type Coercion failed: cannot convert mySprite@129be5e1 to
mx.core.IUIComponent.
How should i overcome this problem, if any suggestion please
reply.
Thank you.Everything you add to the display list of the application
must implement IUIComponent. Wrap the sprite in a UIComponent or
UIMovieClip. -
Hello Every body,Actually I am having a probelem I ant to invoke a calender how to do dis in forms6i............................
Follow these Steps
1.Go to object Navigator and attached Library of Calender(You must have Calendar.pll )
2.Drag & subclass calendar component from standard library.
3.At Date item(block2.App_date) write code at
Key_next_Item
IF :block2.App_date IS NULL OR
:block2.App_date='' THEN
DATE_LOV.GET_DATE(SYSDATE,'block2.App_date',100,100,
'Date Of Application','OK','CANCEL',TRUE,false,false);
end if;
I hope this will work. -
How to add new component to JFrame dynamically?
Hello,I'm now study the GUI and here i meet a problem.I want to display a pic use JComponent.In paint() method i paint the pic.because i use a button to open a FileDialog to choose a pic file and send the path info to the constructor of JPicPane(i extends it from JComponent),so it will be add to the frame when it was visible and we know that there is a swing thread problem.so i use invokeLater(new Runnable(){....pack();});I want to know besides pack() can i use other method to change the layout sothat the new component could be displayed.becasue pack() will make the frame changeits size.(it displays the preferred size of components?) I don't want it make the frame change size and the component be displayed,is there any approch else?one method occur to me is chang the prefer size of contentPane sothat the pack won't make the frame small.is there any other method?and by the way,what's the different between invokeLater and invokeAndWait?
thank you all! thank you!No idea why it is slow(er). The difference between invokeLater and InvokeAndWait are described here and in the tutorial that is linked there.
-
How to use calender component in data table
How can we use calender components in datatable properly.
We can show the date using calender components, but the problem is on changing any date using calender the new date is only going to the first row of the table. Can any one tell me how we can solve the problem
Thanks in AdvanceCheck this thread. I think it will help:
http://forum.java.sun.com/thread.jspa?forumID=881&threadID=5064300 -
Hi,
In my repository, there may be a large amount of objects under one folder. Is there any paging component with which we can only retrieve limited amount of objects at one time, just like that in data base?
Thanks,
RayHi Sandip,
I've seen someone mentioned paging component, in KM Flex UI.
Yes, my purpose is to fetch only limited number of objects from backend at one time. Just like Anupama said, fetch and display only 20 objects in one page and a button below to see rest objects.
For example, I have 100 files under directory /myrep/folder1; when a user clicks on folder1,
findResources()
in
IMutableNamespaceManager
will be called, which will in turn call
getChildren()
, which, without paging, will fetch all 100 files from backend, but I just want it to fetch the first 20 records, for one page.
So, to limit the number of objects fetched from backend, what can I do with the query, or paging component, or the layout...
Thanks,
Ray -
How to add a text Component ( text annotation) to the Tiff Image
Hi.............
This is the first time I am using Sun Developers Forum.......................
My problem is.............I want to add a component ( Text or Label ) to the Tiff Image which is displayed on the JIMICanavs [ from JIMI API ].
Even , if anybody knows about How to add a component to the JIMICanavs , Please help me..................................I'm curious: is JIMI still popular? What advantange does it have over the current Java 2D support in the J2SE, or over JAI?
-
How to add a Calender Group in a shared Calender
Hi,
I have an iCal server running.
I have an account "shared calender"
that will be shared between multiple computers.
The server works and all the events entered on one client show up on the other clients upon synch.
But how can I add "calender groups" to this shared iCal ?
When adding a new "calender group" it wll be added to my local account not the shared account....
Googling did not come up with anything useful
Any hints ?
Thanks in advanceThanks for the advice. I am looking in my config.s file and this is what i see..
.section ".text",#alloc,#execinstr
/* 0x0000 7 */ .file "x.c"
.section ".data",#alloc,#write
/* 0x0000 9 */ .global ss_dba_grp
/* 0x0000 10 */ .align 8
.global ss_dba_grp
ss_dba_grp:
/* 0x0000 17 */ .align 8
/* 0x0000 18 */ .xword (.L12+0)
/* 0x0004 24 */ .align 8
/* 0x0004 25 */ .xword (.L13+0)
/* 0x0008 26 */ .type ss_dba_grp,#object
/* 0x0008 27 */ .size ss_dba_grp,16
.section ".rodata1",#alloc
/* 0x0008 13 */ .align 8
.L12:
/* 0x0008 15 */ .ascii "dba\0"
/* 0x0014 20 */ .align 8
.L13:
/* 0x0014 22 */ .ascii "dba\0"
What should i change? -
How to add a new url link in a view of an existing webdynpro component?
How to add a new url link in a view of an existing webdynpro component?
hi ,
refer SAP online hep :
Implementing Enhancements in a View
http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/233f2189f74f08e10000000a114a6b/frameset.htm
To enhance the layout of the view, you can create new UI elements. This procedure is no different u2013 from a technical viewpoint u2013 from creating UI elements in components themselves. All UI elements created within the enhancement implementation can then be processed as usual.
Enhancements means inserting user developments into SAP development objects at predefined positions.
The Enhancement Framework enables you to add functionality to standard SAP software without actually changing the original repository objects, and to organize these enhancements as effectively as possible.
refernce :
have a look at this article
How to Create Enhancement Implementation in Web Dynpro ABAP
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81&overridelayout=true
as pointed correctly by Saurav in earlier thread
regards,
amit -
How to add factory calender in ABAP Selection Screen?
Hi,
Anyone can guide me, how to add the factory or Holiday calender in ABAP Selection screen?
Thanks in advance.
VJ.Use the below code and it should work.
AT SELECTION-SCREEN on VALUE-REQUEST FOR p_date. "p_date is your selection screen field.
CALL FUNCTION 'F4_DATE'
EXPORTING
DATE_FOR_FIRST_MONTH = SY-DATUM
DISPLAY = ' '
FACTORY_CALENDAR_ID = 'US'
HOLIDAY_CALENDAR_ID = 'US'
IMPORTING
SELECT_DATE = p_date
The thing to note above is DISPLAY should NOT be 'X'. -
How to add adf faces in component pallete of jdeveloper 11g?
how to add adf faces in component pallete of jdeveloper 11g?
Hi,
the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
You an configure ADF Faces Components in JDeveloper 11 by :
- Tools --> Manage Libraries
- Create a User Library
- select ADF Faces adf-faces-impl.jar
- Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
Again, I wouldn't go this way ;-)
Frank
Maybe you are looking for
-
How to Set Field value using javascript?
I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value. Thank you. Ranji
-
Hi, when making automation volume drops, can anyone tell me if there's a setting to make any delay / reverb effects carry on after the note volume has gone? as it is when when I make a sudden volume drop, any effects on that channel also disappear ju
-
Hi all.. While saving a document with VA01 (using the transaction for the first time on a new system) I get the following error: Error in ABAP application program. The current ABAP program "SAPMV45A" had to be terminated because one of the statements
-
During startup, googleleads / Doubleclick is trying to use my keyboard API
WTF is going on here? Macintosh CONSOLE MESSAGES: 6/2/14 9:05:00 PM [0x0-0x1c01c].org.mozilla.firefox[172] No permission to use the keyboard API for http://googleads.g.doubleclick.net 6/2/14 9:05:00 PM [0x0-0x1c01c].org.mozilla.firefox[172] No permis
-
Just get me started...
I have this code for setting up my navigation. It works absolutely fine like it is, but I want to be able to change my arrays from OUTSIDE flash. Is it possible for me with this code to make it with XML or is it built in a way that makes that hard? I