Nimbus focus painting and insets
We are still having this problem - wanted to try again on the queue.
We have a custom table cell editor component that uses a spinner for the editor component. With Nimbus look and feel, the focus is painted around the outside of the component. However in a table cell, this focus painting (and cooresponding insets) takes up too much space. Is there a way to turn off the focus paining (or control the insets) on Nimbus for this cell editor?
Edited by: cmildenb on Jul 9, 2012 4:44 PM
Edited by: cmildenb on Apr 22, 2013 10:41 AM
Try this.
JFormattedTextField f =
((JSpinner.DefaultEditor) spinner.getEditor()).getTextField();
f.putClientProperty("Nimbus.Overrides",new UIDefaults());
f.putClientProperty("Nimbus.Overrides.InheritDefaults",false);This will essentially result in a more basic painter for the painting of the spinner's text field. So no border is painted, nor any focus (though it will still be focusable). You'll still have the nimbus style buttons of the spinner.
Alternatively you could try a "mini" or "small" spinner.
spinner.putClientProperty("JComponent.sizeVariant","mini");
spinner.updateUI();
Similar Messages
-
SetContentAreaFilled removes focus painting
I have a JButton whose background and border I would like to be transparent/removed. However, I want to retain the focus painting for the button.
When I use setContentAreaFilled(false), the background and border are properly not displayed. However, focus is no longer painted either, even if I call setFocusPainted(true).
I even tried calling:
setBorderPainted(true);
setOpaque(false);
but as far as I can tell, these calls did nothing.
Please note that I'm using the Windows look & feel for this window, which may be the cause of the problem. However, within that context, does anyone have any recommendations for resolving this?
Thanks much!setFocusPainted(true)
Some look and feels might not paint focus state; they will ignore this property.
So its entirely a look and feel issue, i faced the same problem once with motif look. -
I have Photoshop CS6 Extended Students and Teachers Edition. when I go into the Filter/Oil paint and try to use Oil Paint a notice comes up "This feature requires graphics processor acceleration. Please Check Performance Preferences and verify that "Use Graphics Processor" is enabled. When I go into Performance Preferences I get a notice "No GPU available with Photoshop Standard. Is there any way I can add this feature to my Photoshop either by purchasing an addition or downloading something?
Does you display adapter have a supported GPU with at least 512MB of Vram? And do you have the latest device drivers install with Open GL support. Use CS6 menu Help>System Info... use its copy button and paste the information in here.
-
Non-modal JDialog is not painted and blocks the GUI
I have developed a GUI that's basically a JFrame with a JDesktopPane.
The user can, via a menu item, pop up a JDialog that contains some JLists and then select some value from it. Once he/she has done the selection and clicks on OK, the dialog disappears (data processing is then done in the main GUI) and comes back once a specific event has happened. The user then selects other data and so on, until he/she clicks on Cancel, which definitely disposes of the JDialog.
The graphics of the JDialog are build in the class constructor, which does a pack() but does not make the dialog visible yet. The dialog appears only when doSelection() is called.
/** Called the first time when user selects the menu item, and then
when a specific event has happened. */
public Data[] doSelection() {
dialog.setVisible(true);
// ... Code that reacts to user's input. Basically, the ActionListener
// added to the buttons retrieves the user's selection and calls
// dialog.setVisible(false) if OK is clicked, or calls dialog.dispose()
// if Cancel is clicked.
}Now, everything works fine if the JDialog is modal, but if I make it non-modal only the window decorations of the JDialog are painted, and the control doesn't return to the main GUI. Calling doLayout() or repaint() on the doSelection() has no effect. How can this be fixed?
I hope I have been able to explain the problem satisfactorily, I could not create a suitable SSCCEE to show you. Thanks in advance for any hint.Ok, I've taken some time to think about this problem and I've modified the code a bit.
Now the dialog shows itself and is responsive (i.e. its JLists can be operated), but the Ok button does not close the dialog as I'd want. I believe that I'm messing up things about threading, and the operations in actionPerformed() should be carried out in another thread, if possible.
Thanks in advance for any hint / suggestion / comment / insult.
private Data[] selection;
/** Constructor */
public MyDialog() {
// ... Here is the code that builds the dialog...
dialog.setModal(false);
dialog.pack();
// Note that the dialog is not visible yet
public Data[] doSelection() {
operatorAnswer = NONE_YET;
dialog.setVisible(true);
while (operatorAnswer == NONE_YET) {
try {
wait();
} catch (InterruptedException e) { }
return (operatorAnswer == OK ? selection : null);
public void actionPerformed(ActionEvent evt) {
if (okButton.equals(evt.getSource())) {
operatorAnswer = OK;
retrieveSelection();
dialog.setVisible(false);
else if (cancelButton.equals(evt.getSource())) {
operatorAnswer = CANCEL;
dialog.dispose();
private void retrieveSelection() {
// ... Here is the code that retrieves selected data from the dialog's JLists
// and stores it in the "selection" private array...
notifyAll();
} -
Report painter and drill down reports
Hi SAP gurus,
Can any froward configuration of report painter and drill down reports.
iassign pointsHiii Sai Krishna,
can u forward the same documentation to me..plsss
my mail id - [email protected]
thanks in advance
regards
ramki -
Difference between Report painter and abap query .
can anyone please tell me the difference between the report painter and the ordinary alv,clasical reporting and also the difference between Report painter and abap query. How the output format will be in Report painter. If anyone has any documents please send it to
[email protected]
Thanks,
Joseph.hi,
ABAP Query is an ABAP Workbench tool that enables users without knowledge of the ABAP programming language to define and execute their own reports.
In ABAP Query, you enter texts and select fields and options to determine the structure of the reports. Fields are selected from functional areas and can be assigned a sequence by numbering.
link for abap query --
https://forums.sdn.sap.com/click.jspa?searchID=221911&messageID=2790992
whereas the Report Painter enables you to report on data from various applications. It uses a graphical report structure that forms the basis for the report definition. When defining the report, you work with a structure that corresponds to the final structure of the report when the report data is output.
link for report painter --
https://forums.sdn.sap.com/click.jspa?searchID=221874&messageID=1818114
Regards,
pankaj singh
Message was edited by:
Pankaj Singh
Message was edited by:
Pankaj Singh -
Report Painter and Report Writer (URGENT)
Hi All,
Please can you send me Step by Step screen shots Configuration document for Report Painter and Report Writer,
If any body send relavent data i will give reword points,
Regards,
TMLHi,
see the below link cfor complete documentaion of report painter.
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
Thanks. -
Report Painter and Report Query
Hi,
Can some body explain me the difference between Report painter and report queries. How these are diffrent from ABAP prgram and ABAP queries. Who are the persons who are using all these like functional consultant or ABAPer or End users.
Regards
RKG.Hi
Report Painter is mainly used by CO functional consultants for generating reports using variables, Key fugures and sets. This is a SAP standard functionality.
ABAB Queries / Report queries are created by Abapers and Functional consultants , this is mainly to join two or more tables run a query on the available data in the table and get the reports
ABAP program are complete program which are the coding language of SAP, where a program can be created for a new functionality which is not available in SAP . However the data required for this program has to available in SAP.
Anand -
Dear Friends
Please send steps for Report painter and drilldown report how to do
Regards
JK
Moderator: Step 1 - search before postingdiff b/w normal reports and interactive reports
Normal report contains only one output screen
Interactive reports contains 0-20 screens.
sometimes client requirement is whenever we perform action
on outputscreen it will goes to next screen there we will display the complete details of thet particular field. -
Screen Painter and Menu Painter Translations
Hello All,
I want to translate the Screen painter and Menu Painter Objects .
When I go to the SE41 and select the PF Status of my Program and press change Button I'm getting the following msg :
Make repairs in foreign namespaces only if they are urgent .
If I press Ok and select the Menu path : Goto --> Translation .
The Translation options is in deactivated mode.
How to do the Translation now ?
Regards,
Deepu.KHi
Run trx SE63, then go to: Translation->Short Texts->Screen Painter
Choose:
- Header to translate the title of attribute of the screen;
- Texts to translate the label of the input/ouput fields
Translation->Short Texts->User interface to translate the menu
Max -
I have created a Table Control in a Screen Painter and I need help to fill it.
I assign to the Table Control a field of an internal table but when I try to activate it i receive the followin error:
The field "XXXX-XXXX" is not assigned to a LOOP. "LOOP...ENDLOOP" must apper in PBO and PAI
Can u help me?
Thanx in advanceHi Jose,
Refer the below code for clarification.
Regards,
Raj
*& Module pool ZTESTRAJ_TABLECONTROL *
PROGRAM ztestraj_tablecontrol .
TABLES mara.
CONTROLS : tc1 TYPE TABLEVIEW USING SCREEN 100.
TYPES : BEGIN OF t_mara,
matnr TYPE mara-matnr,
mtart TYPE mara-mtart,
mbrsh TYPE mara-mbrsh,
meins TYPE mara-meins,
lsel TYPE c,
END OF t_mara.
DATA : it_mara TYPE STANDARD TABLE OF t_mara WITH HEADER LINE,
it_mara1 TYPE STANDARD TABLE OF t_mara WITH HEADER LINE,
cols LIKE LINE OF tc1-cols.
DATA : v_lines TYPE i,
lsel,
v_fill TYPE i,
v_limit TYPE i.
DATA : fg_set TYPE c VALUE ''.
DATA : ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
CONSTANTS : c_mtart(4) TYPE c VALUE 'FERT'.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
SET TITLEBAR 'RAJ'.
IF fg_set = ''.
SELECT matnr
mtart
mbrsh
meins
FROM mara
INTO TABLE it_mara
WHERE mtart = c_mtart.
DESCRIBE TABLE it_mara LINES v_fill.
v_lines = v_fill.
fg_set = 'X'.
ENDIF.
IF fg_set = 'X'.
EXIT.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module fill_table_control OUTPUT
text
MODULE fill_table_control OUTPUT.
READ TABLE it_mara INTO it_mara1 INDEX tc1-current_line.
ENDMODULE. " fill_table_control OUTPUT
*& Module cancel INPUT
text
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE. " cancel INPUT
*& Module read_table_control INPUT
text
MODULE read_table_control INPUT.
v_lines = sy-loopc .
it_mara1-lsel = lsel.
MODIFY it_mara FROM it_mara1 INDEX tc1-current_line.
ENDMODULE. " read_table_control INPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
ok_code = sy-ucomm.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'NEXT_LINE'.
tc1-top_line = tc1-top_line + 1.
v_limit = v_fill - v_lines + 1.
IF tc1-top_line > v_limit.
tc1-top_line = v_limit.
ENDIF.
WHEN 'PREV_LINE'.
tc1-top_line = tc1-top_line - 1.
IF tc1-top_line < 0.
tc1-top_line = 0.
ENDIF.
WHEN 'NEXT_PAGE'.
tc1-top_line = tc1-top_line + v_lines.
v_limit = v_fill - v_lines + 1.
IF tc1-top_line > v_limit.
tc1-top_line = v_limit.
ENDIF.
WHEN 'PREV_PAGE'.
tc1-top_line = tc1-top_line - v_lines.
IF tc1-top_line < 0.
tc1-top_line = 0.
ENDIF.
WHEN 'LAST_PAGE'.
tc1-top_line = v_fill - v_lines + 1.
WHEN 'FIRST_PAGE'.
tc1-top_line = 0.
WHEN 'DELETE'.
READ TABLE tc1-cols INTO cols
WITH KEY screen-input = '1'.
IF sy-subrc = 0.
LOOP AT it_mara INTO it_mara1 WHERE lsel = 'X'.
DELETE it_mara.
fg_set = 'X'.
ENDLOOP.
ELSE.
fg_set = ''.
ENDIF.
WHEN 'INSERT'.
LOOP AT it_mara INTO it_mara1 WHERE lsel = 'X'.
INSERT INITIAL LINE INTO it_mara INDEX sy-tabix.
ENDLOOP.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'JADOO'.
READ TABLE tc1-cols INTO cols
WITH KEY selected = 'X'.
IF sy-subrc = 0.
cols-invisible = '1'.
MODIFY tc1-cols FROM cols INDEX sy-tabix.
ENDIF.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT -
Difference between Reaport Painter and Report Writer
HI All,
What is the Difference between Report painter and Report Writer
regards
JKHi
Report Painter allows the user to report on data from various applications using graphical report structure which forms the basis for report.
Report Writer allows the user to report on data from multiple applications using functions such as sets, variables, formulas, cells, key figures and the user can create more complex reports as per clients requirements. -
Want to know abt report painter and need material
want to know abt report painter and need material .
thanks.Hi,
Refer the following links :
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-other/accessing-tables-using-report-painterwriter-98766
http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
http://help.sap.com/saphelp_bw31/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
Regards,
Priyanka. -
Hi,
I've developed a form in the screen painter. I want to add the business logic from SDK. Is it possible...it should be right?
I have a very complex form with around 20-25 edit boxes and one grid. The issues
I have designed the form in the screen painter and am trying to access the edit boxes from SDK. the code snippets is like
oForm = SBO_Application.Forms.GetFormByTypeAndCount("60004", 0)
When i try to access it says form not found. sbo_appl.forms.activeform worked, but when i used
oEdit = oForm.Items.Item("9").Specific
in the next line, it says 9 is not a valid feild.Yes - this is what SP is about. You design your screen
from SP and save it as an XML file. At this point you
load it in B1 from your addon using the LoadBatchAction.
You just need to change the FormID before loading it, this
is an easy task: if you want some sample you can see the
samples here in SDN or check the code of B1DE here on SDN
too.
Once it is loaded you can use all the UI SDK methods and
properties to handle events and items in this form. -
Keeping track of focus gains and losses
In my application, I have a text field that a user can type in an artist/title and search a music library for the query. This application is for a touchscreen so I've included a popup keyboard for the user since no keyboard will be available to use.
The idea behind it is the user touches the text field and gives it focus. Once focus is given to the text box, ther user will then be able to touch/click a JButton that will pop up a keyboard panel. I would like to pass to the keyboard panel which text field last had focus so as they touch the on-screen keys, it will type text into the last focused text field.
I read over the tutorial for using focus listeners and I understand how that works, but how can I go about getting the object that last had focus?
I'm thinking along the lines of have a focus listener on the JButton that displays the keyboard:
// This is called when the user touches the button to display the keyboard
if (artistText.focusLost)
keyboardFocus("artist");
}Obviously the above code isn't valid, but it's how I'm trying to explain myself. keyboardFocus method will have code to setText() to the artistText text field. I can figure that one out.I was testing something before you replied and I was wondering if it would be practical.
Here is the partial code on my GUI class:
// Calls the keyboardFocus() method whenever focus is lost on the field
// and passes the component name
private void titleTextFocusLost (java.awt.event.FocusEvent evt)
keyboardFocus(titleText);
// Takes the passed component and stores it in a public variable
private void keyboardFocus (JTextField comp)
lastFocus = comp;
// Variable that stores that compoent that last had focus
public static JTextField lastFocus;Here is a snippet from my Keyboard class:
// Then the Q button is pressed, the letter Q is set as the text to the last
// JTextField of focus
private void qKeyActionPerformed (java.awt.event.ActionEvent evt)
GUI.lastFocus.setText ("Q");
} If this isn't practical, I'd definate be willing to change it, but what do you think?
Maybe you are looking for
-
BADI / USER EXIT for MB01 - after posting GR.
Hi, We have some requirement, where we need to create the Goods Issue using bdc after posting the GR in MB01. can anybody give the user exit / BADI for this. i have used BADI - MB_DOCUMENT_BADI : It is triggering while click on the Save button in the
-
Automatically attaching CSS style sheets to new documents
I wanted to alert everyone to a great new Community article published by Adobe Community Expert David Powers. The article details how to attach CSS style sheets automatically when you create new documents. Here's the article: http://kb2.adobe.com/com
-
Hello! I have an ipad 2.
Recently I went onto the app store and I want to redownload something I purchased a month ago. Although when I click on the purchase tab, nothing shows up, It is just a gray screen as if I haven't purchase anything. When I tapped on the screen random
-
Upgrading to new iTunes version
When I try to install the latest iTunes verison I get an error message which reads something like "Cannot remove previous version of iTunes. Installation will be stopped". Anyone know why I can't get rid of the previous version?
-
PA3541U-2PRP dynadock vga cannot install with win7 and latest drivers
Hello, I need help installing this on a Tecra A8 S8513. I have Win7 professaional installed and I've tried to install the dynadock with all variations of drivers, letting Windows discover and install (bad 5.3 core was found) and using 7.03 and 7.1,