Determine component height for different platform
Hi, all
It just came to me, how can I determine optimal component height for JLabel,JTextField while calling setPreferredSize on different platform? Different screen dpi,fonts,etc. Is there a guide line, so each component will be not too small?
Thanks,
Vincent Chen
But I need to call setPreferredSize to arrange screen display while using flow layout. Under some situation, flow layout is my only choice. Any solution?
Similar Messages
-
How to apply metrics for different platform
Hi,
If a metric has different code for different platform, or the metric only runs on some specific type of system, how can we apply it to a group of hosts?
For example, I have a metric that checks only Sun T3 types of systems. I can create a group of hosts that are T3 type system, but how do I apply the metric to this group?
The other example is the way to collect data is different for Soaris and Linux platform, can I have 2 metrics, one apply to the group of Solaris machines, and the other apply to the group of Linux machines?
Thanks.Hi,
You can use EM groups and monitoring templates to accomplish what you want to do. For example, create a group for Solaris hosts and a template to push out appropriate metric settings for the group.
Documentation links:
- EM groups:
http://docs.oracle.com/cd/E24628_01/doc.121/e24473/group_management.htm#DAFHBFCB
- Monitoring templates:
http://docs.oracle.com/cd/E24628_01/doc.121/e24473/monitor_overview.htm#sthref38
Regards,
- Loc -
Sun Certified Web Component Developer for J2EE Platform (CX-310-080)
Hi every one !
I want to prepare for the Sun Certified Web Component Developer for J2EE Platform (CX-310-080), I want to know if there some good books that you advice me to work on it
Thank you in advance for any answer :)
Rania +ISBN: 1930110596
ISBN: 1861007701
ISBN: 1932394389Not published yet.
Good Luck -
How to put different component quantity for different subcontracting vendo
How to put different component quantity for different subcontracting vendor
Hi,
To achieve this, you have to create alternative BOMs for the assembly with different component quantities.
First create in Alternative BOMs in CS01
1. C223 - Create Production Versions for the the assembly for each Alternative BOMs
For e.g. 0001 for Alternative BOM 1 and 0002 for Alternative BOM 2 and so on...
Production Version 0001 - For Vendor 1
Production Version 0002 - For Vendor 2 and so on...
2. ME11 - Create Subcontracting Purchase Info record for assembly, plant, purchase org and vendor 1 (Here in "Purchasing Data 1" screen, specify the Production Version "0001"), similarly for vendor 2, specify production version "0002" and so on...
3. ME21N - In PO, system will propose the BOM as per Production Version which is assigned in Purchase Info record for the vendor, material (assembly), plant and purchase organization. -
How to determine Component materials for PO line item Materials.
Hello friends,
I woluld like to know the table name for getting the component Materials of a Purchase Order line item material.
There is a table called RESB, which is containing the component materials for the PO line item materials. But this table is populating only after creating (saving) the PO.
But, i have to do some validations on component materials, before saving the PO. For that i would like to know the table, from which the component materials will pick.
Or
Please provide some user exit names, which will contain Component materials, during the PO creation.
Thanks in Advance.hi
header BOM table - STKO ( u need to fetch BOM# from here)
Item table - STPO ( pass the BOM # here and retreive all the item details)
try using FM
CS_BOM_EXPL_MAT_V2
regards
kunal -
Panel collection with auto height for different screen resolution
Hi.
I created a page using panel collection by default height for 1024 * 768 screen resolution and works fine. When I change the screen resolution to 1152 * 864 then my page layout changes as I can see lot more space at bottom due to fixed height define for panel collection.
Here my question is how to make height as dynamic for panel collection which can changed based on screen resolution. Usually percentage for height attribute resolve the issue but JDev 11.1.1.4.0 doesn't support percentage its allows only pixel or em.
Please let me know to resolve this issue.
ThanksIf you want a table to occupy 80% of the height of the screen you should be able to do this with assigining % to the various panelStretch facets - like this:
<af:form id="f1">
<af:panelStretchLayout id="psl1" topHeight="10%" bottomHeight="10%">
<f:facet name="bottom">
<af:spacer width="10" height="1" id="s2"/>
</f:facet>
<f:facet name="center">
<af:panelCollection id="pc1">
<f:facet name="menus"/>
<f:facet name="toolbar"/>
<f:facet name="statusbar"/>
<af:table var="row" rowBandingInterval="0" id="t1">
<af:column sortable="false" headerText="col4" id="c1">
<af:outputText value="#{row.col4}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="col5" id="c2">
<af:outputText value="#{row.col5}" id="ot2"/>
</af:column>
</af:table>
</af:panelCollection>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top">
<af:spacer width="10" height="1" id="s1"/>
</f:facet>
</af:panelStretchLayout>
</af:form> -
Driver Sipüport for different platforms
Hi Community,
as far as I know a Mac OS Setup DVD contains all available drivers for each single platform respectively every hardware. Does all this drivers become installed by default during setup on a specific platform?
The background behind these question is, that I want to create a Mac OS installation on a Firewire Device as a rescue system. I would install this system for example on a Mac Mini. Can I boot a Mac Pro or an iMac with this system?
I know that there is a cache which contains the kernel extensions. With the boot option "save boot" the boot image ignore these cached kernel extensions and detect all needed extensions during the startup procedure. Are the system drivers also stored as kernel extensions? Than this could be a possible solution.
Thx & Bye ProntoHey,
As long as you adhare the following you can copy the VIs from one platform to the other as often you want:
- don't use platform-specific code, e.g. ActiveX, DLLs, ....
- take care with the path syntax (use path controls instead of strings)
- don't copy your VIs without Blockdiagramm
Christian -
Create queue for different platform.
Dear All ,
In sap ABAP, isit any menthod we can create a queue to list sequence for posting? The posting data may come from different platfrom but they are using the same tcode program. i want to create FIFO (First IN First Out) process, because my program used my more than 1 users , so i think to create the queue inside my program to arrange the sequence of the posting. So the data will post correctly.
Anyideas about this ?
Thanksthe end
-
Cannot compile dylib for different platform then local machine
Hello,
I have to compile a dylib that uses two other dylibs in chain but I have some problems when I try to compile for i386 arch.
I am using mac os x 10.6 and the default arch for g++ is x86_64.
If I wanna compile for this arch (x86_64) everything works ok but if I change the arch I get some "had not been declared errors"
The other two dylibs that I am using are compiled for both architectures.I am using makefiles. More exactly there are some modified makefiles created with eclipse CDT.
What is strange is the fact that the same sources can be compiled on mac os x 10.5 i386 but from an 10.6 using 10.5 sdk for i386 arch I'm having problems. -
About Sun Certified Web Component Developer for the Java 2 ... course
i want to know if i take the Sun Certified Web Component Developer for the Java 2 course,then could i write j2EE application with oracle envirmet and the websphere enviriment or should i take extra course if i mant to work in any of these enviroments
You can write j2EE application for all this enviroments. The code is the same, with little diferences in the applicantion servers configuration files.
For more information try: http://www.sun.com/training/certification/java/java_busj23e.html
"The Sun Certified Web Component Developer for J2EE Platform certification exam is for Sun Certified Programmers (any edition) who are using the Java technology servlet and JavaServer Pages (JSP) application program interface (APIs) to develop Web applications. Prior to beginning the Sun Certified Web Component Developer program, you must be a Sun Certified Programmer for the Java platform (any edition)."
"The Sun Certified Business Component Developer for the Java 2 Platform, Enterprise Edition 1.3 exam is for programmers and developers who are responsible for designing, developing, testing, deploying, and integrating Enterprise JavaBeans (EJB) applications. It is also for those specializing in leveraging the Java 2 Platform, Enterprise Edition (J2EE platform) technologies used to develop server-side components that encapsulate the business logic of an application. Prior to beginning the Sun Certified Business Component Developer program, you must be a Sun Certified Programmer for the Java platform (any edition)." -
Error in CK11n - The system could not determine a cost component split for
Hi All,
When i run CK11n i have following error:
The system could not determine a cost component split for the internal activity with activity type 502000 of cost center 10100.
Procedure
Check the master data for activity type 502000 of cost center 10100. It is possible that no activity price calculation has been carried out for the cost center.
could any one give me solution
Thanking you.Well, did you run activity price calculation for the relevant cost center(s)?
The CCS you're using for product costing (either your COGM split, or the auxillary) has been marked as a "primary" cost component split. It wants to break secondary costs down into their cost components, and assign those components to components in its own structure.
Wihout a planned CCS for the activity, this isn't possible. (This is normally calculated by KSPI during planning.)
Either calculate an activity CCS is KSPI, assuming that all the prerequisites are in place for that, or uncheck the "primary cost component split" indicator in your costing variant configuration. -
Sun Certified Web Component Developer for the Java Platform, Enterprise Edi
I would like to take up the exam "Sun Certified Web Component Developer for the Java Platform, Enterprise Edition 5". Could you please suggest me the right book for it?
Does this one helps? ----Head first servlets and jsp
Whihc version I have to choose?That book is a very decent start, but it does not cover everything you need to know. I would also get "core servlets 2nd edition", which you can download for free here:
http://pdf.coreservlets.com
I would skim these two books to see which topics they cover, then check it against the list of requirements you will find on this page:
http://www.sun.com/training/catalog/courses/CX-310-083.xml
to see what you are missing. -
Do I need to purchase 2 licenses for my computers in different platform?
1. Do I need to purchase 2 licenses for my computers in different platform? One is desktop in windows, another is macbook pro.
2. Is it possible for me to install cs6 on more than one computer by using one license?
Thank you.If you buy the perpeptual license then it would be OS specific , in that case you would have to buy 2 seperate license however If you go for the Creative Cloud then in that case it would be OS independent , you can install with creative cloud on 2 Windows or 2 Mac or 1 windows and 1 Mac.
Also , with each license you get 2 activation hence 2 can use the software on 2 machine but not at the same time. -
How to set the variable height for TileLayout
Hi,
I am using TileLayout in <s:List> component . TileLayout takes the maximum height of the children and draw the same height for rest of the children in all rows. Instead, I want to have all the rows with various heights if their children have different heights.
I know there is variable height property in <mx:List> component but which is not there in its spark counterpart. Can you please help me with this issue??
Thanks,
BhojaThe spark TileLayout class lays out all of its elements in equally sized "cells". Cells of variable sizes is not currently supported.
-
VBA inserting form fields, different positions result for different users.
I'm certianly at a loss for wrapping my head around this.
Adobe Acrobat 9 Standard (v 9.5.4)
Excel 2010 (VBA)
The problem: When I create the PDF document from Excel, I search for a string of text in order to capture the Quads for the containing rectangle. Then I use the quads to insert a control with numeric offsets. The problem that I am facing is that the offsets seem to be causing the controls to be in different locations for different users. For example, when I send (-26, -2, 100, 10) {x-offset, y-offset, width, height}; the control aligns exactly where I want it. But when another user user runs the exact same routine, or opens the PDF that I created, the fields are no longer positioned correctly.
Is there some setting that I am missing? EDIT, SOLVED: My Acrobat had a custom point to pixel setting. (Preferences > Page Display > Resolution)
Private Function makePdfControl(ByVal pdfPage As Integer, keyTerm As String, Optional ByVal keyTermLookAhead As Integer = 0, Optional ctrlType As String = "text", Optional cCoords As Variant = 0)
'pdfPage is the target page of the document
'keyTerm is the assembled search term: "Date Shipped >> DATESHIPPED"
'keyTermLookAhead is the number of words assembed into KeyTerm, zero based: "Date Shipped" >> "DATESHIPPED" >> "DATE" = 0, "SHIPPED" = 1
'ctrlType determines the type of control to place on the form; default is text
'cCoords carries an array of integers: x-offset, y-offset, width, and height
txt = ""
Dim fkt As Integer 'counter for keyTermLookAhead
Dim matchFound As Boolean 'flag that a match has been found
Dim maxWords As Integer 'the maximum number of words in pdfPage
Dim coord(3) As Integer 'local array container to provide interface for cCoords
p = 0
matchFound = False
maxWords = jso.getPageNumWords(pdfPage)
Do While p + keyTermLookAhead <= maxWords 'search all words in the target page; break if not found
p = p + 1
For fkt = 0 To keyTermLookAhead
txt = txt & jso.getPageNthWord(pdfPage, p + fkt)
Next fkt
If UCase(txt) <> UCase(keyTerm) Then 'the assembly of terms is complete, check if match
txt = "" 'prepare "txt" for next assembly
matchFound = False
Else
matchFound = True 'we've struck gold, exit the loop preserving val of "p" as the first word in the assembly
Exit Do
End If
Loop
If matchFound = True Then
Dim qtmp() As Variant
Dim q(7) As Double
qtmp = jso.getPageNthWordQuads(pdfPage, p)(0) 'collect the rectangle containing the first word of the search; output is a base-0x7 array
For a = 0 To 7
q(a) = qtmp(a) 'collect the data
Next a
If VarType(cCoords) <> 8204 Then '8204 means that we've inserted an array into the Varient type var cCoords
coord(0) = 0
coord(1) = 0
coord(2) = 100
coord(3) = 15
Else
coord(0) = cCoords(0) 'x-offset value
coord(1) = cCoords(1) 'y-offset value
coord(2) = cCoords(2) 'width value
coord(3) = cCoords(3) 'height value
End If
x0 = coord(0) 'x-offset var
y0 = coord(1) 'y-offset var
w = coord(2) 'ctrl width
h = coord(3) 'ctrl height
x = q(0) + x0
y = q(7) - h + y0
'origin point of doc matrix is lower-left corner
'origin point of control is lower left corner of the rectangle containing the first word of the search phrase
'offsets are placed from this point, negative x shifts to the left, negative y shifts down
'values are in points, not pixels
Set f = aForm.Fields.Add(keyTerm, ctrlType, pdfPage, x, y, x + w, y + h) '(uplf, lwlf, lwrt, uprt) 'add the control to the form using values passed in
End If
End Function
The above function is used while looping through the pages of the created PDF document. I am using the following function to create the document from Excel:
Private Sub exportToPDF()
DoEvents
Application.ScreenUpdating = False
Call showTabs(False)
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=pdfPathData, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=False, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Call showTabs(True)
Call locateDoc
Application.ScreenUpdating = True
End Sub
Message was edited by: ilivingston: solvedThanks for the reply, I did spend some time working on this issue... here is what I found...
1) First of all, I did have a custom Points to Inches setting in my Acrobat options... 110 vs 96. Resetting this allowed for me to see the alignment issue that my colleagues were referencing first hand.
As it turned out, my results were better, but still had inconsistency among different workstations. Leading me to..
2) The MSFT creator uses the default printer in some way to create the PDF. Because the different workstations were using different printers, we were getting different results. If everyone used an HP 1320, nobody would see any difference upon creating / adding fields.
The final solution was to change the Application.Printer to a common network printer before the export operation, and return the Application.Printer to the user default after the export completed. This has provided us with a common ground to work upon; we are lucky to have a network printer that can be used for this purpose, as I can see this becoming non-viable in environments where this would be unavailable.
Maybe you are looking for
-
Itunes 7- Unknown Error (-200)
Everytime I try to start Itunes I get the message An. Unknown error occured (-200). I tried uninstalling and reinstalling the ituens program any suggestions?
-
Sim Card Slot on Surface Pro 3?
which Sim Card size fits for the Surface Pro 3? anyone knows? best Regards Michael Michael Selinger
-
Cannot access a shared folder Error code: 0x80070035
Hello Experts, I have been working on this issue for like three days without a solution. I am truly desperate. My company just purchased a new Cloud Server that we will use as our development environment for a software project. In order for all the d
-
Check Payment advice through EDI
Hi, I need a solution to send the payment advice to bank through EDI. For that i created partner profiles for vendor and bank. I activated EDI in vendor master also. And i attached EDI accompaying sheet also to the FBZP t code. for this we created a
-
Using Java Resources with Java Stored Procedures
Hi folks, Hope someone can help out with this one. I have a java source file called PdfFormExtractor.sql. In that file I have a definition similar to. CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "PdfFormExtractor" as import com.adobe.pdf.FormData