JSF :: How To Disable / Hide Browser Scroll Bar

Mar 8, 2014

I am using jsf with richfaces. Scroll bar inside panel grid is displayed. Need to disable / hide the bowser (IE-9) scroll bar.

style="overflow:hidden"

Added above style, but not working.

View Replies


ADVERTISEMENT

Browser Automation / Embedding Into GUI / Attaching To Existing Browser Window

Aug 7, 2014

What best API or whatever you call for browser automation? I mean clicking links, filling forms, gathering sources and other info. I already tried selenium WebDriver. It have all needed functions but there is no feature like attaching code into already opened browser so even doing google search it opens new browser window (opening takes ~5-10secs). Also I believe that there is no way that I could embed that browser into GUI.

Also tried WebSpecs and old Watij but also didnt found any way to attach or embed browser into my GUI.

So what I need is that I could create GUI with embeded browser and bunch of buttons. I click buttons then embeded browser clicks links, gets info etc.

View Replies View Related

Swing/AWT/SWT :: How To Scroll Image

Sep 30, 2014

I have a java swing application.

1. The human user of my application asks it to fire up a scanner which scans a paper document. The document is a filled in form.
2. The application then displays the scanned image to the human user.The image is displayed in a JScrollPane since it may be larger than the scroll pane.
3. The human user needs to locate a certain item in the form, for example a social security number, and enter it into a field in a data entry screen.Note that the image and the field appear on the same screen.

Of-course the social security number always appears in the same location in the image. Also the image needs to be the appropriate magnification and resolution to allow the human user to easily read and understand the item he is searching for in the image.

What is the best way to present the scanned image to the user such that he immediately sees the item he requires and can enter it into the data entry field.

View Replies View Related

Swing/AWT/SWT :: Programmatically Scroll Up Or Down Jtable

Apr 17, 2014

I'm having serious issues right now with a JTable inside a JScrollPane.i have some methods that returns different indexes (rows) that i select programatically in a JTable and the problem is that sometimes it goes beyond of what i can see, like, the row gets selected but the scrollbar won't follow up.

i've searched up in google and saw several different methods but those were extremely complex and for stuff i don't need.the simplest solution i found is this:

tInfo.setRowSelectionInterval(searchIndexes.get(currentIndex), searchIndexes.get(currentIndex));
tInfo.scrollRectToVisible(tInfo.getCellRect(currentIndex, 1, true));

but it just doesn't do anything.My table (tInfo) has only two columns so no horizontal bars, just vertical. What can i do to align the scrollbar with the currently selected row in my table? :C

Found a solution using scrollPane.getVerticalScrollBar().setValue();in another thread, i didn't even notice there were like 3 more threads about the same, just different kind of code used in each.

View Replies View Related

Swing/AWT/SWT :: Scroll Pane Is Not Working

Sep 6, 2014

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.sql.*;
class Stock extends JFrame implements ActionListener

[code]....

well everything seems to be working fine only the scroll pane is not working.

View Replies View Related

How To Activate Scroll Bars On JScrollPane

Apr 21, 2015

I got an application with JScrollPanes; they seem to work fine, but fresh after the start, their scrollbars seem dead:I only begin to see their components after resizing the application window with the mouse.Clicking the scroll bars or their buttons (in Metal Look&Feel) does nothing.And there is no 'knob' visible.Dragging the side or bottom of the application window suddenly shows all and makes them operational.My ComponentListener on the window that contains the scrollpanes only does a repaint on the components inside the scrollpanes.Adding such to the code has no effect, neither does a repaint on the scrollpanes themselves.

View Replies View Related

Missing Horizontal Scroll Bars

Dec 24, 2014

I am building a java app and i am wanting to color the 6th 8th and 10th columns differently to make them stand out.

// It creates and displays the table
tableEng = new JTable(buildTableModel(rs));

