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.
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.
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:
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.
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.
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) {
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...
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.
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);
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;
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,
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.
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.
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.
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.
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.
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?
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