for(int i=0;i < tableEng.getColumnCount();i++){
packColumn(tableEng,i,5);

[code]....

View Replies View Related

JFrame Scroll Bar - Displaying Cards

Apr 27, 2015

I have tried to add a scroll bar line 28 - 31 and can't figure out why its not working. Its not even showing the scroll bar!

public class TheFrame extends JFrame {
  private static ThePanel canvas;
  private String deckImagesToUse;
  /**
  * The constructor creates a Frame ready to display the cards
  */
  public TheFrame(String cardImgFile) {

[Code] .....

View Replies View Related

Swing/AWT/SWT :: JFrame - Scroll Pane Is Not Working

Sep 5, 2014

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.sql.*;
class Stock extends JFrame implements ActionListener

[Code] ....

Everything is fine but the scroll pane is not working!

View Replies View Related

How To Make JTextField To Scroll Down Each Time New Message Received

Mar 31, 2015

I already done a lot of work(user lists, server logging, private messages), but im there is few thing i still dont know how to really implement and, of course my current program is far from beign decent, so i decided to start asking questions(so far i was just experimenting just using knowledge from book and some info found on Java API).

1. How can i make JTextField to scroll down each time new message received and log is already full? i mean visible part of it, so you don't need to scroll it yourself...

2. Why sequencer doesn't play MIDI if it is launched not by main thread?

3. What is good way to do user list with avatars? atm, i'm using regular JList and listening to selected values to open dialogs.

4. What is a good ways to implement sounds in application, other than MIDI? i know that i should just google it, but anyway.

You can check my source code for it by link. Chat client:URL...

View Replies View Related

GUI Text Editor With Edit And Format Functions - Scroll Pane

Mar 22, 2014

The program below compiles and functions correctly for the most part. It is supposed to be a simple GUI Text Editor with Edit and Format functions. The content pane is supposed to be a scroll pane, however no matter how much I type into the editor, the scroll bar does not appear. Also, the none of the functions under the "Edit" menu work.

Java Code:

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
import java.util.StringTokenizer;
import java.util.regex.Pattern;

/**
* A simple text editor. It creates and displays the GUI Text Editor.
*/
public class TextEditor extends JFrame implements ActionListener

[Code] .....

View Replies View Related

Swing/AWT/SWT :: Scrolled Composite Doesn't Scroll By Mouse Wheel

Sep 7, 2014

Mouse wheel is working properly on macosx but not working on windows.

Here is my layout structure, i implemented mousewheel listener but its not triggering tho.

And my scrolledcomposite declaration:

final ScrolledComposite scrolledComposite = new ScrolledComposite(mainComposite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
scrolledComposite.setExpandHorizontal(true);
scrolledComposite.setExpandVertical(true);
scrolledComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_MAGENTA));

final Composite listComposite = new Composite(scrolledComposite, SWT.NONE);
GridLayout layout = new GridLayout();

[Code] ...

View Replies View Related

Unable To Hide Jframe

Apr 4, 2015

Tried it, I get red line under it, tried to do "jframe1 jframe1 = new jframe1(variable);

jframe1.setVisible(False); still failed. all I want to do is open a different jframe which I got that to work but cant hide show me how to do it without having to emend my code I want to be able to do is in same style.

CashPaybtn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
//System.out.println("CashPaybtn.actionPerformed, event="+evt);
//TODO add your code for CashPaybtn.actionPerformed
//PaymentMethod.setVisible(false);

[Code]...

View Replies View Related

How To Hide Or Not Show Output

Aug 8, 2014

My code is already running. But the problem is, i don't want to see 0 denomination. like for example if i input 3.86 in (dollars).

dollars: 3
quarters: 3
dimes: 1
pennies: 1

so my problem is. it still showing 0 denomination like this:

dollars: 3
quarters: 3
dimes: 1
nickels: 0
pennies: 1

Currently using latest netbeans and if im correct we are using methods and class runner?.. Anyways here's the code..

for method:

package MyPrograms;
public class Mp3Method {
public int dollars(int dollars,int remainingAmount){
return dollars = remainingAmount / 100;
}
public int quarters(int quarters, int remainingAmount){
return quarters = remainingAmount / 25;

[Code] .....

View Replies View Related

Swing/AWT/SWT :: How To Hide The Column

Aug 1, 2014

Hiding the column but not removing , because i need to bring this column id to the next screen, only i do not want to show the column but internally it has to take the value to navigate the screen, but if i use below code, i am getting null pointer exception,

this.column.setMinWidth(0);column.setMaxWidth(0); column.setWidth(0); column.setPreferredWidth(0)

View Replies View Related

How To Disable USB Port In Netbeans (Java)

Dec 3, 2014

If this is the C Programming codes for disabling the USB port:

system("reg add HKEY_LOCAL_MACHINESYSTEMCurrentControlSetSer vicesUSBSTOR /v Start /t REG_DWORD /d 4 /f");

How can I use the codes below in Java using Netbeans?

View Replies View Related

JSF :: Enable / Disable One Inputmask Out Of Two In PrimeFaces

Jul 28, 2014

I am developing one form in jsf/primefaces. I have two inputText(inputMask) for e.g moble number and telephone number. I want to restrict the user to put only one of these two fields . That means if user starts putting value in mobile no. then telephone no. field should be disabled and if user starts putting value in telephone no. then mobile no. field should be disabled.

how should I do this.

View Replies View Related

Enable / Disable JPanel And Its ComboBoxes

Sep 11, 2014

I have a class that extends JFrame, within that, i have set up JPanel where within that i have four JComboBoxes, I am to enable this JPanel and its JComboBoxes at the end of a method

The code for that method is:

private void tableNumberJComboBoxItemStateChanged() {
// load data for table
try {
// get data for table
myResultSet = myStatement.executeQuery("SELECT * FROM"
+ "restauranttables WHERE tableNumber = " + Integer.parseInt(
selectedTableNumber));
 
[Code] ....

I am not sure how to enable this JPanel? I have another Jpanel to Disable but one question at a time i suppose.

View Replies View Related

Swing/AWT/SWT :: JMenuItem Disable On Load?

Oct 10, 2014

I want to disable one of the JMenuItem on load itself but when i tried with following code it is disabling after I selected the JMenuitem.

what additional changes are needed to make it work accordingly.

this.onOffItem = new JMenuItem("Filter");
this.onOffItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
applyTruthFlag(currentBTE.isTruthFlag());
}
});
this.menuFilter.add(this.onOffItem);
private void applyTruthFlag(boolean truthAuswertung) {
this.onOffItem.setEnabled(truthAuswertung);
//this.onOffItem.repaint();
}

View Replies View Related

JSP :: Disable Back Button When Logout

Apr 19, 2014

I have a website which requires login. After I enter username and password and click login button, a new page is loaded. In that page I have a username in the right up corner. When the user clicks logout button, Session.Clear() method is called and also Response.Redirect(" to login page "). It works OK, but the problem appears when I then click Back button in the browser. It gets me back to previous page with the username in the right up corner. Insted, I would like to show message asking user to enter password again so he can login properly.

What should i do at client side???

View Replies View Related

Swing/AWT/SWT :: How To Disable Resizing Of Jframe

Feb 7, 2014

I want my jrame should not be resized when clicking on maximize button of window.and for this i have put setResizable(false)in the constructor of class which extends Jframe.

View Replies View Related

Enable / Disable All Textboxes In Panel

May 31, 2014

I am learning Java but have a strong C# background. I am trying to figure out the syntax to do this in Java. In C# I would do the following to enable all text boxes in a panel

private void EnableAll() {
foreach (Control ctrl in Panel1.Controls) {
if (ctrl is Textbox)
((Textbox)ctrl.Enabled = true;
}
}

Is there something similar I can do in Java to do the same thing.

View Replies View Related

Disable Administrator Permissions For C Drive

Feb 18, 2015

I want to disable the read write execute permissions for the users on C:/ drive. i.e. to disable their Administrator rights. How can I do it using Java?

View Replies View Related

Error When Trying To Hide JComboBox Option?

Jul 25, 2014

Cannot switch on a value of type Object. Only convertible int values, strings or enum variables are permitted

I'm trying to hide and option using switch statement but this is the error i receive.

public void actionPerformed(ActionEvent e)
{
if(e.getSource() == comboDest1)
{
switch(comboDest1.getSelectedItem())

[Code] .....

View Replies View Related

How To Hide A Panel But Preserve The Space

Mar 27, 2014

I have eight panels that are one above the other and are the full width of the frame.

I would like to hide some of them some of the time and then "bring them back".

If I use panel1.setVisible(false) panel1 will disappear but then all the panels below it move up to take panel1's place.

I don't want that to happen. I want just a blank area where panel1 was.

Is there a way to do that?

View Replies View Related

How To Hide JComboBox Array Option

Jul 24, 2014

I'm trying to hide a JComboBox option depending if the a user has picked a certain option from a previous JComboBox.

.setVisible(false). doesn't work

String[] Dest = new String[] {"Select Destination","Crete", "Paris", "Croatia"};
String[] Accomodation = new String[] {"Select your Accomodation","Hotel", "Villa", "Bed & Breakfast","Youth Hostel"};
String[] Night = new String[] {" Select number of Nights", "7","10","14"};
final JComboBox<String> comboDest1 = new JComboBox<String>(Dest);

[Code] ....

I know setVisible isn't the way it's done but i don't know how to do it

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved