query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns list of CardAlbum instances.
public List<CardAlbum> getNewReleasedAlbums(){ List<CardAlbum> cardAlbumList = new ArrayList<>(); String albumId = null; String artistId = null; String artistName = null; String albumImageURL=null; String albumName = null; int albumPopularity; String albumReleaseDate; SpotifyService spotifyService = getSpotifyService(); if(spotifyService!=null) { NewReleases newReleases = spotifyService.getNewReleases(); Pager<AlbumSimple> albumSimplePager = newReleases.albums; //Getting the Album Name for CardAlbum List<AlbumSimple> albumSimpleList = albumSimplePager.items; for (AlbumSimple simpleAlbum : albumSimpleList) { albumId = simpleAlbum.id; albumName = simpleAlbum.name; //Getting the list of Album Artists for CardAlbum Album album = getSpotifyAlbumById(albumId); albumPopularity = album.popularity; albumReleaseDate = album.release_date; List<ArtistSimple> simpleArtistList = album.artists; for (ArtistSimple simpleArtist : simpleArtistList) { artistId = simpleArtist.id; artistName = simpleArtist.name; } //Getting the Album Image for CardAlbum //We want to fetch the url for the image with largest dimension. List<Image> albumImages = simpleAlbum.images; int maxWidth = 0; for (Image albumImage : albumImages) { if(albumImage.width > maxWidth) maxWidth = albumImage.width; } for(Image albumImage : albumImages){ if (albumImage.width == maxWidth) { albumImageURL = albumImage.url; } } //Constructing the List of CardAlbumInstances if (simpleAlbum.name != null && albumImageURL != null && artistName !=null) { cardAlbumList.add(new CardAlbum(albumId,albumName,artistId,artistName,albumImageURL,albumPopularity,albumReleaseDate)); } } }else{ Log.d("SpotifyNewRelease","Invalid Instance Of the SpotifyService"); } return cardAlbumList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Album> findAllAlbums() {\n\t\treturn _albumDao.findAllAlbums();\n\t}", "public List<Album> getAlbums()\r\n {\r\n\treturn albumCollection; // TODO breaks encapsulation\r\n }", "public List<Album> getAlbums(Artist artist);", "List<AlbumDTO> findAll();", "@Override\r\n public L...
[ "0.7291715", "0.688091", "0.6695881", "0.66000754", "0.6347032", "0.6315193", "0.6240534", "0.62130463", "0.61830455", "0.61335427", "0.60493934", "0.60145557", "0.59966946", "0.5983048", "0.5948298", "0.59201026", "0.589361", "0.5852731", "0.58335334", "0.58050656", "0.57995...
0.57489336
26
Initializes the new instance using the given parameters. Progress dialog will be displayed by default when grid is created.
public NewGridFormatActionCommand(FormatType formatType, ODOMSelectionManager selectionManager) { super(formatType, selectionManager); this.displayProgress = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public View()\r\n\t{\r\n\t\tsetGUI();\r\n\t\tfinal Multithreading m = new Multithreading(this);\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Anonymous Timer class for updating progress bars.\r\n\t\t * @param DELAY the system delay for time in milliseconds \r\n\t\t * @param ActionListener the ActionListener object\r\n\t\t */\r...
[ "0.6457187", "0.63816154", "0.6291307", "0.6263892", "0.6235252", "0.62199104", "0.617638", "0.61610013", "0.6158107", "0.6127325", "0.60903454", "0.60788655", "0.60772824", "0.606007", "0.6020849", "0.60190153", "0.60069877", "0.5976927", "0.59611183", "0.59439576", "0.59388...
0.0
-1
Initializes the new instance using the given parameters.
public NewGridFormatActionCommand(FormatType formatType, ODOMSelectionManager selectionManager, boolean displayProgress) { this(formatType, selectionManager); this.displayProgress = displayProgress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Parameters() {\n\t}", "public void init(Object[] parameters) {\n\n\t}", "private Instantiation(){}", "protected void initialize() { \n param1 = SmartDashboard.getNumber(\"param1\");\n param2 = SmartDashboard.getNumber(\"param2\");\n param3 = SmartDashboard.getNumber(\"param3...
[ "0.6996005", "0.6920473", "0.68091923", "0.6792459", "0.67817444", "0.6774754", "0.6765213", "0.6746225", "0.6593587", "0.65760994", "0.6540276", "0.65083516", "0.6463393", "0.6372489", "0.63676673", "0.6355538", "0.63458264", "0.6328853", "0.6311476", "0.6306477", "0.628013"...
0.0
-1
This action command can only be performed when a single empty format is selected and the format type can reasonably be created at the selected point in the document.
public boolean enable(ODOMActionDetails details) { return ((details.getNumberOfElements() == 1) && selectionIsAppropriate(details.getElement(0)) && canReplace(details.getElement(0))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NewGridFormatActionCommand(FormatType formatType,\n ODOMSelectionManager selectionManager) {\n super(formatType, selectionManager);\n this.displayProgress = true;\n }", "public NewGridFormatActionCommand(FormatType formatType,\n ...
[ "0.60237247", "0.5617843", "0.54317623", "0.5430402", "0.5369889", "0.5364081", "0.534664", "0.53422683", "0.5327705", "0.53220576", "0.53135127", "0.52969563", "0.52007097", "0.5168228", "0.51574475", "0.5122699", "0.50587976", "0.5041113", "0.503915", "0.5026683", "0.502263...
0.0
-1
Supporting method that is used to make sure that the selection is appropriate for this action command.
protected boolean selectionIsAppropriate(Element selection) { return selection.getName().equals(FormatType.EMPTY.getElementName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }", "@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}", "public void selected(String action);", "private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSel...
[ "0.667187", "0.66663164", "0.6634586", "0.6631937", "0.66159236", "0.6562563", "0.65611786", "0.65611786", "0.6538023", "0.6514697", "0.6513967", "0.6511908", "0.64908767", "0.6461356", "0.64515114", "0.63387233", "0.6334562", "0.6321056", "0.62352407", "0.6150331", "0.612989...
0.6259914
18
Determines whether the given element can be replaced by the required type of format without causing layout constraints to be violated.
protected boolean canReplace(ODOMElement element) { Element e = ActionSupport.cloneContainingDeviceLayout(element); e = replace(e, 1, 1); return !LayoutConstraintsProvider.constraints.violated(e, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isSuitableElement(Element element) {\n \n \t\tif (element instanceof ElementCSSInlineStyle\n \t\t\t\t&& isAttributeAvailable(element, STYLE_TAG_NAME)) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}", "protected boolean canDiagramBeCreatedFromElement(IElement pElement)\n {\n...
[ "0.55464506", "0.542513", "0.5401856", "0.5367354", "0.5272628", "0.50903326", "0.50402987", "0.50315344", "0.4999042", "0.4936658", "0.4920476", "0.49172023", "0.48764148", "0.48598176", "0.48589402", "0.48578295", "0.48232117", "0.48167658", "0.4813581", "0.47964102", "0.47...
0.75461936
0
This method can called by GridActionRunner then IProgressMonitor is present or can be called in other way when progress dialog is not required.
protected void replaceAndSelect(ODOMActionDetails details, Dimension dimensions, IProgressMonitor monitor) { progressMonitor = monitor; // height = rows, width = columns Element e = replace(details.getElement(0), dimensions.height, dimensions.width); if (progressMonitor != null) { progressMonitor.worked((dimensions.height + dimensions.width) *(GridActionRunner.PROGRESS_SCALE-1)); progressMonitor = null; } setSelection(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n public void initializeValidationData(IProgressMonitor arg0)\n {\n\n }", "@Override\n...
[ "0.62517726", "0.61751956", "0.59807307", "0.5980704", "0.59054756", "0.58675927", "0.5856205", "0.58411264", "0.5833097", "0.581295", "0.58118916", "0.5809891", "0.5777093", "0.5777093", "0.57645255", "0.5735805", "0.5716465", "0.57148933", "0.57045084", "0.56770504", "0.565...
0.0
-1
The specified format is replaced by a prototypical instance of the required type of grid format, dimensioned as specified.
protected Element replace(Element element, int rows, int cols) { Element replacement = null; if (!selectionIsAppropriate(element)) { throw new IllegalArgumentException( "The action can not replace a " + //$NON-NLS-1$ element.getName()); } else { try { // selectionManager is optional if (selectionManager != null) { // disable the selection events this.selectionManager.setEnabled(false); } replacement = FormatPrototype.createSizedGrid(formatType, null, rows, cols, progressMonitor); } finally { if (selectionManager != null) { // ensure selection events are enabled this.selectionManager.setEnabled(true); } } // call common utility method replaceElement(element, replacement); } return replacement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFormat(edu.umich.icpsr.ddi.FormatType format)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FormatType target = null;\n target = (edu.umich.icpsr.ddi.FormatType)get_store().find_element_user(FORMAT$10, 0);\n ...
[ "0.59683865", "0.5933664", "0.5792562", "0.57851785", "0.57565224", "0.57228935", "0.57228935", "0.57228935", "0.5722732", "0.5712576", "0.5657148", "0.5634334", "0.56188804", "0.5519108", "0.54356486", "0.5414588", "0.54055053", "0.5401526", "0.53833914", "0.53280044", "0.52...
0.0
-1
Constructor for the Surround Panel Inherits the attributes of a JPanel. Enables the user to interact with the SurroundGame.
public SurroundPanel(JMenuItem quitItem,JMenuItem newGameItem){ try{ this.addIcons(); }catch(MalformedURLException exception){ exception.printStackTrace(); } this.quitItem = quitItem; this.newGameItem = newGameItem; startUpConditions(); game = new SurroundGame(selectedSize,selectedPlayers, firstTurn); winCounter = new JTextArea(1,10); playerTrack = new JTextArea(1,10); playerTrack.setText(game.toString()); menuBar = new JMenuBar(); menu = new JMenu("Options"); winCounter.setFont(new Font("Serif", Font.BOLD, 24)); playerTrack.setFont(new Font("Serif", Font.BOLD, 24)); southTextArea = new JPanel(); center = new JPanel(); top = new JPanel(); bottom = new JPanel(); setLayout(new BorderLayout()); // board = new JButton[selectedSize][selectedSize]; listener = new ButtonListener(); center.setLayout(new GridLayout(selectedSize, selectedSize,3,2)); southTextArea.setLayout(new GridLayout(1,2,50,0)); dim = new Dimension(30,30); Buttons(); setCells(); quitItem.addActionListener(listener); newGameItem.addActionListener(listener); menu.add(quitItem); menu.add(newGameItem); menuBar.add(menu); top.add(menuBar); bottom.add(winCounter); bottom.add(playerTrack); southTextArea.add(winCounter); southTextArea.add(playerTrack); JLabel title = new JLabel("Surround"); top.add(title); center.setBackground(Color.LIGHT_GRAY); add(setWinPanel(),BorderLayout.EAST); add(center, BorderLayout.CENTER); add(top, BorderLayout.NORTH); add(bottom, BorderLayout.SOUTH); add(southTextArea,BorderLayout.SOUTH); setPreferredSize(new Dimension(1000,800)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GamePanel() {\n this.setLayout(null);\n\n initializeStateLabel();\n\n initializePileLabel();\n\n initializeSetColorButton();\n\n initializeDrawButton();\n initializeHideButton();\n\n this.setVisible(true);\n }", "public GamePanel() {\n setBackground(n...
[ "0.6470611", "0.6456944", "0.6336797", "0.6304908", "0.6224593", "0.6224563", "0.62135744", "0.6128607", "0.6126576", "0.6111638", "0.61048824", "0.605479", "0.60383594", "0.60359776", "0.6016455", "0.5999651", "0.5974071", "0.5969982", "0.59699786", "0.5959148", "0.58993363"...
0.639692
2
the index of the array is the player for instance player 1 is the index 0.
public String setWins(int Player){ int winsUpdater = winsTracker[Player].getPlayer(); winsUpdater++; for(int i = 0; i<winsTracker.length;i++){ if(i==Player){ winsTracker[Player].setPlayer(winsUpdater); Player++; return "Player "+Player+"'s wins " +winsUpdater; } } return "null"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getPlayer(int index) {\r\n return players[index];\r\n }", "int getActivePlayerIndex();", "public int getPlayerPosition(int player)\n {\n return players[player];\n }", "@Override\n public Player getPlayerOnIndex(int index) {\n return players.get(index);\n }", "publi...
[ "0.7358926", "0.7260977", "0.72494125", "0.710453", "0.707265", "0.69833326", "0.68491465", "0.6846428", "0.67773676", "0.65260655", "0.6414425", "0.63944757", "0.6390181", "0.6344722", "0.63347346", "0.6304283", "0.6304283", "0.62624407", "0.6215441", "0.61913896", "0.618466...
0.0
-1
Don't need to call Display board, or reset reset it done when the game is constructed Display board is done only when the user inputs a valid JButton press. this methods handles all of the dialog boxes for the panel
private void startUpConditions(){ String strSize = JOptionPane.showInputDialog(null, "Pick a Board Size between 3-30."); try{ selectedSize = Integer.parseInt(strSize); if(selectedSize < 2||selectedSize > 30){ selectedSize = 10; JOptionPane.showMessageDialog(null, "The Game has" + " defaulted to a Board Size of 10."); } }catch(NumberFormatException exception){ JOptionPane.showMessageDialog(null, "The Game has" + " defaulted to a Board Size of 10."+ " Because you input characters other than numbers."); selectedSize = 10; } //selecting the number of players within the game //verifying a valid input for the Players //It's awfully boring to play by yourself after all. String strPlay = JOptionPane.showInputDialog(null, "Pick number of players between 2-10"); try{ if(strPlay==null){ JOptionPane.showMessageDialog(null, "The game" +" has defaulted to 2 players."); selectedPlayers = 2; } // if(input == JOptionPane.CANCEL_OPTION){ // System.exit(1); // } if(strPlay!=null){ selectedPlayers = Integer.parseInt(strPlay); if(selectedPlayers < 2||selectedPlayers > 10){ selectedPlayers = 2; JOptionPane.showMessageDialog(null, "The game" +" has defaulted to 2 players." +" Because you input a number that " +"was out of bounds."); } } }catch(NumberFormatException exception){ JOptionPane.showMessageDialog(null,"You input " + "something that was not a number." + " The game has defaulted to 2 players."); selectedPlayers = 2; } String goFirst = JOptionPane.showInputDialog(null, "Pick" + " who will go first."); try{ if(goFirst==null){ JOptionPane.showMessageDialog(null, "The game" +" has defaulted to Player 1s turn."); this.firstTurn = 0; } if(goFirst!=null){ this.firstTurn = Integer.parseInt(goFirst); } }catch(NumberFormatException exception){ JOptionPane.showMessageDialog(null, "You input " + "something other than a number." + " The Game has defaulted to player 1s turn."); this.firstTurn = 0; }finally{ JOptionPane.showMessageDialog(null, "The game" +" will now begin."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) \n {\n JFrame dialogBox;\n \n // Use a nested for loop to loop through the buttons and find which\n // one was clicked.\n for (int row = 0; row < 15; row++) \n {\n for (int col = 0; col < 15; col++) \n ...
[ "0.70677197", "0.69113445", "0.67509955", "0.6696094", "0.6677591", "0.66742253", "0.6663313", "0.6624019", "0.6623674", "0.66193575", "0.66187054", "0.6603731", "0.65916574", "0.6589246", "0.6586322", "0.6566708", "0.65585744", "0.6552455", "0.6545538", "0.6526315", "0.65093...
0.6200916
71
/ renamed from: co.znly.models.PingProto$GroupMemberMetadataOrBuilder
public interface PingProto$GroupMemberMetadataOrBuilder extends MessageLiteOrBuilder { long getBolt(); Timestamp getLastBoltAt(); Timestamp getMuteUntil(); boolean getMuteUntilComeBack(); String getNickname(); ByteString getNicknameBytes(); boolean hasLastBoltAt(); boolean hasMuteUntil(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.protobuf.ByteString getGroupBytes();", "private GroupEventPacket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public final void rule__AstMemberAccess__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n ...
[ "0.5502591", "0.54318887", "0.53426754", "0.5334999", "0.527632", "0.52704954", "0.5251858", "0.5239086", "0.5203757", "0.5198238", "0.51652205", "0.51495135", "0.51230586", "0.50806296", "0.506883", "0.506484", "0.50481415", "0.50481415", "0.50448924", "0.50443274", "0.50404...
0.8427374
0
Unit test designed to test the generation of monochromatic palettes with one total color.
@Test public void testMonochromaticPalettesOne() { this.runAnalogousPalette(RGB_RESULTS_ONE, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesThree() {\n this.runAnalogousPalette(RGB_RESULTS_THREE, 3);\n }", "@Test\r\n public void testSingleColor(){\r\n List<Tone> palette = Arrays.asList(new Tone(Color.red));\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sam...
[ "0.7919856", "0.7709736", "0.7556153", "0.69638497", "0.682794", "0.6718985", "0.634665", "0.62984544", "0.61961013", "0.61945564", "0.6151421", "0.5972833", "0.59545624", "0.5915486", "0.58732486", "0.57971114", "0.5788441", "0.5776528", "0.57583827", "0.57454103", "0.571594...
0.8257104
0
Unit test designed to test the generation of monochromatic palettes with two total colors.
@Test public void testMonochromaticPalettesTwo() { this.runAnalogousPalette(RGB_RESULTS_TWO, 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }", "@Test\n public void testMonochromaticPalettesThree() {\n this.runAnalogousPalette(RGB_RESULTS_THREE, 3);\n }", "@Test\r\n public void testSingleColor(){\r\n List<Tone>...
[ "0.80633074", "0.7914652", "0.7320044", "0.6935866", "0.6828584", "0.6620877", "0.6565902", "0.6336578", "0.59438956", "0.59390193", "0.5890483", "0.5870592", "0.58481073", "0.57906175", "0.5784868", "0.5772018", "0.5730552", "0.5728896", "0.56513923", "0.5635327", "0.5621419...
0.8217433
0
Unit test designed to test the generation of monochromatic palettes with three total colors.
@Test public void testMonochromaticPalettesThree() { this.runAnalogousPalette(RGB_RESULTS_THREE, 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }", "@Test\n public void testMonochromaticPalettesTwo() {\n this.runAnalogousPalette(RGB_RESULTS_TWO, 2);\n }", "@Test\r\n public void testSingleColor(){\r\n List<Tone> pal...
[ "0.79449755", "0.75722283", "0.7324062", "0.67629963", "0.64909905", "0.64357394", "0.62936777", "0.61953783", "0.6081073", "0.59889793", "0.59740037", "0.59492123", "0.59473336", "0.5846121", "0.5788331", "0.5766783", "0.57024324", "0.5683587", "0.56832266", "0.56772834", "0...
0.84522545
0
Helper method used to test monochromatic palettes.
private void runAnalogousPalette(int[][][] RGB_RESULTS, int amount) { RGBColor monochromatic; String err; int[] coords; int[] monoCoords; for(int index = 0; index < RGB_INPUTS.length; index++) { coords = RGB_INPUTS[index]; this.paletteOne = new MonoChromaticPalette(new RGBColor(coords[0], coords[1], coords[2]), amount); for(int index2 = 0; index2 < this.paletteOne.getColors().size(); index2++) { monochromatic = Color.getRGBColor(this.paletteOne.getColor(index2)); monoCoords = RGB_RESULTS[index][index2]; err = String.format("Monochromatic color %s was given instead of %s!\n", monochromatic, Arrays.toString(monoCoords)); assertEquals(err, monoCoords[0], monochromatic.getRed(), 2); assertEquals(err, monoCoords[1], monochromatic.getGreen(), 2); assertEquals(err, monoCoords[2], monochromatic.getBlue(), 2); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }", "@Test\n public void testMonochromaticPalettesThree() {\n this.runAnalogousPalette(RGB_RESULTS_THREE, 3);\n }", "@Test\n public void testMonochromaticPalettesTwo() {\n ...
[ "0.8014698", "0.7619283", "0.73572975", "0.63924307", "0.6137443", "0.6001579", "0.5743821", "0.56664854", "0.5483085", "0.5466134", "0.54303837", "0.5276828", "0.5255165", "0.52508605", "0.5234928", "0.52322483", "0.519793", "0.51741576", "0.5156199", "0.51492685", "0.513242...
0.47927752
78
Encodes a tree to a single string.
public String serialize(TreeNode root) { if (root == null) { return "[]"; } List<String> list = new ArrayList<>(); Queue<TreeNode> queue = new LinkedList<>(); queue.offer(root); while (!queue.isEmpty()) { TreeNode node = queue.poll(); if (node == null) { list.add("null"); continue; } else { list.add("" + node.val); } if (node.left != null) { queue.offer(node.left); } else { queue.offer(null); } if (node.right != null) { queue.offer(node.right); } else { queue.offer(null); } } // 移除末尾的 null for (int i = list.size() - 1; i >= 0; i--) { if (list.get(i).equals("null")) { list.remove(i); } else { break; } } StringBuilder sb = new StringBuilder(); sb.append('['); for (int i = 0; i < list.size(); i++) { sb.append(list.get(i)); if (i == list.size() - 1) { sb.append("]"); } else { sb.append(","); } } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }", "public TreeNode encode(Node root) {\n return en(root);\n }", "public String toTreeString() {\n return toTreeString(overallRoot);\n }", "public String tree2Str(Tree...
[ "0.79797685", "0.7266544", "0.6766947", "0.67098355", "0.65929043", "0.6520053", "0.651422", "0.6502086", "0.6480438", "0.6466228", "0.6452631", "0.6446793", "0.6446198", "0.64218706", "0.6407569", "0.64030504", "0.64030504", "0.64030504", "0.6394578", "0.6385417", "0.6381468...
0.58973026
68
Decodes your encoded data to tree.
public TreeNode deserialize(String data) { if (data == null || data.equals("[]") || data.length() <= 2) { return null; } String[] strArray = data.substring(1, data.length() - 1).split(","); Queue<String> list = new LinkedList<>(); list.addAll(Arrays.asList(strArray)); Queue<TreeNode> queue = new LinkedList<>(); TreeNode root = new TreeNode(Integer.valueOf(list.poll())); queue.offer(root); while (!queue.isEmpty()) { TreeNode node = queue.poll(); String leftVal = list.poll(); if (leftVal == null || leftVal.equals("null")) { node.left = null; } else { TreeNode leftNode = new TreeNode(Integer.valueOf(leftVal)); node.left = leftNode; queue.offer(leftNode); } String rightVal = list.poll(); if (rightVal == null || rightVal.equals("null")) { node.right = null; } else { TreeNode rightNode = new TreeNode(Integer.valueOf(rightVal)); node.right = rightNode; queue.offer(rightNode); } } return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode deserialize(String data) {\n byte[] bytes = Base64.getDecoder().decode(data);\n IntBuffer intBuf = ByteBuffer.wrap(bytes)\n .order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n int[] nums = new int[intBuf.remaining()];\n intBuf.get(nums);\n //for (int i = 0; i...
[ "0.6894664", "0.6808548", "0.650279", "0.64891165", "0.64851105", "0.6415433", "0.6362339", "0.63083476", "0.6284537", "0.622987", "0.6213446", "0.6161982", "0.6147146", "0.6140804", "0.6133282", "0.6078927", "0.6073399", "0.6069482", "0.6064389", "0.60632867", "0.6053727", ...
0.5633201
59
TODO Autogenerated method stub
public static void main(String[] args) { try { //Initialize shell frame ShellFrame = new ShellFrame(360,200,"Menu principal",null); //Content charge contentCharge (); //ShellFrame standby ShellFrame.StandBy(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Error. GUI initialization failure", "Java Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
jhipsterneedleentityaddfield JHipster will add fields here
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.62763983", "0.6147681", "0.5844888", "0.5740545", "0.5560386", "0.547659", "0.5464255", "0.54582417", "0.5440488", "0.54376584", "0.54208726", "0.5391521", "0.5391482", "0.5388153", "0.53871155", "0.5342213", "0.53312904", "0.53302115", "0.53127635", "0.5301875", "0.529629...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof LigneEntreeStock)) { return false; } return id != null && id.equals(((LigneEntreeStock) o).id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.62918586", "0.6070626", "0.5624308", "0.55707645", "0.5542136", "0.5499789", "0.54704744", "0.54322296", "0.54183644", "0.53788567", "0.53535837", "0.5329865", "0.5316571", "0.52932686", "0.52802354", "0.52791643", "0.5273476", "0.52728873", "0.5265326", "0.5250299", "0.52...
0.0
-1
Creates a new instance of ProtoVehicle
public ProtoVehicle() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n...
[ "0.7946125", "0.7859736", "0.7859736", "0.74477345", "0.7425552", "0.740157", "0.72644097", "0.7034357", "0.6821787", "0.67524636", "0.67491025", "0.66199946", "0.6553327", "0.653172", "0.6501125", "0.640917", "0.63751537", "0.6361469", "0.6146879", "0.6109922", "0.6086626", ...
0.8160116
0
Creates a new instance of ProtoVehicle with a specified size
public ProtoVehicle(int size) { super(size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProtoVehicle() {\n super();\n }", "public SpaceStub(int size) {\n super(size);\n this.size = size;\n }", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engine...
[ "0.6265049", "0.60462123", "0.60365963", "0.59505737", "0.57756966", "0.57756966", "0.5745867", "0.57236546", "0.57161707", "0.5704962", "0.562769", "0.56206286", "0.5579952", "0.55327034", "0.54546803", "0.5444205", "0.54236996", "0.534558", "0.53287905", "0.5296217", "0.528...
0.83516955
0
One time step. Get the sensor readings; calculate the outputs.
public AbstractDriveOutput step(AbstractWorld theWorld) { double right = theWorld.getStimulusStrength(rightSensorLocation()); double left = theWorld.getStimulusStrength(leftSensorLocation()); if (mySensors.theSensors.size() > 1) { System.out.println("okay... time to generalize ProtoVehicle:step to sum all the drives!!"); assert (false); } // only one sensor... for (AbstractSensor nextSensor : mySensors.theSensors) { if (nextSensor.getCrossed()) { return new MyDriveOutput(right, left); // backwards } } return new MyDriveOutput(left, right); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pollAndProcessInput() {\n\tlong time ;\n int index ;\n\n\t// Set button values. In the Trackd implementation there is only one\n\t// set of buttons for all sensors and valuators.\n for (int i = 0 ; i < buttons.length ; i++) {\n buttons[i] = getButton(i) ;\n }\n\n\t// Se...
[ "0.6475555", "0.6328373", "0.63280946", "0.6151415", "0.6120036", "0.6095264", "0.6070379", "0.60477716", "0.6032961", "0.6028382", "0.5972874", "0.5942488", "0.5937712", "0.59286845", "0.59265596", "0.59119016", "0.58901423", "0.58788323", "0.5863143", "0.58546734", "0.58209...
0.0
-1
Calculate where the right sensor is.
private Point2D.Double rightSensorLocation() { double dx = getSize() * Math.cos(getOrientation() - Math.PI / 4); double dy = -getSize() * Math.sin(getOrientation() - Math.PI / 4); return new Point2D.Double(getX() + dx * 2, getY() + dy * 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Point2D.Double leftSensorLocation() {\n double dx = getSize() * Math.cos(getOrientation() + Math.PI / 4);\n double dy = -getSize() * Math.sin(getOrientation() + Math.PI / 4);\n return new Point2D.Double(getX() + dx * 2, getY() + dy * 2);\n }", "private void calculateLocation()\r\n...
[ "0.67609453", "0.66259027", "0.64186", "0.6081089", "0.6034588", "0.5985673", "0.59379137", "0.5922825", "0.58905846", "0.5829049", "0.5816721", "0.58015597", "0.58012867", "0.57921815", "0.5774685", "0.5746246", "0.5737261", "0.57364345", "0.5719668", "0.57154906", "0.571250...
0.70038325
0
Calculate where the left sensor is.
private Point2D.Double leftSensorLocation() { double dx = getSize() * Math.cos(getOrientation() + Math.PI / 4); double dy = -getSize() * Math.sin(getOrientation() + Math.PI / 4); return new Point2D.Double(getX() + dx * 2, getY() + dy * 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getLeftCurrent() {\n return leftMotor.getOutputCurrent();\n }", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public int getLeftEnc() {\n\t\treturn TalLM.getSelectedSensorPosition(0)-initEncL;\n\t}", "public double getLeft() {\n return this.xL;\n }", "p...
[ "0.7061113", "0.7024485", "0.69557476", "0.69539016", "0.6904851", "0.6873666", "0.6820618", "0.6736811", "0.6730669", "0.6714624", "0.67131776", "0.6648926", "0.661511", "0.6600197", "0.6599045", "0.6576509", "0.6560199", "0.65427196", "0.6492218", "0.64865535", "0.6461605",...
0.7642983
0
method that updates the competency drop down in the screen based on competency Group Selected
public void getAllCompetencyByCompetencyGroupId(ValueChangeEvent event) { Integer competencyGroupId = (Integer) event.getNewValue(); if(competencyCodes.size()>0){ competencyCodes.clear(); } //List<Competency> selectedCompetency = new ArrayList<Competency>(); List<Competency> allCompetency = competencyService.getAllCompetencys(); for(Competency competency:allCompetency){ if(competency.getCompetencyGroupId().equals(competencyGroupId)){ this.competencyCodes.add(new SelectItem(competency.getCompetencyId(), competency.getCompetencyName())); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void commitCompetitiveGroupFieldValues() {\r\n ((CompetitiveGroup) competitive)\r\n .setUpdateMethod((UpdateMethod) updateMethod.getSelectedItem());\r\n ((CompetitiveGroup) competitive).setLearningRate(Double\r\n .parseDouble(tfEpsilon.getText()));\r\n ((C...
[ "0.6115378", "0.609576", "0.6016306", "0.5895905", "0.5774539", "0.57062674", "0.57049125", "0.56849223", "0.56150466", "0.5602516", "0.5596355", "0.5586204", "0.55837464", "0.5560795", "0.5551903", "0.55397403", "0.5519287", "0.5514503", "0.54939055", "0.54877424", "0.546333...
0.6394405
0
method that updates the SKill drop down in the screen based on competency Selected
public void getAllSkillByCompetencyId(ValueChangeEvent event) { Integer competencyId = (Integer) event.getNewValue(); if(skillCodes.size()>0){ skillCodes.clear(); } //List<Competency> selectedCompetency = new ArrayList<Competency>(); List<Skill> allSkill = skillService.getAllSkills(); for(Skill skill:allSkill){ if(skill.getCompetencyId().equals(competencyId)){ this.skillCodes.add(new SelectItem(skill.getSkillId(), skill.getSkillName())); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void abilitySelection() {\n\t\tabilityInput.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tphysicalAbilityPanel.removeAll();\n\n\t\t\t\tmentalAbilityPanel.removeAll();\n\n\t\t\t\tabilitySelectionPanel.add(lowFantasy);\n\t\t\t\tabil...
[ "0.60132885", "0.59634256", "0.58919376", "0.5857334", "0.58231115", "0.5814316", "0.57740945", "0.57672536", "0.5763438", "0.5730481", "0.57288796", "0.5720916", "0.5695653", "0.56766415", "0.5644863", "0.56396544", "0.56222224", "0.56165385", "0.5601179", "0.5574488", "0.55...
0.5296129
52
TODO Autogenerated method stub
@Override public String getInfo() { return "Jersey + Spring!!!"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Arg1 : String URL Arg2 : String MAC
@Override protected Integer doInBackground(String... bundle) { try{ URL url = new URL(bundle[0]); URLConnection conn = url.openConnection(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(conn.getInputStream()); NodeList nodes = doc.getElementsByTagName("document"); NodeList titles = nodes.item(0).getChildNodes(); for (int i = 0; i < titles.getLength(); i++) { if(titles.item(i) instanceof Element){ Element element = (Element) titles.item(i); if(element.getAttribute("addrtype").equals("mac")){ nbKoters ++; if(element.getAttribute("addr").equals(bundle[1])){ Log.i(TAG,"You're Mac has been matched\nYou'll be redirected"); }else{ Log.i(TAG, "You're MAC don't match\nPlease use this app in a KotNekted house!"); } Log.i(TAG, "MAC : " + element.getAttribute("addr")); } } } }catch(Exception e){ e.printStackTrace(); Log.i(TAG,bundle[0]+ " file access issues"); } return nbKoters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DownloadInfo mo54422b(String str, String str2);", "protected boolean sameFile(URL paramURL1, URL paramURL2) {\n/* 400 */ if (paramURL1.getProtocol() != paramURL2.getProtocol() && (paramURL1\n/* 401 */ .getProtocol() == null || \n/* 402 */ !paramURL1.getProtocol().equalsIgnoreCase(paramURL2.getPro...
[ "0.6234304", "0.5636333", "0.5628513", "0.5621401", "0.5490532", "0.5447457", "0.53943723", "0.5317728", "0.5244931", "0.5240546", "0.5232969", "0.52086055", "0.5193646", "0.51920474", "0.51903325", "0.51853853", "0.5152229", "0.51466596", "0.51382595", "0.5134447", "0.511749...
0.51210076
20
/ Get fontmetrics and calculate position.
private void createRotatedImage(Graphics g, String text, Color bgColor, Color fgColor, int angle1) { double angle = (double)angle1 * radiansPerDegree; FontMetrics fm = g.getFontMetrics(); int width = fm.stringWidth(text); int height = fm.getHeight(); int ascent = fm.getMaxAscent(); int leading = fm.getLeading(); int verMarzin = (height+ascent+leading - height)/2; int h = verMarzin + ascent + leading; // /* // * Create the image. // */ // destroyOffscreen(); // if (OffscreenI == null) // { // createOffscreen(width + 8, height); // } // updateOffscreen(width + 8, height); // // //Image image = parent.getApplet().createImage(width + 8, height); // // /* // * Set graphics attributes and draw the string. // */ // //Graphics gr = image.getGraphics(); // OffscreenG.setColor(bgColor); // //OffscreenG.fillRect(0, 0, OffscreenI.getWidth(parent.getApplet()), OffscreenI.getHeight(parent.getApplet())); // // OffscreenG.setFont(g.getFont()); // // OffscreenG.setColor(fgColor); // OffscreenG.drawString(text, 4, ascent + leading); /* * Create an imagefilter to rotate the image. */ //ImageFilter filter = new RotateFilter(angle); /* * Produce the rotated image. */ //ImageProducer producer = new FilteredImageSource(OffscreenI.getSource(), filter); /* * Create the rotated image. */ // if (true) return image; //OffscreenI = parent.getApplet().createImage(producer); //return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FontMetrics getFontMetrics(Font f)\r\n\t{\r\n\t\treturn _g2.getFontMetrics();\r\n\t}", "private float drawText(Graphics2D g2d) {\n float yOffset = 0; // 1\" top margin\r\n for (TextLayout tl : textLayouts) {\r\n yOffset += tl.getAscent();\r\n tl.draw(g2d, 0, yOffset);\r\n ...
[ "0.68209356", "0.6188208", "0.6015358", "0.5940602", "0.5936584", "0.59121275", "0.5899726", "0.5881555", "0.58537817", "0.5808929", "0.5797055", "0.5789813", "0.57858294", "0.5775746", "0.57517624", "0.57411015", "0.573105", "0.5702817", "0.5700128", "0.5685358", "0.56848127...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
private com.fasterxml.jackson.core.JsonToken m13148b(boolean r15) { /* r14 = this; r10 = 45; r12 = 57; r11 = 48; r1 = 1; r2 = 0; r0 = r14.f8609n; r4 = r0.m13317l(); if (r15 == 0) goto L_0x0197; L_0x0010: r4[r2] = r10; r0 = r1; L_0x0013: r3 = r14.f8599d; r5 = r14.f8600e; if (r3 >= r5) goto L_0x0120; L_0x0019: r3 = r14.f8574N; r5 = r14.f8599d; r6 = r5 + 1; r14.d = r6; r3 = r3[r5]; L_0x0023: if (r3 != r11) goto L_0x0029; L_0x0025: r3 = r14.m13139W(); L_0x0029: r5 = r2; r13 = r3; r3 = r4; r4 = r13; L_0x002d: if (r4 < r11) goto L_0x0190; L_0x002f: if (r4 > r12) goto L_0x0190; L_0x0031: r5 = r5 + 1; r6 = r3.length; if (r0 < r6) goto L_0x003e; L_0x0036: r0 = r14.f8609n; r0 = r0.m13319n(); r3 = r0; r0 = r2; L_0x003e: r6 = r0 + 1; r3[r0] = r4; r0 = r14.f8599d; r4 = r14.f8600e; if (r0 < r4) goto L_0x0128; L_0x0048: r0 = r14.mo1754L(); if (r0 != 0) goto L_0x0128; L_0x004e: r7 = r1; r0 = r2; r9 = r5; r4 = r3; r5 = r6; L_0x0053: if (r9 != 0) goto L_0x0071; L_0x0055: r3 = new java.lang.StringBuilder; r6 = "Missing integer part (next char "; r3.<init>(r6); r6 = com.fasterxml.jackson.core.base.ParserMinimalBase.m13218e(r0); r3 = r3.append(r6); r6 = ")"; r3 = r3.append(r6); r3 = r3.toString(); r14.m13205c(r3); L_0x0071: r3 = 46; if (r0 != r3) goto L_0x0188; L_0x0075: r3 = r5 + 1; r4[r5] = r0; r5 = r4; r4 = r3; r3 = r0; r0 = r2; L_0x007d: r6 = r14.f8599d; r8 = r14.f8600e; if (r6 < r8) goto L_0x0135; L_0x0083: r6 = r14.mo1754L(); if (r6 != 0) goto L_0x0135; L_0x0089: r6 = r1; L_0x008a: if (r0 != 0) goto L_0x0091; L_0x008c: r7 = "Decimal point not followed by a digit"; r14.m13202a(r3, r7); L_0x0091: r8 = r0; r0 = r4; r13 = r3; r3 = r5; r5 = r13; L_0x0096: r4 = 101; // 0x65 float:1.42E-43 double:5.0E-322; if (r5 == r4) goto L_0x009e; L_0x009a: r4 = 69; if (r5 != r4) goto L_0x0180; L_0x009e: r4 = r3.length; if (r0 < r4) goto L_0x00a9; L_0x00a1: r0 = r14.f8609n; r0 = r0.m13319n(); r3 = r0; r0 = r2; L_0x00a9: r4 = r0 + 1; r3[r0] = r5; r0 = r14.f8599d; r5 = r14.f8600e; if (r0 >= r5) goto L_0x0155; L_0x00b3: r0 = r14.f8574N; r5 = r14.f8599d; r7 = r5 + 1; r14.d = r7; r5 = r0[r5]; L_0x00bd: if (r5 == r10) goto L_0x00c3; L_0x00bf: r0 = 43; if (r5 != r0) goto L_0x017a; L_0x00c3: r0 = r3.length; if (r4 < r0) goto L_0x0177; L_0x00c6: r0 = r14.f8609n; r3 = r0.m13319n(); r0 = r2; L_0x00cd: r4 = r0 + 1; r3[r0] = r5; r0 = r14.f8599d; r5 = r14.f8600e; if (r0 >= r5) goto L_0x015d; L_0x00d7: r0 = r14.f8574N; r5 = r14.f8599d; r7 = r5 + 1; r14.d = r7; r0 = r0[r5]; r5 = r3; r3 = r2; L_0x00e3: r7 = r0; r0 = r4; L_0x00e5: if (r7 > r12) goto L_0x0173; L_0x00e7: if (r7 < r11) goto L_0x0173; L_0x00e9: r3 = r3 + 1; r4 = r5.length; if (r0 < r4) goto L_0x00f5; L_0x00ee: r0 = r14.f8609n; r5 = r0.m13319n(); r0 = r2; L_0x00f5: r4 = r0 + 1; r5[r0] = r7; r0 = r14.f8599d; r10 = r14.f8600e; if (r0 < r10) goto L_0x0167; L_0x00ff: r0 = r14.mo1754L(); if (r0 != 0) goto L_0x0167; L_0x0105: r2 = r3; r0 = r1; r1 = r4; L_0x0108: if (r2 != 0) goto L_0x010f; L_0x010a: r3 = "Exponent indicator not followed by a digit"; r14.m13202a(r7, r3); L_0x010f: if (r0 != 0) goto L_0x0117; L_0x0111: r0 = r14.f8599d; r0 = r0 + -1; r14.d = r0; L_0x0117: r0 = r14.f8609n; r0.f8626j = r1; r0 = r14.m13200a(r15, r9, r8, r2); return r0; L_0x0120: r3 = "No digit following minus sign"; r3 = r14.m13150f(r3); goto L_0x0023; L_0x0128: r0 = r14.f8574N; r4 = r14.f8599d; r7 = r4 + 1; r14.d = r7; r4 = r0[r4]; r0 = r6; goto L_0x002d; L_0x0135: r3 = r14.f8574N; r6 = r14.f8599d; r8 = r6 + 1; r14.d = r8; r3 = r3[r6]; if (r3 < r11) goto L_0x0185; L_0x0141: if (r3 > r12) goto L_0x0185; L_0x0143: r0 = r0 + 1; r6 = r5.length; if (r4 < r6) goto L_0x0183; L_0x0148: r4 = r14.f8609n; r5 = r4.m13319n(); r6 = r2; L_0x014f: r4 = r6 + 1; r5[r6] = r3; goto L_0x007d; L_0x0155: r0 = "expected a digit for number exponent"; r5 = r14.m13150f(r0); goto L_0x00bd; L_0x015d: r0 = "expected a digit for number exponent"; r0 = r14.m13150f(r0); r5 = r3; r3 = r2; goto L_0x00e3; L_0x0167: r0 = r14.f8574N; r7 = r14.f8599d; r10 = r7 + 1; r14.d = r10; r0 = r0[r7]; goto L_0x00e3; L_0x0173: r2 = r3; r1 = r0; r0 = r6; goto L_0x0108; L_0x0177: r0 = r4; goto L_0x00cd; L_0x017a: r7 = r5; r0 = r4; r5 = r3; r3 = r2; goto L_0x00e5; L_0x0180: r1 = r0; r0 = r6; goto L_0x010f; L_0x0183: r6 = r4; goto L_0x014f; L_0x0185: r6 = r7; goto L_0x008a; L_0x0188: r8 = r2; r6 = r7; r3 = r4; r13 = r5; r5 = r0; r0 = r13; goto L_0x0096; L_0x0190: r7 = r2; r9 = r5; r5 = r0; r0 = r4; r4 = r3; goto L_0x0053; L_0x0197: r0 = r2; goto L_0x0013; */ throw new UnsupportedOperationException("Method not decompiled: com.fasterxml.jackson.core.json.ReaderBasedJsonParser.b(boolean):com.fasterxml.jackson.core.JsonToken"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616782", "0.75728166", "0.7525724", "0.74507046", "0.74505866", "0.74373597", "0.7381616", "0.7381616", "0.7366568", "0.735341", "0.73420185", "0.73150736", "0.7308675", "0.73055106", "0.7274724", "0.72523946", "0.72216254", "0.71979403", "0.7177258", "0.7136552", "0.7106...
0.0
-1
Returns OgnlRuntime.NotFound if the property does not exist.
public Object getPossibleProperty( Map<String, Object> context, Object target, String name ) throws OgnlException { Object result; OgnlContext ognlContext = (OgnlContext) context; try { result = OgnlRuntime.getMethodValue( ognlContext, target, name, true ); if ( result == OgnlRuntime.NotFound ) { result = OgnlRuntime.getFieldValue( ognlContext, target, name, true ); } } catch ( OgnlException ex ) { throw ex; } catch ( Exception ex ) { throw new OgnlException( name, ex ); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getPropertyexists();", "String getPropertyExists();", "@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryExcept...
[ "0.6582434", "0.6407995", "0.6195812", "0.6037434", "0.6026258", "0.5992563", "0.5878664", "0.58420646", "0.5813849", "0.58131534", "0.57817465", "0.57695705", "0.57695705", "0.57695705", "0.5746356", "0.56998545", "0.568238", "0.56489253", "0.56294394", "0.55943847", "0.5593...
0.0
-1
Returns OgnlRuntime.NotFound if the property does not exist.
public Object setPossibleProperty( Map<String, Object> context, Object target, String name, Object value ) throws OgnlException { Object result = null; OgnlContext ognlContext = (OgnlContext) context; try { if ( !OgnlRuntime.setMethodValue( ognlContext, target, name, value, true ) ) { result = OgnlRuntime.setFieldValue( ognlContext, target, name, value ) ? null : OgnlRuntime.NotFound; } if ( result == OgnlRuntime.NotFound ) { Method m = OgnlRuntime.getWriteMethod( target.getClass(), name ); if ( m != null ) { result = m.invoke( target, value ); } } } catch ( OgnlException ex ) { throw ex; } catch ( Exception ex ) { throw new OgnlException( name, ex ); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getPropertyexists();", "String getPropertyExists();", "@Override\r\n\tpublic boolean propertyExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryExcept...
[ "0.6583494", "0.6408143", "0.619607", "0.60380775", "0.60269666", "0.5993176", "0.58804715", "0.5840982", "0.5814273", "0.5813652", "0.5782142", "0.5769723", "0.5769723", "0.5769723", "0.57455343", "0.5699913", "0.5682212", "0.5648482", "0.5629051", "0.5594145", "0.55932873",...
0.0
-1
Creates new form BridgingUI
public BridgingUI() { initComponents(); initUserActions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public FormInserir() {\n initComponents();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@Override\n\tpublic void onFormCreate(AbstractForm...
[ "0.72930676", "0.7008077", "0.6832072", "0.6806455", "0.6687844", "0.6493878", "0.6457791", "0.6452955", "0.6433271", "0.6400143", "0.6379246", "0.6361432", "0.635838", "0.6317216", "0.62879527", "0.62728316", "0.6253294", "0.6239388", "0.6224106", "0.6221384", "0.619511", ...
0.60759103
32
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">//GEN-BEGIN:initComponents private void initComponents() { jLayeredPane1 = new javax.swing.JLayeredPane(); labelProcess1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jTabbedPane2 = new javax.swing.JTabbedPane(); jPanel8 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel2 = new javax.swing.JPanel(); jPanel23 = new javax.swing.JPanel(); btnInputMasterReload = new javax.swing.JButton(); jLabelInputScyllaMasterProduk = new javax.swing.JLabel(); jPanel24 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tableInputMaster = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); jPanel25 = new javax.swing.JPanel(); btnInputStockReload = new javax.swing.JButton(); jLabelInputScyllaStock = new javax.swing.JLabel(); jPanel26 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); tableInputStock = new javax.swing.JTable(); jPanel4 = new javax.swing.JPanel(); jPanel27 = new javax.swing.JPanel(); btnInputOutletReload = new javax.swing.JButton(); jLabelInputScyllaOutlet = new javax.swing.JLabel(); jPanel28 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); tableInputOutlet = new javax.swing.JTable(); jPanel5 = new javax.swing.JPanel(); jPanel29 = new javax.swing.JPanel(); btnInputCvOutletReload = new javax.swing.JButton(); jLabelInputScyllaCvOutlet = new javax.swing.JLabel(); jPanel30 = new javax.swing.JPanel(); jScrollPane4 = new javax.swing.JScrollPane(); tableInputCvOutlet = new javax.swing.JTable(); jPanel6 = new javax.swing.JPanel(); jPanel31 = new javax.swing.JPanel(); btnInputSalesmanReload = new javax.swing.JButton(); jLabelInputScyllaSalesman = new javax.swing.JLabel(); jPanel32 = new javax.swing.JPanel(); jScrollPane5 = new javax.swing.JScrollPane(); tableInputSalesman = new javax.swing.JTable(); jPanel7 = new javax.swing.JPanel(); jPanel33 = new javax.swing.JPanel(); btnInputJheaderReload = new javax.swing.JButton(); jLabelInputScyllaJHeader = new javax.swing.JLabel(); jPanel34 = new javax.swing.JPanel(); jScrollPane6 = new javax.swing.JScrollPane(); tableInputJheader = new javax.swing.JTable(); jPanel14 = new javax.swing.JPanel(); jPanel35 = new javax.swing.JPanel(); btnInputJpcodeReload = new javax.swing.JButton(); jLabelInputScyllaJPCode = new javax.swing.JLabel(); jPanel36 = new javax.swing.JPanel(); jScrollPane7 = new javax.swing.JScrollPane(); tableInputJpcode = new javax.swing.JTable(); jPanel15 = new javax.swing.JPanel(); jPanel37 = new javax.swing.JPanel(); btnInputJtprbReload = new javax.swing.JButton(); jLabelInputScyllaJTprb = new javax.swing.JLabel(); jPanel38 = new javax.swing.JPanel(); jScrollPane8 = new javax.swing.JScrollPane(); tableInputJtprb = new javax.swing.JTable(); jPanel16 = new javax.swing.JPanel(); jPanel39 = new javax.swing.JPanel(); btnInputJtpruReload = new javax.swing.JButton(); jLabelInputScyllaJTpru = new javax.swing.JLabel(); jPanel40 = new javax.swing.JPanel(); jScrollPane9 = new javax.swing.JScrollPane(); tableInputJtpru = new javax.swing.JTable(); jPanel17 = new javax.swing.JPanel(); jTabbedPane4 = new javax.swing.JTabbedPane(); jPanel21 = new javax.swing.JPanel(); textDistributorCode = new javax.swing.JTextField(); jLabel11 = new javax.swing.JLabel(); jPanel52 = new javax.swing.JPanel(); textRecordTypeSales = new javax.swing.JTextField(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); textRecordTypeStock = new javax.swing.JTextField(); jLabel14 = new javax.swing.JLabel(); textRecordTypeClient = new javax.swing.JTextField(); jLabel15 = new javax.swing.JLabel(); textRecordTypeSo = new javax.swing.JTextField(); jPanel53 = new javax.swing.JPanel(); jLabel16 = new javax.swing.JLabel(); textWarehouseWarehouseCode = new javax.swing.JTextField(); jLabel17 = new javax.swing.JLabel(); textWarehouseWarehouseDescription = new javax.swing.JTextField(); btnGeneralSettingSimpan = new javax.swing.JButton(); btnGeneralSettingReload = new javax.swing.JButton(); jPanel54 = new javax.swing.JPanel(); jLabel18 = new javax.swing.JLabel(); textEmailFrom = new javax.swing.JTextField(); jLabel19 = new javax.swing.JLabel(); textEmailTo = new javax.swing.JTextField(); jLabel20 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); textEmailSubject = new javax.swing.JTextField(); jLabel22 = new javax.swing.JLabel(); jLabel28 = new javax.swing.JLabel(); textEmailPassword = new javax.swing.JPasswordField(); jPanel56 = new javax.swing.JPanel(); checkTprbDiluarBarang = new javax.swing.JCheckBox(); jPanel22 = new javax.swing.JPanel(); jPanel41 = new javax.swing.JPanel(); jScrollPane10 = new javax.swing.JScrollPane(); tableMappingTipeOutlet = new javax.swing.JTable(); jPanel42 = new javax.swing.JPanel(); btnMapTipeOutletSimpan = new javax.swing.JButton(); btnMapTipeOutletHapus = new javax.swing.JButton(); btnMapTipeOutletReload = new javax.swing.JButton(); jPanel43 = new javax.swing.JPanel(); textMapTipeOutletIdTypeOutletScy = new javax.swing.JTextField(); textMapTipeOutletIdTipeOutlet = new javax.swing.JTextField(); textMapTipeOutletDeskripsi = new javax.swing.JTextField(); jPanel57 = new javax.swing.JPanel(); jLabel23 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel26 = new javax.swing.JLabel(); jPanel18 = new javax.swing.JPanel(); jPanel19 = new javax.swing.JPanel(); textPathInputMaster = new javax.swing.JTextField(); textPathInputStock = new javax.swing.JTextField(); textPathInputOutlet = new javax.swing.JTextField(); textPathInputCvOutlet = new javax.swing.JTextField(); textPathInputSalesman = new javax.swing.JTextField(); textPathInputJHeader = new javax.swing.JTextField(); textPathInputJPcode = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); textPathInputJTprb = new javax.swing.JTextField(); textPathInputJTpru = new javax.swing.JTextField(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); btnPathInputMaster = new javax.swing.JButton(); btnPathInputStock = new javax.swing.JButton(); btnPathInputOutlet = new javax.swing.JButton(); btnPathInputCvOutlet = new javax.swing.JButton(); btnPathInputSalesman = new javax.swing.JButton(); btnPathInputJHeader = new javax.swing.JButton(); btnPathInputJPcode = new javax.swing.JButton(); btnPathInputJTprb = new javax.swing.JButton(); btnPathInputJTpru = new javax.swing.JButton(); btnRetrieveInputMaster = new javax.swing.JButton(); btnRetrieveInputStock = new javax.swing.JButton(); btnRetrieveInputOutlet = new javax.swing.JButton(); btnRetrieveInputSalesman = new javax.swing.JButton(); btnRetrieveInputCvOutlet = new javax.swing.JButton(); btnRetrieveInputJHeader = new javax.swing.JButton(); btnRetrieveInputJPcode = new javax.swing.JButton(); btnRetrieveInputJTprb = new javax.swing.JButton(); btnRetrieveInputJTpru = new javax.swing.JButton(); jDateChooseTanggalStock = new com.toedter.calendar.JDateChooser("dd/MM/yyyy", "##/##/####",'_'); jLabel27 = new javax.swing.JLabel(); jPanel20 = new javax.swing.JPanel(); textPathOutput = new javax.swing.JTextField(); btnPathOutput = new javax.swing.JButton(); btnExtractSales = new javax.swing.JButton(); btnExtractStock = new javax.swing.JButton(); btnExtractClient = new javax.swing.JButton(); btnExtractSo = new javax.swing.JButton(); jLabel10 = new javax.swing.JLabel(); btnExtractAll = new javax.swing.JButton(); jDateChooserExtract1 = new com.toedter.calendar.JDateChooser("dd/MM/yyyy", "##/##/####",'_'); btnKirimByEmail = new javax.swing.JButton(); jDateChooserExtract2 = new com.toedter.calendar.JDateChooser("dd/MM/yyyy", "##/##/####",'_'); jPanel55 = new javax.swing.JPanel(); checkModeDatabase = new javax.swing.JCheckBox(); jPanel58 = new javax.swing.JPanel(); btnPathInputReloadAll = new javax.swing.JButton(); btnPathInputAuto = new javax.swing.JButton(); btnPathInputClearAll = new javax.swing.JButton(); btnRetrieveInputAll = new javax.swing.JButton(); jPanel9 = new javax.swing.JPanel(); jTabbedPane3 = new javax.swing.JTabbedPane(); jPanel10 = new javax.swing.JPanel(); jPanel44 = new javax.swing.JPanel(); btnOutputSalesReload = new javax.swing.JButton(); jLabelOutputSales = new javax.swing.JLabel(); jPanel45 = new javax.swing.JPanel(); jScrollPane11 = new javax.swing.JScrollPane(); tableOutputSales = new javax.swing.JTable(); jPanel11 = new javax.swing.JPanel(); jPanel46 = new javax.swing.JPanel(); btnOutputStockReload = new javax.swing.JButton(); jLabelOutputStock = new javax.swing.JLabel(); jPanel47 = new javax.swing.JPanel(); jScrollPane12 = new javax.swing.JScrollPane(); tableOutputStock = new javax.swing.JTable(); jPanel12 = new javax.swing.JPanel(); jPanel48 = new javax.swing.JPanel(); btnOutputClientReload = new javax.swing.JButton(); jLabelOutputClient = new javax.swing.JLabel(); jPanel49 = new javax.swing.JPanel(); jScrollPane13 = new javax.swing.JScrollPane(); tableOutputClient = new javax.swing.JTable(); jPanel13 = new javax.swing.JPanel(); jPanel50 = new javax.swing.JPanel(); btnOutputSalesOrderReload = new javax.swing.JButton(); jLabelOutputSalesOrder = new javax.swing.JLabel(); jPanel51 = new javax.swing.JPanel(); jScrollPane14 = new javax.swing.JScrollPane(); tableOutputSalesOrder = new javax.swing.JTable(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); labelProcess1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); labelProcess1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/ajax-loader.gif"))); // NOI18N jLayeredPane1.add(labelProcess1); labelProcess1.setBounds(0, 0, 30, 70); jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jTabbedPane2.setTabPlacement(javax.swing.JTabbedPane.RIGHT); jPanel23.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputMasterReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputMasterReload.setText("Reload"); jLabelInputScyllaMasterProduk.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaMasterProduk.setText("jLabelInputScyllaMasterProduk"); javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23); jPanel23.setLayout(jPanel23Layout); jPanel23Layout.setHorizontalGroup( jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel23Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputMasterReload, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInputScyllaMasterProduk, javax.swing.GroupLayout.PREFERRED_SIZE, 640, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(21, 21, 21)) ); jPanel23Layout.setVerticalGroup( jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel23Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputMasterReload) .addContainerGap(18, Short.MAX_VALUE)) .addGroup(jPanel23Layout.createSequentialGroup() .addComponent(jLabelInputScyllaMasterProduk, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); jPanel24.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputMaster.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); tableInputMaster.setShowVerticalLines(false); jScrollPane1.setViewportView(tableInputMaster); javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24); jPanel24.setLayout(jPanel24Layout); jPanel24Layout.setHorizontalGroup( jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel24Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel24Layout.setVerticalGroup( jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel24Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("Master/Product", jPanel2); jPanel25.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputStockReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputStockReload.setText("Reload"); jLabelInputScyllaStock.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaStock.setText("jLabelInputScyllaStock"); javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25); jPanel25.setLayout(jPanel25Layout); jPanel25Layout.setHorizontalGroup( jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel25Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputStockReload, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInputScyllaStock, javax.swing.GroupLayout.PREFERRED_SIZE, 644, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(22, 22, 22)) ); jPanel25Layout.setVerticalGroup( jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel25Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel25Layout.createSequentialGroup() .addComponent(btnInputStockReload) .addGap(0, 6, Short.MAX_VALUE)) .addComponent(jLabelInputScyllaStock, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel26.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputStock.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane2.setViewportView(tableInputStock); javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26); jPanel26.setLayout(jPanel26Layout); jPanel26Layout.setHorizontalGroup( jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel26Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel26Layout.setVerticalGroup( jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("Stock", jPanel3); jPanel27.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputOutletReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputOutletReload.setText("Reload"); jLabelInputScyllaOutlet.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaOutlet.setText("jLabelInputScyllaOutlet"); javax.swing.GroupLayout jPanel27Layout = new javax.swing.GroupLayout(jPanel27); jPanel27.setLayout(jPanel27Layout); jPanel27Layout.setHorizontalGroup( jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel27Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputOutletReload, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(32, 32, 32) .addComponent(jLabelInputScyllaOutlet, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(25, 25, 25)) ); jPanel27Layout.setVerticalGroup( jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel27Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel27Layout.createSequentialGroup() .addComponent(btnInputOutletReload) .addGap(0, 6, Short.MAX_VALUE)) .addComponent(jLabelInputScyllaOutlet, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel28.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputOutlet.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane3.setViewportView(tableInputOutlet); javax.swing.GroupLayout jPanel28Layout = new javax.swing.GroupLayout(jPanel28); jPanel28.setLayout(jPanel28Layout); jPanel28Layout.setHorizontalGroup( jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel28Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel28Layout.setVerticalGroup( jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel28Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("Outlet", jPanel4); jPanel29.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputCvOutletReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputCvOutletReload.setText("Reload"); jLabelInputScyllaCvOutlet.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaCvOutlet.setText("jLabelInputScyllaCvOutlet"); javax.swing.GroupLayout jPanel29Layout = new javax.swing.GroupLayout(jPanel29); jPanel29.setLayout(jPanel29Layout); jPanel29Layout.setHorizontalGroup( jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel29Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputCvOutletReload, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInputScyllaCvOutlet, javax.swing.GroupLayout.PREFERRED_SIZE, 631, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28)) ); jPanel29Layout.setVerticalGroup( jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel29Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel29Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnInputCvOutletReload) .addComponent(jLabelInputScyllaCvOutlet)) .addContainerGap(18, Short.MAX_VALUE)) ); jPanel30.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputCvOutlet.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane4.setViewportView(tableInputCvOutlet); javax.swing.GroupLayout jPanel30Layout = new javax.swing.GroupLayout(jPanel30); jPanel30.setLayout(jPanel30Layout); jPanel30Layout.setHorizontalGroup( jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel30Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel30Layout.setVerticalGroup( jPanel30Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel30Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel5Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel5Layout.setVerticalGroup( jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel30, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("CvOutlet", jPanel5); jPanel31.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputSalesmanReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputSalesmanReload.setText("Reload"); jLabelInputScyllaSalesman.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaSalesman.setText("jLabelInputScyllaSalesman"); jLabelInputScyllaSalesman.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); javax.swing.GroupLayout jPanel31Layout = new javax.swing.GroupLayout(jPanel31); jPanel31.setLayout(jPanel31Layout); jPanel31Layout.setHorizontalGroup( jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel31Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputSalesmanReload, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelInputScyllaSalesman, javax.swing.GroupLayout.PREFERRED_SIZE, 612, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(22, 22, 22)) ); jPanel31Layout.setVerticalGroup( jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel31Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel31Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnInputSalesmanReload) .addComponent(jLabelInputScyllaSalesman)) .addContainerGap(18, Short.MAX_VALUE)) ); jPanel32.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputSalesman.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane5.setViewportView(tableInputSalesman); javax.swing.GroupLayout jPanel32Layout = new javax.swing.GroupLayout(jPanel32); jPanel32.setLayout(jPanel32Layout); jPanel32Layout.setHorizontalGroup( jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel32Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel32Layout.setVerticalGroup( jPanel32Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel32Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel6Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel32, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel6Layout.setVerticalGroup( jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel32, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("Salesman", jPanel6); jPanel33.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputJheaderReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputJheaderReload.setText("Reload"); jLabelInputScyllaJHeader.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaJHeader.setText("jLabelInputScyllaJHeader"); jLabelInputScyllaJHeader.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); javax.swing.GroupLayout jPanel33Layout = new javax.swing.GroupLayout(jPanel33); jPanel33.setLayout(jPanel33Layout); jPanel33Layout.setHorizontalGroup( jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel33Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputJheaderReload, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelInputScyllaJHeader, javax.swing.GroupLayout.PREFERRED_SIZE, 700, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel33Layout.setVerticalGroup( jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel33Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel33Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelInputScyllaJHeader, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel33Layout.createSequentialGroup() .addComponent(btnInputJheaderReload) .addGap(0, 6, Short.MAX_VALUE))) .addContainerGap()) ); jPanel34.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputJheader.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane6.setViewportView(tableInputJheader); javax.swing.GroupLayout jPanel34Layout = new javax.swing.GroupLayout(jPanel34); jPanel34.setLayout(jPanel34Layout); jPanel34Layout.setHorizontalGroup( jPanel34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel34Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel34Layout.setVerticalGroup( jPanel34Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel34Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel7Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel34, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel7Layout.setVerticalGroup( jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel34, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("JHeader", jPanel7); jPanel35.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputJpcodeReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputJpcodeReload.setText("Reload"); jLabelInputScyllaJPCode.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaJPCode.setText("jLabelInputScyllaJPCode"); javax.swing.GroupLayout jPanel35Layout = new javax.swing.GroupLayout(jPanel35); jPanel35.setLayout(jPanel35Layout); jPanel35Layout.setHorizontalGroup( jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel35Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputJpcodeReload, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelInputScyllaJPCode, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(22, 22, 22)) ); jPanel35Layout.setVerticalGroup( jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel35Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel35Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel35Layout.createSequentialGroup() .addComponent(btnInputJpcodeReload) .addGap(0, 6, Short.MAX_VALUE)) .addComponent(jLabelInputScyllaJPCode, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel36.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputJpcode.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane7.setViewportView(tableInputJpcode); javax.swing.GroupLayout jPanel36Layout = new javax.swing.GroupLayout(jPanel36); jPanel36.setLayout(jPanel36Layout); jPanel36Layout.setHorizontalGroup( jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel36Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel36Layout.setVerticalGroup( jPanel36Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel36Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14); jPanel14.setLayout(jPanel14Layout); jPanel14Layout.setHorizontalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel14Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel36, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel35, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel14Layout.setVerticalGroup( jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel36, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("JPcode", jPanel14); jPanel37.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputJtprbReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputJtprbReload.setText("Reload"); jLabelInputScyllaJTprb.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaJTprb.setText("jLabelInputScyllaJTprb"); javax.swing.GroupLayout jPanel37Layout = new javax.swing.GroupLayout(jPanel37); jPanel37.setLayout(jPanel37Layout); jPanel37Layout.setHorizontalGroup( jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel37Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputJtprbReload, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelInputScyllaJTprb, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(20, 20, 20)) ); jPanel37Layout.setVerticalGroup( jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel37Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel37Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel37Layout.createSequentialGroup() .addComponent(btnInputJtprbReload) .addContainerGap(18, Short.MAX_VALUE)) .addComponent(jLabelInputScyllaJTprb, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) ); jPanel38.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputJtprb.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane8.setViewportView(tableInputJtprb); javax.swing.GroupLayout jPanel38Layout = new javax.swing.GroupLayout(jPanel38); jPanel38.setLayout(jPanel38Layout); jPanel38Layout.setHorizontalGroup( jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel38Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel38Layout.setVerticalGroup( jPanel38Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel38Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15); jPanel15.setLayout(jPanel15Layout); jPanel15Layout.setHorizontalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel15Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel38, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel37, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel15Layout.setVerticalGroup( jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel38, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("JTprb", jPanel15); jPanel39.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnInputJtpruReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnInputJtpruReload.setText("Reload"); jLabelInputScyllaJTpru.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelInputScyllaJTpru.setText("jLabelInputScyllaJTpru"); javax.swing.GroupLayout jPanel39Layout = new javax.swing.GroupLayout(jPanel39); jPanel39.setLayout(jPanel39Layout); jPanel39Layout.setHorizontalGroup( jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel39Layout.createSequentialGroup() .addContainerGap() .addComponent(btnInputJtpruReload, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelInputScyllaJTpru, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(24, 24, 24)) ); jPanel39Layout.setVerticalGroup( jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel39Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel39Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel39Layout.createSequentialGroup() .addComponent(btnInputJtpruReload) .addGap(0, 6, Short.MAX_VALUE)) .addComponent(jLabelInputScyllaJTpru, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel40.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableInputJtpru.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane9.setViewportView(tableInputJtpru); javax.swing.GroupLayout jPanel40Layout = new javax.swing.GroupLayout(jPanel40); jPanel40.setLayout(jPanel40Layout); jPanel40Layout.setHorizontalGroup( jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel40Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 820, Short.MAX_VALUE) .addContainerGap()) ); jPanel40Layout.setVerticalGroup( jPanel40Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel40Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16); jPanel16.setLayout(jPanel16Layout); jPanel16Layout.setHorizontalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel16Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel40, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel39, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel16Layout.setVerticalGroup( jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel40, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane1.addTab("JTpru", jPanel16); jTabbedPane4.setTabPlacement(javax.swing.JTabbedPane.BOTTOM); jPanel21.setFont(new java.awt.Font("Lucida Grande", 3, 12)); // NOI18N textDistributorCode.setText("jTextField11"); jLabel11.setText("Distributor Code"); jPanel52.setBorder(javax.swing.BorderFactory.createTitledBorder("Record Type")); textRecordTypeSales.setText("jTextField15"); jLabel12.setText("Sales"); jLabel13.setText("Stock"); textRecordTypeStock.setText("jTextField15"); jLabel14.setText("Client"); textRecordTypeClient.setText("jTextField15"); jLabel15.setText("SO"); textRecordTypeSo.setText("jTextField15"); javax.swing.GroupLayout jPanel52Layout = new javax.swing.GroupLayout(jPanel52); jPanel52.setLayout(jPanel52Layout); jPanel52Layout.setHorizontalGroup( jPanel52Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel52Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel52Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel52Layout.createSequentialGroup() .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(textRecordTypeSales, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel52Layout.createSequentialGroup() .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(textRecordTypeStock, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel52Layout.createSequentialGroup() .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(textRecordTypeClient, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel52Layout.createSequentialGroup() .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(textRecordTypeSo, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel52Layout.setVerticalGroup( jPanel52Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel52Layout.createSequentialGroup() .addGroup(jPanel52Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textRecordTypeSales, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel12)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel52Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textRecordTypeStock, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel13)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel52Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textRecordTypeClient, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel52Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textRecordTypeSo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel15)) .addGap(0, 41, Short.MAX_VALUE)) ); jPanel53.setBorder(javax.swing.BorderFactory.createTitledBorder("Warehouse")); jLabel16.setText("Warehouse Code"); textWarehouseWarehouseCode.setText("jTextField15"); jLabel17.setText("Warehouse Description"); textWarehouseWarehouseDescription.setText("jTextField15"); javax.swing.GroupLayout jPanel53Layout = new javax.swing.GroupLayout(jPanel53); jPanel53.setLayout(jPanel53Layout); jPanel53Layout.setHorizontalGroup( jPanel53Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel53Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel53Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel53Layout.createSequentialGroup() .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(textWarehouseWarehouseCode, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel53Layout.createSequentialGroup() .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(18, 18, 18) .addComponent(textWarehouseWarehouseDescription, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); jPanel53Layout.setVerticalGroup( jPanel53Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel53Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel53Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textWarehouseWarehouseCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel16)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel53Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textWarehouseWarehouseDescription, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel17)) .addContainerGap(23, Short.MAX_VALUE)) ); btnGeneralSettingSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/save_16x16.png"))); // NOI18N btnGeneralSettingSimpan.setText("Simpan"); btnGeneralSettingReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnGeneralSettingReload.setText("Reload"); jPanel54.setBorder(javax.swing.BorderFactory.createTitledBorder("Email untuk Kirim")); jLabel18.setText("From"); textEmailFrom.setText("jTextField1"); jLabel19.setText("To"); textEmailTo.setText("jTextField2"); jLabel20.setForeground(new java.awt.Color(212, 30, 30)); jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel20.setText("EMAIL TO lebih dari 1 addresss gunakan tanda ( ; )"); jLabel21.setForeground(new java.awt.Color(212, 30, 30)); jLabel21.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel21.setText("contoh: bari@gmail.com; alif@yahoo.com"); textEmailSubject.setText("jTextField1"); jLabel22.setText("Subject"); jLabel28.setText("Password"); textEmailPassword.setText("jPasswordField1"); javax.swing.GroupLayout jPanel54Layout = new javax.swing.GroupLayout(jPanel54); jPanel54.setLayout(jPanel54Layout); jPanel54Layout.setHorizontalGroup( jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel54Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel54Layout.createSequentialGroup() .addComponent(jLabel22) .addGap(18, 18, 18) .addComponent(textEmailSubject)) .addComponent(jLabel21, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 341, Short.MAX_VALUE) .addGroup(jPanel54Layout.createSequentialGroup() .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(textEmailTo)) .addGroup(jPanel54Layout.createSequentialGroup() .addGroup(jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel28)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(textEmailFrom) .addComponent(textEmailPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel54Layout.setVerticalGroup( jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel54Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel18) .addComponent(textEmailFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel28) .addComponent(textEmailPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE) .addGroup(jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textEmailTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel19)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel20) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel54Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textEmailSubject, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel22)) .addContainerGap()) ); jPanel56.setBorder(javax.swing.BorderFactory.createEtchedBorder()); checkTprbDiluarBarang.setText("Diskon TPRB diluar barang spread satu nota"); javax.swing.GroupLayout jPanel56Layout = new javax.swing.GroupLayout(jPanel56); jPanel56.setLayout(jPanel56Layout); jPanel56Layout.setHorizontalGroup( jPanel56Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel56Layout.createSequentialGroup() .addGap(20, 20, 20) .addComponent(checkTprbDiluarBarang, javax.swing.GroupLayout.PREFERRED_SIZE, 332, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(21, Short.MAX_VALUE)) ); jPanel56Layout.setVerticalGroup( jPanel56Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel56Layout.createSequentialGroup() .addContainerGap() .addComponent(checkTprbDiluarBarang) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21); jPanel21.setLayout(jPanel21Layout); jPanel21Layout.setHorizontalGroup( jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jPanel52, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel21Layout.createSequentialGroup() .addComponent(jLabel11) .addGap(29, 29, 29) .addComponent(textDistributorCode, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jPanel53, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(jPanel21Layout.createSequentialGroup() .addComponent(btnGeneralSettingSimpan, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnGeneralSettingReload, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel54, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel56, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap(109, Short.MAX_VALUE)) ); jPanel21Layout.setVerticalGroup( jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup() .addGap(19, 19, 19) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11) .addComponent(textDistributorCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel21Layout.createSequentialGroup() .addComponent(jPanel52, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel53, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel21Layout.createSequentialGroup() .addComponent(jPanel54, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel56, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnGeneralSettingSimpan, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnGeneralSettingReload, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(43, Short.MAX_VALUE)) ); jTabbedPane4.addTab("General Setting", jPanel21); jPanel41.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableMappingTipeOutlet.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane10.setViewportView(tableMappingTipeOutlet); javax.swing.GroupLayout jPanel41Layout = new javax.swing.GroupLayout(jPanel41); jPanel41.setLayout(jPanel41Layout); jPanel41Layout.setHorizontalGroup( jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel41Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 535, Short.MAX_VALUE) .addContainerGap()) ); jPanel41Layout.setVerticalGroup( jPanel41Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel41Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addContainerGap()) ); jPanel42.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnMapTipeOutletSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/save_16x16.png"))); // NOI18N btnMapTipeOutletSimpan.setText("Simpan"); btnMapTipeOutletHapus.setText("Hapus"); btnMapTipeOutletReload.setText("Reload"); javax.swing.GroupLayout jPanel42Layout = new javax.swing.GroupLayout(jPanel42); jPanel42.setLayout(jPanel42Layout); jPanel42Layout.setHorizontalGroup( jPanel42Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel42Layout.createSequentialGroup() .addContainerGap() .addComponent(btnMapTipeOutletSimpan, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(27, 27, 27) .addComponent(btnMapTipeOutletHapus, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnMapTipeOutletReload, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel42Layout.setVerticalGroup( jPanel42Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel42Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel42Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnMapTipeOutletSimpan) .addComponent(btnMapTipeOutletHapus) .addComponent(btnMapTipeOutletReload)) .addContainerGap(13, Short.MAX_VALUE)) ); jPanel43.setBorder(javax.swing.BorderFactory.createEtchedBorder()); textMapTipeOutletIdTypeOutletScy.setText("jTextField12"); textMapTipeOutletIdTipeOutlet.setText("jTextField13"); textMapTipeOutletDeskripsi.setText("jTextField14"); javax.swing.GroupLayout jPanel43Layout = new javax.swing.GroupLayout(jPanel43); jPanel43.setLayout(jPanel43Layout); jPanel43Layout.setHorizontalGroup( jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel43Layout.createSequentialGroup() .addContainerGap() .addComponent(textMapTipeOutletIdTypeOutletScy, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(textMapTipeOutletIdTipeOutlet, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(textMapTipeOutletDeskripsi) .addContainerGap()) ); jPanel43Layout.setVerticalGroup( jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel43Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel43Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textMapTipeOutletIdTypeOutletScy, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textMapTipeOutletIdTipeOutlet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textMapTipeOutletDeskripsi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(14, Short.MAX_VALUE)) ); jPanel57.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel23.setForeground(java.awt.Color.red); jLabel23.setText("Outlet yang TIPE nya tidak terdaftar disini"); jLabel24.setForeground(java.awt.Color.red); jLabel24.setText("TIDAK AKAN DIPROSES"); jLabel25.setForeground(java.awt.Color.red); jLabel25.setText("JADI:"); jLabel26.setForeground(java.awt.Color.red); jLabel26.setText("PASTIKAN SEMUA TIPE SUDAH CATAT DISINI"); javax.swing.GroupLayout jPanel57Layout = new javax.swing.GroupLayout(jPanel57); jPanel57.setLayout(jPanel57Layout); jPanel57Layout.setHorizontalGroup( jPanel57Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel57Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel57Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel23) .addComponent(jLabel24) .addComponent(jLabel25) .addComponent(jLabel26)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel57Layout.setVerticalGroup( jPanel57Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel57Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel23) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel24) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel25) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel26) .addContainerGap(223, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22); jPanel22.setLayout(jPanel22Layout); jPanel22Layout.setHorizontalGroup( jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel22Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jPanel43, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel41, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel42, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel57, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel22Layout.setVerticalGroup( jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel22Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel57, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel41, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel42, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(35, 35, 35)) ); jTabbedPane4.addTab("Mapping Tipe Outlet Baygon", jPanel22); javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17); jPanel17.setLayout(jPanel17Layout); jPanel17Layout.setHorizontalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel17Layout.createSequentialGroup() .addContainerGap() .addComponent(jTabbedPane4) .addContainerGap()) ); jPanel17Layout.setVerticalGroup( jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel17Layout.createSequentialGroup() .addContainerGap() .addComponent(jTabbedPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 515, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(48, Short.MAX_VALUE)) ); jTabbedPane1.addTab("Konfigurasi Sistem", jPanel17); jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder("Input dari Scylla")); textPathInputMaster.setText("jTextField1"); textPathInputStock.setText("jTextField2"); textPathInputOutlet.setText("jTextField3"); textPathInputCvOutlet.setText("jTextField4"); textPathInputSalesman.setText("Salesman"); textPathInputJHeader.setText("jTextField6"); textPathInputJPcode.setText("jTextField7"); jLabel1.setText("1. Master/Prod"); jLabel2.setText("9. Stock"); jLabel3.setText("2. Salesman"); jLabel4.setText("3. Outlet"); jLabel5.setText("4. CvOutlet"); jLabel6.setText("5. JHeader"); jLabel7.setText("6. JPcode"); textPathInputJTprb.setText("jTextField8"); textPathInputJTpru.setText("jTextField9"); jLabel8.setText("7. JTprb"); jLabel9.setText("8. JTpru"); btnPathInputMaster.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputMaster.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPathInputMasterActionPerformed(evt); } }); btnPathInputStock.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputOutlet.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputCvOutlet.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputSalesman.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputJHeader.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputJPcode.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputJTprb.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputJTpru.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnRetrieveInputMaster.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputMaster.setText("1. Retrieve"); btnRetrieveInputMaster.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRetrieveInputMasterActionPerformed(evt); } }); btnRetrieveInputStock.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputStock.setText("9. Retrieve"); btnRetrieveInputOutlet.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputOutlet.setText("3. Retrieve"); btnRetrieveInputSalesman.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputSalesman.setText("2. Retrieve"); btnRetrieveInputCvOutlet.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputCvOutlet.setText("4. Retrieve"); btnRetrieveInputJHeader.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputJHeader.setText("5. Retrieve"); btnRetrieveInputJPcode.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputJPcode.setText("6. Retrieve"); btnRetrieveInputJTprb.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputJTprb.setText("7. Retrieve"); btnRetrieveInputJTpru.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputJTpru.setText("8. Retrieve"); btnRetrieveInputJTpru.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRetrieveInputJTpruActionPerformed(evt); } }); jDateChooseTanggalStock.setDateFormatString("dd/MM/yyyy"); jLabel27.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N jLabel27.setForeground(new java.awt.Color(204, 0, 0)); jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel27.setText("Tanggal Stock adalah stok awal transaksi atau stok akhir tanggal kemarin"); javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19); jPanel19.setLayout(jPanel19Layout); jPanel19Layout.setHorizontalGroup( jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(jLabel7) .addComponent(jLabel8) .addComponent(jLabel3) .addComponent(jLabel9) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(textPathInputJTpru, javax.swing.GroupLayout.DEFAULT_SIZE, 502, Short.MAX_VALUE) .addComponent(textPathInputJTprb) .addComponent(textPathInputMaster) .addComponent(textPathInputJHeader) .addComponent(textPathInputJPcode) .addComponent(textPathInputCvOutlet) .addComponent(textPathInputOutlet) .addComponent(textPathInputSalesman)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnPathInputMaster) .addComponent(btnPathInputOutlet) .addComponent(btnPathInputCvOutlet) .addComponent(btnPathInputSalesman) .addComponent(btnPathInputJHeader) .addComponent(btnPathInputJPcode) .addComponent(btnPathInputJTprb) .addComponent(btnPathInputJTpru)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btnRetrieveInputMaster, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputJHeader, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputJPcode, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputJTprb, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputJTpru, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputSalesman, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputOutlet, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputCvOutlet, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel19Layout.createSequentialGroup() .addComponent(textPathInputStock, javax.swing.GroupLayout.PREFERRED_SIZE, 362, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jDateChooseTanggalStock, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPathInputStock) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnRetrieveInputStock))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel19Layout.setVerticalGroup( jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textPathInputMaster, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1) .addComponent(btnPathInputMaster)) .addGroup(jPanel19Layout.createSequentialGroup() .addGap(2, 2, 2) .addComponent(btnRetrieveInputMaster))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textPathInputSalesman, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(btnPathInputOutlet) .addComponent(btnRetrieveInputSalesman)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(btnPathInputCvOutlet) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textPathInputOutlet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(7, 7, 7) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnRetrieveInputCvOutlet) .addComponent(btnPathInputSalesman) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textPathInputCvOutlet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(7, 7, 7) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textPathInputJHeader, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPathInputJHeader)) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnRetrieveInputJHeader)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textPathInputJPcode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPathInputJPcode)) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textPathInputJTprb, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPathInputJTprb)) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textPathInputJTpru, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPathInputJTpru)) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel19Layout.createSequentialGroup() .addComponent(btnRetrieveInputJPcode) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnRetrieveInputJTprb) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnRetrieveInputJTpru))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(textPathInputStock, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel27) .addGap(7, 7, 7)) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jDateChooseTanggalStock, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPathInputStock) .addComponent(btnRetrieveInputStock)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addGroup(jPanel19Layout.createSequentialGroup() .addComponent(btnRetrieveInputOutlet) .addGap(0, 0, Short.MAX_VALUE)))) ); jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder("Extract Baygon")); textPathOutput.setText("jTextField10"); btnPathOutput.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_download_16x16.png"))); // NOI18N btnExtractSales.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_download2_16x16.png"))); // NOI18N btnExtractSales.setText("Sales"); btnExtractStock.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_download2_16x16.png"))); // NOI18N btnExtractStock.setText("Stock"); btnExtractClient.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_download2_16x16.png"))); // NOI18N btnExtractClient.setText("Client"); btnExtractSo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_download2_16x16.png"))); // NOI18N btnExtractSo.setText("SO"); jLabel10.setText("Path"); btnExtractAll.setText("Extract All"); jDateChooserExtract1.setDateFormatString("dd/MM/yyyy"); btnKirimByEmail.setText("Kirim By Email"); btnKirimByEmail.setEnabled(false); jDateChooserExtract2.setDateFormatString("dd/MM/yyyy"); javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20); jPanel20.setLayout(jPanel20Layout); jPanel20Layout.setHorizontalGroup( jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel10) .addGap(6, 6, 6) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createSequentialGroup() .addComponent(jDateChooserExtract1, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jDateChooserExtract2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(textPathOutput, javax.swing.GroupLayout.PREFERRED_SIZE, 283, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPathOutput) .addGap(49, 49, 49) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel20Layout.createSequentialGroup() .addComponent(btnExtractSales) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnExtractStock)) .addComponent(btnExtractAll, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createSequentialGroup() .addComponent(btnExtractClient) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnExtractSo, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(btnKirimByEmail, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel20Layout.setVerticalGroup( jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createSequentialGroup() .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel20Layout.createSequentialGroup() .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(textPathOutput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPathOutput)) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnExtractSales) .addComponent(btnExtractStock) .addComponent(btnExtractClient) .addComponent(btnExtractSo))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jDateChooserExtract1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnExtractAll) .addComponent(btnKirimByEmail)) .addComponent(jDateChooserExtract2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(24, 24, 24)) ); jPanel55.setBorder(javax.swing.BorderFactory.createTitledBorder("Others Setting")); checkModeDatabase.setText("MODE DB"); javax.swing.GroupLayout jPanel55Layout = new javax.swing.GroupLayout(jPanel55); jPanel55.setLayout(jPanel55Layout); jPanel55Layout.setHorizontalGroup( jPanel55Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(checkModeDatabase) ); jPanel55Layout.setVerticalGroup( jPanel55Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel55Layout.createSequentialGroup() .addContainerGap() .addComponent(checkModeDatabase) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel58.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnPathInputReloadAll.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnPathInputReloadAll.setText("Reload All"); btnPathInputAuto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/folder_add_16x16.png"))); // NOI18N btnPathInputAuto.setText("Auto Path"); btnPathInputClearAll.setFont(new java.awt.Font("Lucida Grande", 3, 10)); // NOI18N btnPathInputClearAll.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/erase_16x16.png"))); // NOI18N btnPathInputClearAll.setText("Clear All"); btnRetrieveInputAll.setFont(new java.awt.Font("Lucida Grande", 3, 10)); // NOI18N btnRetrieveInputAll.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync2_16x16.png"))); // NOI18N btnRetrieveInputAll.setText("Retrieve All"); btnRetrieveInputAll.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnRetrieveInputAllActionPerformed(evt); } }); javax.swing.GroupLayout jPanel58Layout = new javax.swing.GroupLayout(jPanel58); jPanel58.setLayout(jPanel58Layout); jPanel58Layout.setHorizontalGroup( jPanel58Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel58Layout.createSequentialGroup() .addGap(25, 25, 25) .addComponent(btnPathInputReloadAll, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPathInputAuto, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnPathInputClearAll) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnRetrieveInputAll, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel58Layout.setVerticalGroup( jPanel58Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel58Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel58Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnPathInputReloadAll) .addComponent(btnPathInputAuto) .addComponent(btnPathInputClearAll) .addComponent(btnRetrieveInputAll)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18); jPanel18.setLayout(jPanel18Layout); jPanel18Layout.setHorizontalGroup( jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel18Layout.createSequentialGroup() .addGap(23, 23, 23) .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel58, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel55, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jPanel18Layout.setVerticalGroup( jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel18Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanel55, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel58, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE, 99, Short.MAX_VALUE) .addContainerGap()) ); jTabbedPane1.addTab("Retrieve And Extract BAYGON", jPanel18); jTabbedPane1.setSelectedIndex(10); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel8Layout.createSequentialGroup() .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 880, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 17, Short.MAX_VALUE)) ); jPanel8Layout.setVerticalGroup( jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup() .addComponent(jTabbedPane1) .addContainerGap()) ); jTabbedPane2.addTab("Input Scylla", jPanel8); jPanel44.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnOutputSalesReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnOutputSalesReload.setText("Reload"); jLabelOutputSales.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelOutputSales.setText("jLabelOutputSales"); javax.swing.GroupLayout jPanel44Layout = new javax.swing.GroupLayout(jPanel44); jPanel44.setLayout(jPanel44Layout); jPanel44Layout.setHorizontalGroup( jPanel44Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel44Layout.createSequentialGroup() .addContainerGap() .addComponent(btnOutputSalesReload, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelOutputSales, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(26, 26, 26)) ); jPanel44Layout.setVerticalGroup( jPanel44Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel44Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel44Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnOutputSalesReload) .addComponent(jLabelOutputSales)) .addContainerGap(18, Short.MAX_VALUE)) ); jPanel45.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableOutputSales.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane11.setViewportView(tableOutputSales); javax.swing.GroupLayout jPanel45Layout = new javax.swing.GroupLayout(jPanel45); jPanel45.setLayout(jPanel45Layout); jPanel45Layout.setHorizontalGroup( jPanel45Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel45Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 825, Short.MAX_VALUE) .addContainerGap()) ); jPanel45Layout.setVerticalGroup( jPanel45Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel45Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10); jPanel10.setLayout(jPanel10Layout); jPanel10Layout.setHorizontalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel10Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel45, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel44, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel10Layout.setVerticalGroup( jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel45, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel44, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane3.addTab("Sales", jPanel10); jPanel46.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnOutputStockReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnOutputStockReload.setText("Reload"); jLabelOutputStock.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelOutputStock.setText("jLabelOutputStock"); javax.swing.GroupLayout jPanel46Layout = new javax.swing.GroupLayout(jPanel46); jPanel46.setLayout(jPanel46Layout); jPanel46Layout.setHorizontalGroup( jPanel46Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel46Layout.createSequentialGroup() .addContainerGap() .addComponent(btnOutputStockReload, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelOutputStock, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(23, 23, 23)) ); jPanel46Layout.setVerticalGroup( jPanel46Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel46Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel46Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnOutputStockReload) .addComponent(jLabelOutputStock)) .addContainerGap(18, Short.MAX_VALUE)) ); jPanel47.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableOutputStock.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane12.setViewportView(tableOutputStock); javax.swing.GroupLayout jPanel47Layout = new javax.swing.GroupLayout(jPanel47); jPanel47.setLayout(jPanel47Layout); jPanel47Layout.setHorizontalGroup( jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel47Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 825, Short.MAX_VALUE) .addContainerGap()) ); jPanel47Layout.setVerticalGroup( jPanel47Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel47Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel11Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel47, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel46, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel11Layout.setVerticalGroup( jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel47, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel46, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane3.addTab("Stock", jPanel11); jPanel48.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnOutputClientReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnOutputClientReload.setText("Reload"); jLabelOutputClient.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelOutputClient.setText("jLabelOutputClient"); javax.swing.GroupLayout jPanel48Layout = new javax.swing.GroupLayout(jPanel48); jPanel48.setLayout(jPanel48Layout); jPanel48Layout.setHorizontalGroup( jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel48Layout.createSequentialGroup() .addContainerGap() .addComponent(btnOutputClientReload, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelOutputClient, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(27, 27, 27)) ); jPanel48Layout.setVerticalGroup( jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel48Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel48Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelOutputClient) .addComponent(btnOutputClientReload)) .addContainerGap(18, Short.MAX_VALUE)) ); jPanel49.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableOutputClient.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane13.setViewportView(tableOutputClient); javax.swing.GroupLayout jPanel49Layout = new javax.swing.GroupLayout(jPanel49); jPanel49.setLayout(jPanel49Layout); jPanel49Layout.setHorizontalGroup( jPanel49Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel49Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 825, Short.MAX_VALUE) .addContainerGap()) ); jPanel49Layout.setVerticalGroup( jPanel49Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel49Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12); jPanel12.setLayout(jPanel12Layout); jPanel12Layout.setHorizontalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel12Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel49, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel48, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel12Layout.setVerticalGroup( jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel49, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel48, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane3.addTab("Client", jPanel12); jPanel50.setBorder(javax.swing.BorderFactory.createEtchedBorder()); btnOutputSalesOrderReload.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/dimas/bridging/images/sync_16x16.png"))); // NOI18N btnOutputSalesOrderReload.setText("Reload"); jLabelOutputSalesOrder.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelOutputSalesOrder.setText("jLabelOutputSalesOrder"); javax.swing.GroupLayout jPanel50Layout = new javax.swing.GroupLayout(jPanel50); jPanel50.setLayout(jPanel50Layout); jPanel50Layout.setHorizontalGroup( jPanel50Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel50Layout.createSequentialGroup() .addContainerGap() .addComponent(btnOutputSalesOrderReload, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelOutputSalesOrder, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(23, 23, 23)) ); jPanel50Layout.setVerticalGroup( jPanel50Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel50Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel50Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnOutputSalesOrderReload) .addComponent(jLabelOutputSalesOrder)) .addContainerGap(18, Short.MAX_VALUE)) ); jPanel51.setBorder(javax.swing.BorderFactory.createEtchedBorder()); tableOutputSalesOrder.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane14.setViewportView(tableOutputSalesOrder); javax.swing.GroupLayout jPanel51Layout = new javax.swing.GroupLayout(jPanel51); jPanel51.setLayout(jPanel51Layout); jPanel51Layout.setHorizontalGroup( jPanel51Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel51Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 825, Short.MAX_VALUE) .addContainerGap()) ); jPanel51Layout.setVerticalGroup( jPanel51Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel51Layout.createSequentialGroup() .addContainerGap() .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13); jPanel13.setLayout(jPanel13Layout); jPanel13Layout.setHorizontalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel13Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel51, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel50, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); jPanel13Layout.setVerticalGroup( jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel51, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel50, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); jTabbedPane3.addTab("Sales Order", jPanel13); javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel9Layout.createSequentialGroup() .addComponent(jTabbedPane3) .addContainerGap()) ); jPanel9Layout.setVerticalGroup( jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup() .addComponent(jTabbedPane3) .addContainerGap()) ); jTabbedPane2.addTab("Output BAYGON", jPanel9); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 1007, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 9, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane2) ); jLayeredPane1.add(jPanel1); jPanel1.setBounds(10, 10, 1020, 620); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1036, Short.MAX_VALUE) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLayeredPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 637, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.694586...
0.0
-1
Factory method that wraps a ComponentException with optional message.
public static ComponentURLException fromComponentException(String msg, ComponentException e) { if (e instanceof ComponentException.ComponentNotFoundException) { return msg != null ? new ComponentNotFoundURLException(msg, e) : new ComponentNotFoundURLException(e); } else { return msg != null ? new ComponentURLException(msg, e) : new ComponentURLException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause())...
[ "0.6255529", "0.61999094", "0.61920905", "0.61260444", "0.5873903", "0.5870234", "0.5850322", "0.5841431", "0.5812691", "0.58101094", "0.5802825", "0.5781088", "0.5777612", "0.57632226", "0.57610375", "0.5715854", "0.5702472", "0.56811756", "0.56806", "0.5671522", "0.56601036...
0.57693535
13
Returns a cause of this ComponentURLException DEV NOTE: this returns the local cause member, NOT the Throwable one.
public Throwable getCause() { return cause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Throwable getCause() {\n return cause;\n }", "public final Throwable getCause() {\n return cause;\n }", "public Throwable getCause()\r\n {\r\n return m_cause;\r\n }", "public Throwable getCause() {\n\t\treturn (iCause == this) ? null : iCause;\n\t}", "public Throwabl...
[ "0.7821037", "0.78075993", "0.7507776", "0.7476608", "0.7464526", "0.7442188", "0.74218166", "0.74053496", "0.7194763", "0.7128003", "0.709213", "0.69991314", "0.6957364", "0.6923605", "0.6895267", "0.6714624", "0.6606931", "0.65888613", "0.6543635", "0.65305316", "0.6527775"...
0.7853424
2
private EmployeeList employee_List; //adicionar a lista de empregados ou verificar conexao BD private String departments; // sera uma lista de ambientes especificos FUNCTIONS GET AND SET
public Address getAddress() { return address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<EmployeeDetails> getEmployeeDetails();", "public List<Employee> getEmployees();", "public List<Employees>getEMPMenaning() {\n\tString sql = \"SELECT Id_employees, Name_and_surname, Password, Work_role FROM employees \";\n\t\n\tList<Employees>list = new ArrayList<Employees>();\n\t\n\ttry {\n\t\tPrep...
[ "0.7160459", "0.7100407", "0.6820783", "0.6816881", "0.6790288", "0.6780168", "0.6726888", "0.67020243", "0.6654738", "0.66087747", "0.65541494", "0.65327924", "0.65242016", "0.64795953", "0.6435825", "0.6405054", "0.6363575", "0.6361461", "0.6314961", "0.6281055", "0.6280573...
0.0
-1
add users to db
@Override public void onSuccess(AuthResult authResult) { Users user = new Users(); user.setEmail(inputEmail.getText().toString()); user.setName(inputName.getText().toString()); user.setPhone(inputPhoneNumber.getText().toString()); user.setPassword(inputPassword.getText().toString()); users.child(FirebaseAuth.getInstance().getCurrentUser().getUid()) .setValue(user) .addOnSuccessListener(new OnSuccessListener<Void>() { @Override public void onSuccess(Void aVoid) { Snackbar.make(relativeLayoutsignup,"SignUp Successfully",Snackbar.LENGTH_SHORT) .show(); startActivity(new Intent(SignUpActivity.this,SignInActivity.class)); finish(); } }) .addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { Snackbar.make(relativeLayoutsignup,"Failed"+e.getMessage(),Snackbar.LENGTH_SHORT) .show(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToUsers(Users users) {\n Connection connection = connectionDB.openConnection();\n PreparedStatement preparedStatement;\n try {\n preparedStatement = connection.prepareStatement(WP_USERS_ADD_USER);\n preparedStatement.setString(1, users.getUser_login());\n ...
[ "0.77688086", "0.76680017", "0.7514696", "0.7508544", "0.74693865", "0.7362627", "0.7335788", "0.7335788", "0.72705656", "0.7249984", "0.72345394", "0.7147722", "0.71135116", "0.70891446", "0.70748556", "0.70522434", "0.70271295", "0.6988714", "0.6917955", "0.6899528", "0.687...
0.0
-1
Besides the value, also contains a version and expiration information.
public interface MetadataValue<V> extends VersionedValue<V> { long getCreated(); int getLifespan(); long getLastUsed(); int getMaxIdle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getExpiration() {\n return this.expiration;\n }", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"value:%s;expiry:%s\", value,\n\t\t\t\tTimeHepler.getStringDateShort(expiry));\n\t}", "public long getExpiration() {\n return expiration;\n }", "public Timestamp g...
[ "0.65693164", "0.6368129", "0.6327676", "0.63065594", "0.6273968", "0.62186384", "0.6185945", "0.6146828", "0.6146412", "0.6093724", "0.6092118", "0.607364", "0.6063143", "0.60579985", "0.60579985", "0.6016786", "0.5992321", "0.5991394", "0.59828305", "0.59815556", "0.5980570...
0.6483819
1
Delete a Record in Database
private void DeleteRecord() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Enter Roll no of Student to Delete"); final EditText input = new EditText(this); input.setInputType(InputType.TYPE_CLASS_TEXT); builder.setView(input); builder.setPositiveButton("OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { String mrollno=String.valueOf(input.getText()); Toast.makeText(getApplicationContext(),"Ciev", Toast.LENGTH_LONG).show(); dbInstance.execSQL("DELETE FROM studentWHERE rollno='"+mrollno+"'"); Toast.makeText(getApplicationContext(),"Record is Deleted", Toast.LENGTH_LONG).show(); } }); builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); builder.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.delete(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public void deleteRecord() {\n// foods.clear();...
[ "0.7673416", "0.7645139", "0.76233995", "0.75802433", "0.7541344", "0.7514147", "0.7454727", "0.740151", "0.73605305", "0.7353749", "0.72510195", "0.7243198", "0.7209222", "0.7191327", "0.7183535", "0.71477515", "0.71470165", "0.7122797", "0.71154416", "0.7114476", "0.7097285...
0.0
-1
Main method which is starting the game
public void startGame() { // Initialize both players players[0] = new Player("Paras", true); players[1] = new Player("Computer", false); // Initialize ChessBoard board = new ChessBoard(8); movesPlayed = new ArrayList<>(); // Keep playing game until GameStatus is BLACK_WIN or WHITE_WIN while (true) { processTurn(players[0]); if (this.status == GameStatus.WHITE_WIN) { System.out.println("P1 win!"); break; } processTurn(players[1]); if (this.status == GameStatus.BLACK_WIN) { System.out.println("P2 win!"); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n MainGameClass mg=new MainGameClass();\n mg.start();\n \n \n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n Game game = new Game(\"Programming 2 Project\",600,600);\n game.start();\n \n }", "publi...
[ "0.8080331", "0.8016679", "0.7838696", "0.78375745", "0.7804801", "0.7770804", "0.7742695", "0.77302295", "0.7725521", "0.76929986", "0.7670546", "0.7657434", "0.765607", "0.7636359", "0.7627785", "0.7619574", "0.7616576", "0.7608203", "0.75862205", "0.75713867", "0.75214887"...
0.0
-1
Move played by Player keep in Loop till valid move happens
public void processTurn(Player player) { Move move; do { Scanner scan = new Scanner(System.in); System.out.println("Enter current position of Piece you want to move"); // Positions entered by player int startX = scan.nextInt(); int startY = scan.nextInt(); System.out.println("Enter position where you want to put Piece"); int endX = scan.nextInt(); int endY = scan.nextInt(); // Move created based on position entered by player 1 move = new Move(player, board.getCellAtLocation(startX, startY), board.getCellAtLocation(endX, endY)); } while (!makeMove(move)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void play() {\n HashSet<Board> positionsPlayed = new HashSet<Board>();\n _board = new Board();\n\n while (true) {\n int playerInd = _board.turn().ordinal();\n Move next;\n if (_playing) {\n if (_board.gameOver()) {\n ann...
[ "0.7475185", "0.72883606", "0.72828734", "0.727936", "0.71408945", "0.7138821", "0.7009966", "0.69420576", "0.69230866", "0.68721914", "0.685612", "0.68225664", "0.6817991", "0.6809481", "0.67953986", "0.67931914", "0.6747055", "0.6744402", "0.67352206", "0.6734553", "0.67052...
0.749998
0
Actual Command executed by this method
private boolean makeMove(Move move) { // Moving piece from Cell Piece sourcePiece = move.getStart().getCurrentPiece(); // Valid Move? Calling Piece actual implementation if (!sourcePiece.canMove(board, move.getStart(), move.getEnd())) { System.out.println("Invalid Move, sourcePiece is " + sourcePiece); } // Killed other player Piece? Piece destPiece = move.getEnd().getCurrentPiece(); if (destPiece != null) { destPiece.setKilled(true); move.setPieceKilled(destPiece); } // castling? if (sourcePiece instanceof King && sourcePiece.isCastlingMove()) { move.setCastlingMove(true); } // Store the Move movesPlayed.add(move); // If move is VALID, set piece=null at start cell and new piece at dest cell move.getEnd().setCurrentPiece(sourcePiece); move.getStart().setCurrentPiece(null); // Game Win or not if (destPiece instanceof King) { if (move.getPlayedBy().isWhiteSide()) { this.setStatus(GameStatus.WHITE_WIN); } else { this.setStatus(GameStatus.BLACK_WIN); } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void execute(Command command) {\n\r\n }", "@Override\n public void Execute() {\n\n }", "protected void executeVmCommand() {\n }", "public abstract String getCommand();", "@Override\r\n protected void executeCommand(MyRobot robot) {\n }", "@Override\n protected...
[ "0.75810504", "0.7149151", "0.69093335", "0.6889422", "0.68735385", "0.68330485", "0.679391", "0.67624766", "0.67618775", "0.6748681", "0.6739473", "0.6738197", "0.6735732", "0.67096657", "0.67096657", "0.67096657", "0.66914517", "0.66811895", "0.66808766", "0.66742504", "0.6...
0.0
-1
TODO Autogenerated method stub
private void drawTile(int i, int j, Tile tile) { Rectangle rect = new Rectangle(175*i+50,j*175+25,175, 175); tilesDrawn.add(rect); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Creates new form CustomerViewDetails
public CustomerViewDetails() { initComponents(); Toolkit tk = Toolkit.getDefaultToolkit(); int x = (int) tk.getScreenSize().getWidth(); int y = (int) tk.getScreenSize().getHeight(); this.setSize(x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value=\"/pizza/custCreate.html\", method = RequestMethod.POST)\r\n public ModelAndView custCreate(\r\n @ModelAttribute(\"customer\")Customer customer,\r\n @CookieValue(value = \"v\", defaultValue = \"\") String visitorId,\r\n HttpServletResponse response) throws Exception {\n visitorMa...
[ "0.6954732", "0.6895723", "0.65097797", "0.647448", "0.6357762", "0.63163406", "0.6258497", "0.6225981", "0.62087035", "0.61897653", "0.6174532", "0.6143224", "0.6126569", "0.6052671", "0.6048801", "0.6024589", "0.6016942", "0.6002363", "0.59492004", "0.59019524", "0.58617043...
0.5990033
18
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">//GEN-BEGIN:initComponents private void initComponents() { jPanel2 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtName = new javax.swing.JTextField(); txtSurname = new javax.swing.JTextField(); txtcustid = new javax.swing.JTextField(); txtnic = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); btnPersonalDetails = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); tblupdatetour = new javax.swing.JTable(); jLabel5 = new javax.swing.JLabel(); txtpending = new javax.swing.JTextField(); btnDiscountDetails = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel2.setBackground(new java.awt.Color(255, 255, 255)); jPanel2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, null, new java.awt.Color(255, 255, 153), null, null)); jLabel2.setText("Name"); jLabel3.setText("Customer Id"); jLabel4.setText("Surname"); txtName.setEditable(false); txtName.setBackground(new java.awt.Color(255, 255, 255)); txtName.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtNameActionPerformed(evt); } }); txtSurname.setEditable(false); txtSurname.setBackground(new java.awt.Color(255, 255, 255)); txtcustid.setEditable(false); txtcustid.setBackground(new java.awt.Color(255, 255, 255)); txtnic.setEditable(false); txtnic.setBackground(new java.awt.Color(255, 255, 255)); jLabel6.setText("NIC"); btnPersonalDetails.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N btnPersonalDetails.setText("View Personal Details"); btnPersonalDetails.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); btnPersonalDetails.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPersonalDetailsActionPerformed(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel1.setText("Personal Details"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(37, 37, 37) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(1027, Short.MAX_VALUE)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtcustid, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtSurname, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtnic, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnPersonalDetails, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(87, 87, 87)))) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtSurname, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtnic, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(btnPersonalDetails, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtcustid, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(56, Short.MAX_VALUE)) ); tblupdatetour.setBackground(new java.awt.Color(204, 255, 255)); tblupdatetour.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED)); tblupdatetour.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N tblupdatetour.setForeground(new java.awt.Color(255, 0, 0)); tblupdatetour.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Title 1", "Title 2", "Title 3", "Title 4" } )); jScrollPane1.setViewportView(tblupdatetour); jLabel5.setFont(new java.awt.Font("Adobe Caslon Pro Bold", 1, 14)); // NOI18N jLabel5.setText("Pending Tours"); txtpending.setEditable(false); txtpending.setBackground(new java.awt.Color(204, 204, 255)); txtpending.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N txtpending.setForeground(new java.awt.Color(0, 0, 204)); txtpending.setBorder(null); txtpending.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtpendingActionPerformed(evt); } }); btnDiscountDetails.setFont(new java.awt.Font("Verdana", 1, 14)); // NOI18N btnDiscountDetails.setText("View Document Details"); btnDiscountDetails.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED)); btnDiscountDetails.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnDiscountDetailsActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(32, 32, 32) .addComponent(txtpending, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 926, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 100, Short.MAX_VALUE) .addComponent(btnDiscountDetails, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(78, 78, 78)))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(308, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(28, 28, 28)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(txtpending, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(103, 103, 103)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(btnDiscountDetails, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(174, 174, 174)))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(16, 16, 16) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(382, Short.MAX_VALUE))) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
End of variables declaration//GENEND:variables
public customerdetails getCsd() { return cd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Date of the next notification or null, if notification can't be sent more
static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) { Calendar sentCal = Calendar.getInstance(); sentCal.setTime(sentDate); for (int dayOffset : remindSteps) { sentCal.add(Calendar.DAY_OF_YEAR, dayOffset); if (sentCal.getTime().compareTo(now) > 0) { return sentCal.getTime(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRebillNextDate()\n\t{\n\t\tif(response.containsKey(\"next_date\")) {\n\t\t\treturn response.get(\"next_date\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract Date getNextFireTime();", "public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory...
[ "0.64389074", "0.63956463", "0.6256565", "0.62216985", "0.6199913", "0.616196", "0.60558146", "0.6026902", "0.5860115", "0.5786209", "0.5782198", "0.5740701", "0.57105416", "0.57051986", "0.55719596", "0.55622953", "0.5554319", "0.55409455", "0.5515254", "0.5509926", "0.55086...
0.72907054
0
This is a constructor transfer student
public Student(String name, int studentId) { this.name = name; this.studentId = studentId; this.numberOfCredits = 0; this.gpa = 0.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "public Student(){}", "public Student() {\n \n }", "public Student() {\r\n }", ...
[ "0.7843402", "0.7805272", "0.7699747", "0.76504135", "0.7613292", "0.76058435", "0.7498639", "0.7498639", "0.7498639", "0.7491702", "0.7440226", "0.7439704", "0.7360832", "0.731903", "0.72942275", "0.7278356", "0.72626984", "0.72622645", "0.72555965", "0.725017", "0.7206323",...
0.0
-1
This is a constructor new student
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student(){}", "public Student() {\n \n }", "public Student() {\r\n }", "public Student() {\n }", "public Student() {\n }", "pu...
[ "0.8644932", "0.8472109", "0.84720606", "0.84222615", "0.8314859", "0.8314859", "0.8314859", "0.82172924", "0.82122624", "0.82037157", "0.8171012", "0.8137546", "0.81291634", "0.8037541", "0.8036051", "0.80041754", "0.8001907", "0.79957414", "0.7975951", "0.7967052", "0.79626...
0.0
-1
Private getter is redundant because field is private use this. because it signifies it is a field (instead of global variable)
public int getStudentId() { return studentId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Get() {}", "private Get() {}", "public void get() {\n }", "public class_1048 method_2258() {\r\n return this.field_1859;\r\n }", "public class_1660 method_2257() {\r\n return this.field_1852;\r\n }", "@Override\n public void get() {}", "private PropertyAccess() {\n\t\tsuper();...
[ "0.6763179", "0.6763179", "0.6606712", "0.6601479", "0.6523437", "0.63966674", "0.6378219", "0.63655096", "0.63655096", "0.63532126", "0.630784", "0.6301744", "0.63003474", "0.62842155", "0.6220312", "0.62037104", "0.6180734", "0.6158803", "0.61490035", "0.61442715", "0.61366...
0.0
-1
no setter because we do not need to provide a way to change an ID
public int getNumberOfCredits() { return numberOfCredits; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "public void setId(int id){ this.id = id; }", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void...
[ "0.83461595", "0.81792754", "0.81291825", "0.80995464", "0.80995464", "0.8057102", "0.8057102", "0.7866329", "0.7835593", "0.7829836", "0.78238595", "0.78238595", "0.7805394", "0.7777516", "0.7754562", "0.7747857", "0.7741773", "0.7728316", "0.77238244", "0.7721475", "0.77188...
0.0
-1
Constructor: Initializes the counter.
public QuestionQueue () { count = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter() {\r\n this.count = 0;\r\n }", "public Counter()\n {\n this(0);\n }", "public Counter() {\r\n value = 0;\r\n }", "public BasicCounter() {\n count = 0;\n }", "public myCounter() {\n\t\tcounter = 1;\n\t}", "public Counter(int init){\n \tvalue = init;\...
[ "0.8734411", "0.86726403", "0.83885634", "0.8326315", "0.82428634", "0.80448943", "0.787879", "0.787879", "0.78468883", "0.7823079", "0.75960433", "0.7438475", "0.7420069", "0.7409347", "0.7354195", "0.7305425", "0.7283489", "0.7265121", "0.7233332", "0.7225763", "0.7178038",...
0.0
-1
Puts a question in the rear of the queue.
public void enqueue () { count++; questionList.add(newQuestion); //System.out.println("Question #"+ totNumQ + " is added to the queue."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }", "@Override\n\tpublic void execute() {\n\t\tthis.receiver.add(this.question, 42);\n\t}", "public void addQuestion(Question question);", "public void queue(Object newItem){\n if(isFull()){\n ...
[ "0.7623547", "0.6449386", "0.6436784", "0.6254869", "0.6247867", "0.60990024", "0.6095757", "0.6084604", "0.6040421", "0.6030499", "0.59746015", "0.59544045", "0.5860582", "0.5841185", "0.58039916", "0.5785109", "0.57830983", "0.5774506", "0.577002", "0.575959", "0.5750149", ...
0.69150937
1
Puts a question in the rear of the queue.
public void addQ (Question Q) { newQuestion = Q; enqueue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }", "@Override\n\tpublic void execute() {\n\t\tthis.receiver.add(this.question, 42);\n\t}", "public void addQuestion(Question questi...
[ "0.69150937", "0.6449386", "0.6436784", "0.6254869", "0.6247867", "0.60990024", "0.6095757", "0.6084604", "0.6040421", "0.6030499", "0.59746015", "0.59544045", "0.5860582", "0.5841185", "0.58039916", "0.5785109", "0.57830983", "0.5774506", "0.577002", "0.575959", "0.5750149",...
0.7623547
0
Removes a question from the front of the queue.
public void dequeue() { System.out.println("Question #"+ questionList.get(0).getQNum() + " is removed from the queue."); questionList.remove(0); count--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}", "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "private void questionRemove(Player player, QueuedQuestion qq) {\r\n\t\tlong qqid = qq.getId();\r\n\t\t// dont allow master's first quesiton to be removed\r\n//\t\tif (player.getIsMas...
[ "0.71156025", "0.6891283", "0.6831638", "0.681357", "0.6581744", "0.65154946", "0.6455885", "0.64134777", "0.64058113", "0.6398181", "0.63753074", "0.63417506", "0.6308679", "0.6282912", "0.62765294", "0.6266003", "0.62587756", "0.6231232", "0.623038", "0.62224865", "0.622115...
0.71906143
0
Returns the first question in queue.
public Question getFirstQ() { return questionList.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "public Object firstElement() {\n return _queue.firstElement();\n }", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }",...
[ "0.7670004", "0.75211114", "0.7498179", "0.7416442", "0.72729915", "0.7233774", "0.7229395", "0.7226251", "0.7178079", "0.71093136", "0.70604223", "0.7023954", "0.70162964", "0.69571143", "0.6894919", "0.68470514", "0.68152446", "0.67071235", "0.6701994", "0.66765314", "0.667...
0.8080278
0
Returns the size of the queue
public int getSize() { return questionList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getQueueSize();", "public int queueSize() {\n\t\treturn queue.size();\t\n\t}", "public long getQueueSize(){\n return queue.size();\n }", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public int size() {\n return queue.size();\n }", "public int size() {\n return ...
[ "0.9010169", "0.8921802", "0.8913381", "0.8848598", "0.8736755", "0.8726586", "0.87181306", "0.8703761", "0.86983824", "0.8688378", "0.86744696", "0.837217", "0.8235585", "0.82306296", "0.8138994", "0.80825335", "0.80222267", "0.8009988", "0.7957926", "0.79199207", "0.7886883...
0.0
-1
Returns true if the queue is empty.
public boolean empty() { return questionList.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isEmpty() {\n return this.queue.size() == 0;\n }", "boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean empty() {\n\t\treturn queue...
[ "0.9087273", "0.8937253", "0.8902561", "0.8869178", "0.8860727", "0.88598305", "0.88598305", "0.8836357", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.8832554", "0.88265526", "0.8775803", "0.8757256", "0.8757256", "0.8757256", "0.8757256", ...
0.0
-1
Returns a report describing the current queue.
public String toString() { String report = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"; report += "Numbered Question Queue\n\n"; //for (int i = 0; i < questionList.size();i++) // report += questionList.get(i) + "\n"; for (int i = 0; i < questionList.size();i++) report += "Q." + (i+1) + " " + questionList.get(i) + "\n"; return report; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getQueueDisplayName();", "@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();", "Collection<QueuedPrintJob> getQueue();", "public String queueName();", "public void printQueue();", "@DISPID(32)\r\n\t// = 0x20. The ...
[ "0.7201726", "0.6922306", "0.68775356", "0.6527583", "0.6400762", "0.638406", "0.63743573", "0.63546026", "0.6310842", "0.63050425", "0.63050425", "0.6302589", "0.62907666", "0.6279516", "0.62678885", "0.624263", "0.624263", "0.6133144", "0.607192", "0.60015494", "0.5997725",...
0.65818083
3
private static final CounterFactoryCOUNTER_FACTORY= CounterFactory.getInstance();
@Test public void testPerformance() { String testName = logTestName(); int cPass = 5; int iMax = 1000 * 1000; // int[] cThreadList = { 1, 2, 4, 6, 8 }; int[] cThreadList = { 1, 2, 4 }; StringGroup nameList = new StringGroup(testName); LockCounterFamily counterFamily = new LockCounterFamily(nameList); MagicNamedCounter namedCounter = new MagicNamedCounter(counterFamily); for (int cThread : cThreadList) { measurePerformance(new SynchronizedCounter(), cPass, iMax, cThread); measurePerformance(new AtomicCounter(), cPass, iMax, cThread); measurePerformance(new MagicReadCounter(), cPass, iMax, cThread); measurePerformance(new PlainWriteCounter(), cPass, iMax / 20, cThread); measurePerformance(new MagicWriteCounter(), cPass, iMax, cThread); measurePerformance(namedCounter, cPass, iMax, cThread); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter() {\r\n this.count = 0;\r\n }", "public static int getCounter() {return counter;}", "public myCounter() {\n\t\tcounter = 1;\n\t}", "int getInstanceCount();", "public Counter() {\r\n value = 0;\r\n }", "public BasicCounter() {\n count = 0;\n }", "private SchedulerT...
[ "0.7033099", "0.6933636", "0.69097227", "0.6756804", "0.6743474", "0.66773164", "0.6569733", "0.64622676", "0.6440722", "0.64278567", "0.64250094", "0.6398695", "0.6375435", "0.6369556", "0.63423145", "0.6338408", "0.6336231", "0.63052243", "0.6300268", "0.6267882", "0.626410...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_login, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79046476", "0.7805623", "0.7766615", "0.77274555", "0.7632045", "0.76220745", "0.75848633", "0.7531134", "0.74884325", "0.74575055", "0.74575055", "0.74388313", "0.74218154", "0.7403308", "0.7391667", "0.7386889", "0.73792624", "0.73705244", "0.7362704", "0.7355958", "0.73...
0.0
-1
private int x, y;
public MyView(Context context) { super(context); paint = new Paint(paint.ANTI_ALIAS_FLAG); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getY() { return y;}", "public int getY() { return y;}", "public int getX(){ return xPosition; }", "public int getY() {return y;}", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public int getY() { return y; }", "public int getY() { return y; }", "void setXandY(double ...
[ "0.740175", "0.740175", "0.7378016", "0.725847", "0.72361976", "0.7215639", "0.7215639", "0.7206225", "0.71672773", "0.7160915", "0.7109168", "0.70415866", "0.70257163", "0.70257163", "0.70257163", "0.70088816", "0.69832575", "0.6964582", "0.6960446", "0.69488585", "0.6948858...
0.0
-1
TODO Autogenerated method stub getAnnotations("Melanoma is a malignant tumor of melanocytes which+are found predominantly in skin but also in the bowel and the+eye") ;
public static void main(String[] args) throws IOException, ParseException { getAvaluation() ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DataMap getCustomAnnotations();", "Set<String> annotations();", "public abstract Annotations mo30682c();", "public String getAnnotation();", "public static Map<String, Integer> getAnnotations(String text) throws IOException, ParseException\n\t{\n\t \tMap<String, Integer> concepts = new HashMap<String, Inte...
[ "0.70338666", "0.6866439", "0.6680546", "0.6585328", "0.63491", "0.6280137", "0.62465143", "0.62442774", "0.621033", "0.616662", "0.6164187", "0.6090487", "0.60879415", "0.6059033", "0.60497016", "0.6035695", "0.6015469", "0.59974813", "0.5967091", "0.5943262", "0.5921001", ...
0.0
-1
Annotator function return all concepts within text input
public static Map<String, Integer> getAnnotations(String text) throws IOException, ParseException { Map<String, Integer> concepts = new HashMap<String, Integer>(); String request = URL + URLEncoder.encode(text, "UTF-8") ; ; String jRespond= restcalls.get(request,apikey) ; System.out.println(jRespond); JSONParser parser = new JSONParser(); Object obj = parser.parse(jRespond) ; JSONArray msgs = (JSONArray) obj; Iterator item = msgs.iterator(); // take each value from the json array separately while (item.hasNext()) { JSONObject innerObj = (JSONObject) item.next(); JSONArray msg = (JSONArray) innerObj.get("annotations") ; System.out.println(msg.toString()); Iterator iterator = msg.iterator(); while (iterator.hasNext()) { JSONObject annotinnerObj = (JSONObject) iterator.next(); System.out.println(annotinnerObj.get("matchType").toString()); // if (annotinnerObj.get("matchType").toString().equals("PREF")) { concepts.put(annotinnerObj.get("text").toString(), 1) ; } } } return concepts ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> computeDisplayAnnotations(VisualizerInput input,\n Class<? extends SNode> type) {\n if (input == null) {\n return new LinkedList<String>();\n }\n\n SDocumentGraph graph = input.getDocument().getSDocumentGraph();\n\n Set<String> annoPool = SToken.class.isAssignab...
[ "0.6085043", "0.6080948", "0.6021754", "0.5969714", "0.59543616", "0.5749153", "0.56787705", "0.5669952", "0.5582413", "0.55671763", "0.55661064", "0.5550288", "0.55438125", "0.5469024", "0.5466536", "0.5460225", "0.5393422", "0.5381145", "0.53249913", "0.5300529", "0.5300497...
0.6295138
0
/ ParseMessage is the main method used for figuring out what to do with a JSONObject sent from the frontend app to the backend through the WebSocketEndpoint. Here, other functions are called based on the "message". Input JSON "message",_____ Output JSON object sent back to frontend
public void parseMessage(JSONObject message, Session session, WebSocketEndpoint wsep) { Connection conn = null; Statement st = null; ResultSet rs = null; response = new JSONObject(); // transNotif = new JSONObject(); try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost/Sanity?user=root&password=root&useSSL=false"); st = conn.createStatement(); JSONObject r = new JSONObject(); if (!message.get("message").equals("signup") && !message.get("message").equals("login") && !message.get("message").equals("changePassword")) { r = notifyPeriod(message, session, conn); } else { r = null; } if (r!=null) { wsep.sendToSession(session, toBinary(r)); } response = new JSONObject(); // System.out.println(message.toString()); if (message.get("message").equals("signup")) { wsep.sendToSession(session, toBinary(signUp(message, conn))); } else if (message.get("message").equals("getHistory")) { wsep.sendToSession(session, toBinary(getHistory(message, session, conn))); } else if (message.get("message").equals("editBigBudgetAttributes")) { wsep.sendToSession(session, toBinary(editBigBudgetAttributes(message, session, conn))); } else if (message.get("message").equals("refreshdata")) { wsep.sendToSession(session, toBinary(refreshData(message, session, conn))); } else if (message.get("message").equals("refreshdatacategory")) { wsep.sendToSession(session, toBinary(refreshDataCategory(message, session, conn))); } else if (message.get("message").equals("refreshdatatransaction")) { wsep.sendToSession(session, toBinary(refreshDataTransaction(message, session, conn))); } else if (message.get("message").equals("refreshdatahistory")) { wsep.sendToSession(session, toBinary(refreshDataHistory(message, session, conn))); } else if (message.get("message").equals("login")) { wsep.sendToSession(session, toBinary(signIn(message, session, conn))); // if (r!=null) { // wsep.sendToSession(session, toBinary(r)); // } } else if (message.get("message").equals("createBigBudget")) { wsep.sendToSession(session, toBinary(createBigBudget(message, session, conn))); } else if (message.get("message").equals("createBudget")) { wsep.sendToSession(session, toBinary(createBudget(message, session, conn))); } else if (message.get("message").equals("editBigBudget")) { wsep.sendToSession(session, toBinary(editBigBudget(message, session, conn))); } else if (message.get("message").equals("editCategory")) { wsep.sendToSession(session, toBinary(editBudget(message, session, conn))); } else if (message.get("message").equals("deleteBigBudget")) { wsep.sendToSession(session, toBinary(deleteBigBudget(message, session, conn))); } else if (message.get("message").equals("deleteCategory")) { wsep.sendToSession(session, toBinary(deleteBudget(message, session, conn))); } else if (message.get("message").equals("editUser")) { // wsep.sendToSession(session, toBinary(refreshData(message, conn))); } else if (message.get("message").equals("changePassword")) { wsep.sendToSession(session, toBinary(editProfile(message, session, conn))); // wsep.sendToSession(session, toBinary(editProfile(message, conn))); } else if (message.get("message").equals("addTransaction")) { wsep.sendToSession(session, toBinary(addTransaction(message, session, conn))); } else if (message.get("message").equals("editTransactionDescription")) { wsep.sendToSession(session, toBinary(renameTransaction(message, session, conn))); } else if (message.get("message").equals("deleteTransaction")) { wsep.sendToSession(session, toBinary(deleteTransaction(message, session, conn))); } else if (message.get("message").equals("deleteAllTransactions")) { wsep.sendToSession(session, toBinary(deleteAllTransactions(message, session, conn))); } else if (message.get("message").equals("getAnalytics")) { } //clear database in each test function before running it else if (message.get("message").equals("logintest")) { wsep.sendToSession(session, toBinary(signInTest(message, session, conn))); } else if (message.get("message").equals("signuptest")) { //return signupsuccesstest, signupfailtest // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(signUpTest(message, session, conn))); } else if (message.get("message").equals("changePasswordTest")) { //return passwordSuccessTest, passwordFailTest // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(changePasswordTest(message, session, conn))); } else if (message.get("message").equals("addToBudgetTest")) { //return addToBudgetSuccessTest/fail //creates budget, category and adds transaction // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(addToBudgetTest(message, session, conn))); } else if (message.get("message").equals("subtractFromBudgetTest")) { //return subtractFromBudgetSuccessTest, success when category/budget amount has decreased //same as addToBudgetTest, sends -100 in amountToAdd // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(subtractFromBudgetTest(message, session, conn))); } else if (message.get("message").equals("transactionHistoryTest")) { //return transactionHistorySuccessTest if pull from transaction table is not 0 //create budget, create category, add transaction, check that it is not empty // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(transactionHistoryTest(message, session, conn))); } else if (message.get("message").equals("locationTest")) { //return locationSuccessTest if pull from transaction table is not 0 //create budget, create category, add transaction with location markerLatitude, markerLongitude // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(locationTest(message, session, conn))); } else if (message.get("message").equals("limitNotificationTest")) { //return limitNotificationSuccessTest if pull from transaction table is not 0 //create budget, category, and transaction (if under 20% left, send successs notification message) // // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(limitNotificationTest(message, session, conn))); } else if (message.get("message").equals("createBigBudgetTest")) { //return createBigBudgetSuccessTest, passwordFailTest //return success if budget amount is negative, is over 1000000 and not created in database //success if exception caught // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(createBigBudgetTest(message, session, conn))); } else if (message.get("message").equals("createBudgetTest")) { //return createBudgetSuccessTest, passwordFailTest // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(createBudgetTest(message, session, conn))); } else if (message.get("message").equals("deleteBigBudgetTest")) { //return deleteBigBudgetSuccessTest, passwordFailTest // deleteAll(conn); createUser(conn, session); wsep.sendToSession(session, toBinary(deleteBigBudgetTest(message, session, conn))); } //budget: bigBudgetName, bigBudgetAmount, userID, totalAmountSpent, totalAmountAdded, resetFrequency, resetStartDate //category: budgetName, budgetAmount, bigBudgetID //transaction: amountToAdd, budgetID, markerLatitude, markerLongitude } catch (ClassNotFoundException | SQLException | JSONException e) { //JSONObject response = new JSONObject(); try { response.put("SQLFail", "SQL connection could not be made."); } catch (JSONException e1) { e1.printStackTrace(); } e.printStackTrace(); wsep.sendToSession(session, toBinary(response)); } finally { try { if (rs != null) { rs.close(); } if (st != null) { st.close(); } if (conn != null) { conn.close(); } } catch (SQLException sqle) { System.out.println(sqle.getMessage()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMessageReceived(String receivedMessage) {\n try {\n JSONObject jsonFromString = new JSONObject(receivedMessage);\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private void parseMessage(String message) {\n\t\tJSONObje...
[ "0.7084562", "0.69849586", "0.69179803", "0.6804357", "0.671985", "0.6634088", "0.66124517", "0.6582515", "0.6520414", "0.6418108", "0.63775575", "0.63575035", "0.6350898", "0.63225275", "0.6307549", "0.6301633", "0.62764907", "0.627276", "0.6261855", "0.6258161", "0.6245119"...
0.75662625
0
/ When a user enters all of their information and clicks sign up, the data is then sent here. Input "message","signup" "firstname",___ "lastname",___ "password",___ "age",___ "email",___ "picture",___ Output "message","signupsuccess"/"signupfail" if signupfail > "signupfail",reason User data returned along with feed data in JSON
public JSONObject signUp(JSONObject message, Connection conn) { //JSONObject response = new JSONObject(); try { Statement st = conn.createStatement(); ResultSet rs = null; String signupemail = (String) message.get("email"); if (signupemail.length() > 0) { rs = st.executeQuery("SELECT * from TotalUsers"); while (rs.next()) { if (rs.getString("Email").equals(signupemail)) { response = getData(conn, rs.getInt("userID")); response.put("message", "signupfail"); response.put("signupfail", "Account already exists."); return response; //return failed sign up message } } String signupfirstname = message.getString("firstname"); String signuplastname = message.getString("lastname"); String signuppassword = (String)message.get("password"); signuppassword.replaceAll("\\s+",""); int s = hash(signuppassword); if (signupfirstname.equals("") || signuplastname.equals("") || signuppassword.equals("") || signupemail.equals("")) { response.put("message", "signupfail"); response.put("signupfail", "Please fill in all of the fields."); return response; //return failed sign up message } //Account has successful inputs and is now entered into the database. String addUser = "('" + signupfirstname + "', '" + signuplastname + "', " + s + ", '" + signupemail + "')"; // String addUser = "('" + signupfirstname + "', '" + signuplastname + "', " + signuppassword + "', '" + signupemail + "')"; st.execute(Constants.SQL_INSERT_USER + addUser + ";"); ResultSet rs3 = st.executeQuery("SELECT * FROM TotalUsers WHERE Email='" + signupemail + "';"); if (rs3.next()) { int id = rs3.getInt("userID"); Statement st1 = conn.createStatement(); DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); Date date = new Date(); String newDate = df.format(date); System.out.println(newDate); String addBigBudget = "(" + id + ", 'Annual Savings', 1, 0, 0, 0, 0, 365, '" + newDate + "', 365, '', '', '50');"; st1.execute(Constants.SQL_INSERT_BIGBUDGET + addBigBudget); response = getData(conn, id); response.put("userID", id); } // emailSessions.put(signupemail, session); response.put("message", "signupsuccess"); response.put("signupsuccess", "Account was made."); response.put("email", signupemail); response.put("firstName", signupfirstname); response.put("lastName", signuplastname); return response; } else { response.put("message", "signupfail"); response.put("signupfail", "Please enter an email."); return response; //return failed sign up message } } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "signupfail"); response.put("signupfail", "Sign up failed."); } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e1) { e1.printStackTrace(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void signUpEvt() {\n String emailRegex = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9...
[ "0.6990044", "0.69285876", "0.6905558", "0.68816775", "0.6849382", "0.68231714", "0.6819002", "0.68189627", "0.680251", "0.67329824", "0.6702744", "0.66966045", "0.6687366", "0.6686532", "0.66736305", "0.66158545", "0.6578246", "0.6558638", "0.6534729", "0.6525126", "0.648817...
0.69372433
1
/ When a user signs in, this is the function that deals with correct/incorrect info. Input "message","login" "email",___ "password",___ Output "message","loginsuccess"/"loginfail" if loginsuccess > all of user data and feed data returned in JSON if loginfail > "loginfail",reason
public JSONObject signIn(JSONObject message, Session session, Connection conn) { //JSONObject response = new JSONObject(); try { Statement st = conn.createStatement(); ResultSet rs = null; String signinemail = (String) message.get("email"); String signinpassword = (String) message.get("password"); signinpassword.replaceAll("\\s+",""); int p = hash(signinpassword); // System.out.println(); if (signinemail.length() > 0 && signinpassword.length() > 0) { rs = st.executeQuery("SELECT * from TotalUsers WHERE Email='" + signinemail + "';"); if (rs.next()) { if (rs.getInt("Password")==p) { JSONObject r = getData(conn, rs.getInt("userID")); for (String key : JSONObject.getNames(r)) { response.put(key, r.get(key)); } // System.out.println(response.toString()); response.put("message", "loginsuccess"); response.put("loginsuccess", "Logged in."); response.put("email", rs.getString("Email")); response.put("firstName", rs.getString("FirstName")); response.put("lastName", rs.getString("LastName")); // int userID = rs.getInt("userID"); message.put("userID", rs.getInt("userID")); // r = notifyPeriod(message, session, conn); return response; } else { response.put("message", "loginfail"); response.put("loginfail", "Incorrect password."); return response; } } else { response.put("message", "loginfail"); response.put("loginfail", "Email doesn't exist."); return response; } } else { response.put("message", "loginfail"); response.put("loginfail", "Please fill in all of the fields."); return response; } } catch (SQLException sqle) { try { response.put("message", "loginfail"); response.put("loginfailed", "Login failed."); } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject signInTest(JSONObject message, Session session, Connection conn) {\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tResultSet rs = null;\n\t\t\tString signinemail = (String) message.get(\"email\");\n\t\t\tString signinpassword = (String) message.get(\"password\");\n\t\t\tsigninpass...
[ "0.72205865", "0.6988598", "0.6772111", "0.6756142", "0.67325026", "0.6706357", "0.66774535", "0.6639222", "0.6638614", "0.6627677", "0.66017115", "0.6592288", "0.6592182", "0.65448713", "0.65239704", "0.65048045", "0.6494896", "0.64942724", "0.64891", "0.6447173", "0.6446926...
0.73107797
0
JSONObject response = new JSONObject();
public JSONObject signInTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String signinemail = (String) message.get("email"); String signinpassword = (String) message.get("password"); signinpassword.replaceAll("\\s+",""); int p = hash(signinpassword); // System.out.println(); if (signinemail.length() > 0 && signinpassword.length() > 0) { rs = st.executeQuery("SELECT * from TotalUsers WHERE Email='" + signinemail + "';"); if (rs.next()) { if (rs.getInt("Password")==p) { response.put("message", "loginsuccesstest"); response.put("loginsuccesstest", "Logged in."); response.put("email", rs.getString("Email")); response.put("firstName", rs.getString("FirstName")); response.put("lastName", rs.getString("LastName")); // int userID = rs.getInt("userID"); // return response; } else { response.put("message", "loginfailtest"); response.put("loginfailtest", "Incorrect password."); // return response; } } else { response.put("message", "loginfailtest"); response.put("loginfailtest", "Email doesn't exist."); // return response; } } else { response.put("message", "loginfailtest"); response.put("loginfailtest", "Please fill in all of the fields."); // return response; } } catch (SQLException sqle) { try { response.put("message", "loginfailtest"); response.put("loginfailtest", "Login failed."); } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject editProfile(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String newPassword = message.getString("newPassword"); String email = message.getString("email"); String oldPassword = message.getString("oldPassword"); System.out.println("new password"); rs = st.executeQuery("SELECT * from TotalUsers WHERE Email='" + email + "';"); if (rs.next()) { int p = hash(newPassword); int oldp = hash(oldPassword); if (rs.getInt("Password") == oldp) { System.out.println("new password"); Statement st1 = conn.createStatement(); st1.executeUpdate("UPDATE TotalUsers SET Password=" + p + " WHERE Email='" + email + "';"); response = getData(conn, rs.getInt("userID")); response.put("message", "passwordSuccess"); response.put("email", rs.getString("Email")); response.put("firstName", rs.getString("FirstName")); response.put("lastName", rs.getString("LastName")); System.out.println(response); } else { response.put("message", "passwordFail"); } } else { response.put("message", "passwordFail"); } } catch(SQLException sqle) { sqle.printStackTrace(); } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBigBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String name = message.getString("bigBudgetName"); double amount = message.getDouble("bigBudgetAmount"); int user = message.getInt("userID"); String date = message.getString("resetStartDate"); String frequency = message.getString("resetFrequency"); int freq = 0; if (frequency.equals("Daily")) { freq = 1; } else if (frequency.equals("Weekly")) { freq = 7; } else if (frequency.equals("Monthly")) { freq = 30; } else if (frequency.equals("Yearly")) { freq = 365; } else if (frequency.equals("")) { freq = 30; //default is monthly } else { response = getData(conn, user); response.put("message", "createBigBudgetFail"); response.put("createBigBudgetFail", "Enter a correct frequency (Daily, Weekly, Monthly, Yearly)"); return response; } System.out.println(date); String addBigBudget = "(" + user + ", '"+ name + "', 1, 34.0222, -118.282, " + amount + ", 0, " + freq + ", '" + date + "', " + freq + ", '50','','80 90 95 100');"; st.execute(Constants.SQL_INSERT_BIGBUDGET + addBigBudget); // if (success) { response = getData(conn, user); response.put("message", "createbudgetsuccess"); // } // else { // response.put("message", "createbudgetfail"); // response.put("createbudgetfail", "Create budget failed not successful."); // } //add budgets to feed return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "createbudgetfail"); response.put("createbudgetfail", "Create budget failed."); return response; } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
frequency, bigbudgetID, frequency will be string but parsable to int for custom
public JSONObject editBigBudgetAttributes(JSONObject message, Session session, Connection conn) { return null; //add to editBigBudget }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFrequency(String frequency)\n {\n this.frequency = frequency;\n }", "BigInteger getMax_freq();", "FrequencyRegister(String subId) {\n \n reg2 = new FrequencySubRegister(\"FREQ2\" + subId);\n reg1 = new FrequencySubRegister(\"FREQ1\" + subId);\n reg0 =...
[ "0.62272334", "0.605517", "0.59037334", "0.58996224", "0.58388907", "0.57232094", "0.57225347", "0.5624405", "0.56104004", "0.5575312", "0.55730116", "0.5560906", "0.55118096", "0.55011183", "0.54565966", "0.54170954", "0.5402473", "0.5384281", "0.538104", "0.5332389", "0.530...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject editBigBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int id = message.getInt("bigBudgetID"); String name = message.getString("bigBudgetName"); String newAmount = message.getString("budgetAmount"); String frequency = message.getString("frequency"); String lNotification = message.getString("limitNotification"); String pNotification = message.getString("periodUpdateNotification"); if (!lNotification.equals("")) { String[] lnotifications = lNotification.split(", "); String lnupdate = ""; for (int i=0; i<lnotifications.length; i++) { lnupdate += (lnotifications[i] + " "); } st.execute("UPDATE BigBudgets SET LimitNotification='" + lnupdate + "' WHERE bigBudgetID=" + id + ";"); } if (!pNotification.equals("")) { String[] pnotifications = pNotification.split(", "); String pnupdate = ""; for (int i=0; i<pnotifications.length; i++) { pnupdate += (pnotifications[i] + " "); } Statement sthelp = conn.createStatement(); ResultSet rshelp = sthelp.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + id + ";"); String p = ""; if (rshelp.next()) { p = rshelp.getString("PeriodNotificationChecked"); } String[] plist = p.split(" "); int pmax = 0; for (int i=0; i<plist.length; i++) { if (Integer.parseInt(plist[i])>=pmax) { pmax = Integer.parseInt(plist[i]); } } String newchecked = ""; for (int i=0; i<pnotifications.length; i++) { if (Integer.parseInt(pnotifications[i])<=pmax) { newchecked += (Integer.parseInt(pnotifications[i]) + " "); } } st.execute("UPDATE BigBudgets SET PeriodNotification='" + pnupdate + "', PeriodNotificationChecked='" + newchecked + "' WHERE bigBudgetID=" + id+";"); } if (!name.equals("")) { String editBigBudget = "UPDATE BigBudgets SET BigBudgetName='" + name + /*"', BigBudgetAmount=" + amount +*/ "' WHERE bigBudgetID=" + id + ";"; st.execute(editBigBudget); } if (!newAmount.equals("")) { double amount = message.getDouble("budgetAmount"); rs = st.executeQuery("SELECT * FROM Budgets WHERE bigBudgetID=" + id + ";"); double sum = 0; while (rs.next()) { sum += rs.getDouble("BudgetAmount"); } if (sum >= amount) { response = getData(conn, message.getInt("userID")); response.put("message", "editbudgetfail"); response.put("editbudgetfail", "You can't make the budget amount less than the sum of the categories."); return response; } else { String editBigBudget = "UPDATE BigBudgets SET BigBudgetAmount=" + amount + " WHERE bigBudgetID=" + id + ";"; st.execute(editBigBudget); } } if (!frequency.equals("")) { int freq = 0; if (frequency.equalsIgnoreCase("Daily")) { freq = 1; } else if (frequency.equalsIgnoreCase("Weekly")) { freq = 7; } else if (frequency.equalsIgnoreCase("Monthly")) { freq = 30; } else if (frequency.equalsIgnoreCase("Yearly")) { freq = 365; } else { try { freq = Integer.parseInt(frequency); } catch (NumberFormatException e) { response = getData(conn, message.getInt("userID")); response.put("message", "editbudgetfail"); response.put("editbudgetfail", "Invalid frequency added."); return response; } } st.execute("UPDATE BigBudgets SET Frequency=" + freq + ", BigBudgetDaysLeft=" + freq + " WHERE bigBudgetID=" + id + ";"); } // double amount = message.getDouble("bigBudgetAmount"); // st.execute(editBigBudget); response = getData(conn, message.getInt("userID")); response.put("message", "editbudgetsuccess"); response.put("editbudgetsuccess", "Edit budget success."); return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "editbudgetfail"); response.put("editbudgetfail", "Edit budget failed."); return response; } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int user = message.getInt("userID"); String name = message.getString("budgetName"); int budgetID = message.getInt("bigBudgetID"); double amount = message.getDouble("budgetAmount"); String result = "(" + budgetID + ", " + amount + ", '" + name + "', 0);"; st.execute(Constants.SQL_INSERT_BUDGET + result); response = getData(conn, user); response.put("message", "createcategorysuccess"); return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "createcategoryfailed"); response.put("createbudgetfail", "Create category failed."); return response; } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject editBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int id = message.getInt("categoryID"); String name = message.getString("categoryName"); String amount = message.getString("categoryAmount"); String editBudget = ""; if (!name.equals("")) { editBudget = "UPDATE Budgets SET BudgetName='" + name + /*"', BudgetAmount=" + amount + */"' WHERE budgetID=" + id + ";"; st.execute(editBudget); } if (!amount.equals("")) { double a = message.getDouble("categoryAmount"); rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID=" + id + ";"); int bbID = 0; if (rs.next()) { bbID = rs.getInt("bigBudgetID"); } Statement st1 = conn.createStatement(); ResultSet rs1 = st1.executeQuery("SELECT * FROM Budgets WHERE bigBudgetID=" + bbID + ";"); double sum = 0; if (rs1.next()) { if (rs1.getInt("budgetID") != id) { sum += rs1.getDouble("BudgetAmount"); } } Statement st2 = conn.createStatement(); ResultSet rs2 = st2.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID=" + bbID + ";"); double bigBudgetAmount = 0; if (rs2.next()) { bigBudgetAmount = rs2.getDouble("BigBudgetAmount"); } if ((sum+a)<=bigBudgetAmount) { editBudget = "UPDATE Budgets SET BudgetAmount=" + amount + " WHERE budgetID=" + id + ";"; st.execute(editBudget); } else { response = getData(conn, message.getInt("userID")); response.put("message", "editcategoryfail"); response.put("editcategoryfail", "You can't make the category amounts sum to more than the budget limit."); return response; } //TODO make sure it doesn't go over BigBUDGETAMOUTN } // else { // editBudget = "UPDATE Budgets SET BudgetName='" + name + "', BudgetAmount=" + amount + " WHERE budgetID=" + id + ";"; // st.execute(editBudget); // } // response = notify(conn, null, message); // JSONObject data = getData(conn, message.getInt("userID")); // for (String key : JSONObject.getNames(data)) { // response.put(key, data.get(key)); // } // if (!response.getString("message").equals("notification")) { response = getData(conn, message.getInt("userID")); response.put("message", "editcategorysuccess"); response.put("editcategorysuccess", "Edit category success."); // } return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "editcategoryfail"); response.put("editbudgetfail", "Edit budget failed."); return response; } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int id = message.getInt("categoryID"); String deleteTransactions = "DELETE FROM Transactions WHERE budgetID=" + id + ";"; st.execute(deleteTransactions); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID=" + id + ";"); double addBack = 0; int bigBudgetID = 0; if (rs.next()) { addBack = rs.getFloat("TotalAmountSpent"); bigBudgetID = rs.getInt("bigBudgetID"); } String deleteBudget = "DELETE FROM Budgets WHERE budgetID=" + id + ";"; st.execute(deleteBudget); ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + bigBudgetID + ";"); double bbAmountSpent = 0; if (rs1.next()) { bbAmountSpent = rs1.getFloat("TotalAmountSpent"); } st.executeUpdate("UPDATE BigBudgets SET TotalAmountSpent=" + (bbAmountSpent-addBack) + " WHERE bigBudgetID=" + bigBudgetID + ";"); response = getData(conn, message.getInt("userID")); response.put("message", "removebudgetsuccess"); response.put("removebudgetsuccess", "You removed a category."); } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "removebudgetfailure"); response.put("removebudgetfailure", "SQLException in backend. ID not removed."); return response; } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject refreshDataCategory(JSONObject message, Session session, Connection conn) { try { response = getData(conn, message.getInt("userID")); response.put("message", "getdatacategorysuccess"); return response; } catch (JSONException e) { try { response.put("message", "getdatacategoryfail"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // TODO Auto-generated catch block e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject refreshDataTransaction(JSONObject message, Session session, Connection conn) { try { response = getData(conn, message.getInt("userID")); if (transNotif != null) { response.put("notification", "yes"); response.put("notify", transNotif.get("notify")); transNotif = null; } else { response.put("notification", "no"); } response.put("message", "getdatatransactionsuccess"); return response; } catch (JSONException e) { try { response.put("message", "getdatatransactionfail"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // TODO Auto-generated catch block e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject refreshDataHistory(JSONObject message, Session session, Connection conn) { try { response = getData(conn, message.getInt("userID")); response.put("message", "getdatahistorysuccess"); return response; } catch (JSONException e) { try { response.put("message", "getdatahistoryfail"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // TODO Auto-generated catch block e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteBigBudget(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int id = message.getInt("bigBudgetID"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE bigBudgetID=" + id + ";"); Statement st1 = conn.createStatement(); while (rs.next()) { st1.execute("DELETE FROM Transactions WHERE budgetID=" + rs.getInt("budgetID") + ";"); } String deleteBudgetcmd = "DELETE FROM Budgets WHERE bigBudgetID=" + id + ";"; st1.execute(deleteBudgetcmd); String deleteBigBudget = "DELETE FROM BigBudgets WHERE bigBudgetID=" + id + ";"; st1.execute(deleteBigBudget); response.put("message", "removebigbudgetsuccess"); response.put("removebigbudgetsuccess", "You removed a budget and its categories."); return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "removebigbudgetfailure"); response.put("removebigbudgetfailure", "SQLException in backend. ID not removed."); return response; } catch (JSONException e) { e.printStackTrace(); } return response; } catch (JSONException e) { e.printStackTrace(); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject getData(Connection conn, int userID) { try { Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("SELECT * FROM BigBudgets WHERE userID = " + userID + ";"); response.put("userID", userID); int budcounter = 1; while (rs.next()) { // System.out.println(rs.getString("BigBudgetName")); budcounter++; JSONObject currBudget = new JSONObject(); int bbID = rs.getInt("bigBudgetID"); currBudget.put("budgetName", rs.getString("BigBudgetName")); currBudget.put("budgetAmount", rs.getDouble("BigBudgetAmount")); currBudget.put("totalAmountSpent", rs.getDouble("TotalAmountSpent")); currBudget.put("daysLeft", rs.getInt("BigBudgetDaysLeft")); currBudget.put("budgetID", bbID); int f = rs.getInt("Frequency"); if (f==1) { currBudget.put("frequency", "daily"); } else if (f==7) { currBudget.put("frequency", "weekly"); } else if (f==30) { currBudget.put("frequency", "monthly"); } else if (f==365) { currBudget.put("frequency", "yearly"); } else { currBudget.put("frequency", "every " + f + " days"); } Statement st1 = conn.createStatement(); ResultSet rs1 = st1.executeQuery("SELECT * FROM Budgets WHERE bigBudgetID = " + bbID + ";"); int catcounter = 0; while (rs1.next()) { // System.out.println("add category"); catcounter++; JSONObject currCat = new JSONObject(); currCat.put("categoryName", rs1.getString("BudgetName")); currCat.put("categoryAmount", rs1.getDouble("BudgetAmount")); currCat.put("categoryID", rs1.getInt("budgetID")); currCat.put("totalAmountSpent", rs1.getDouble("TotalAmountSpent")); //Nest transactions into categories Statement st2 = conn.createStatement(); ResultSet rs2 = st2.executeQuery("SELECT * FROM Transactions WHERE budgetID = " + rs1.getInt("budgetID") + ";"); JSONArray transJSONArr = new JSONArray(); int transCounter = 0; while(rs2.next()) { JSONObject transJSON = new JSONObject(); double a = rs2.getDouble("Amount"); String tAmount; if (a < 0) { tAmount = "+" + String.format("%.2f", -a); } else { tAmount = "-" + String.format("%.2f", a); } transJSON.put("transactionAmount", tAmount); transJSON.put("transactionDetails", rs2.getString("Details")); transJSON.put("Longitude", rs2.getFloat("Longitude")); transJSON.put("Latitude", rs2.getFloat("Latitude")); transJSON.put("Date", rs2.getString("DateValue")); transJSON.put("transactionID", rs2.getInt("transactionID")); transCounter++; transJSONArr.put(transJSON); } currCat.put("transactionSize", transCounter); currCat.put("transactions", transJSONArr); currBudget.put("category" + catcounter, currCat); } currBudget.put("numCategories", catcounter); // System.out.println(currBudget.toString()); if (rs.getString("BigBudgetName").equals("Annual Savings")) { response.put("budget1", currBudget); budcounter--; } else { response.put("budget" + budcounter, currBudget); } } response.put("numBudgets", budcounter); } catch (JSONException | SQLException e) { System.out.println("Exception caught in getData." + e.getMessage()); } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject addTransaction(JSONObject message, Session session, Connection conn) { transNotif = new JSONObject(); try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int userID = message.getInt("userID"); int budgetID = message.getInt("categoryID"); double latitude = message.getDouble("latitude"); double longitude = message.getDouble("longitude"); String details = message.getString("details"); String date = message.getString("date"); int auto = 0; if (message.getBoolean("automaticTransaction")) { System.out.println("help"); auto = 1; } //latitude, longitude, details st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + amount + ", '" + details + "', " + latitude + ", " + longitude +", '" + date + "', " + auto + ");"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID = " + budgetID + ";"); // System.out.println("rs"); int bigBudgetID=0; double budgetSpent=0; double newBudgetSpent=0; double budgetAmount=0; String budgetName=""; if(rs.next()) { bigBudgetID = rs.getInt("bigBudgetID"); budgetSpent = rs.getDouble("TotalAmountSpent"); newBudgetSpent = budgetSpent + amount; budgetAmount = rs.getDouble("BudgetAmount"); budgetName = rs.getString("BudgetName"); System.out.println(bigBudgetID); } // System.out.println("rs"); ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + bigBudgetID + ";"); // System.out.println("rs1"); double bigBudgetSpent = 0; double bigbudgetAmount = 0; double newBigBudgetSpent = 0; String bigbudgetName = ""; int daysLeft = 0; String lnotification=""; if (rs1.next()) { bigBudgetSpent = rs1.getDouble("TotalAmountSpent"); newBigBudgetSpent = bigBudgetSpent+amount; bigbudgetAmount = rs1.getDouble("BigBudgetAmount"); bigbudgetName = rs1.getString("BigBudgetName"); daysLeft = rs1.getInt("BigBudgetDaysLeft"); lnotification = rs1.getString("LimitNotification"); } String[] lnList = lnotification.split(" "); ArrayList<Integer> list = new ArrayList<Integer>(); for (int i=0; i<lnList.length; i++) { try { list.add(Integer.parseInt(lnList[i])); } catch(NumberFormatException e) { e.printStackTrace(); } } st.executeUpdate("UPDATE Budgets SET TotalAmountSpent = " + newBudgetSpent + " WHERE budgetID = " + budgetID + ";"); System.out.println("update"); response = getData(conn, userID); st.executeUpdate("UPDATE BigBudgets SET TotalAmountSpent = " + newBigBudgetSpent + " WHERE bigBudgetID = " + bigBudgetID + ";"); Arrays.sort(list.toArray()); boolean added = false; for (int i=list.size()-1; i>=0; i--) { System.out.println(list.get(i)); System.out.println(newBudgetSpent + ", " + ((double)list.get(i)/100)*(budgetAmount) + ", " + budgetSpent + ", " + budgetAmount + ", " + (newBudgetSpent > ((list.get(i)/100)*(budgetAmount)))); if ((newBudgetSpent >= (((double)list.get(i)/100)*(budgetAmount))) && (budgetSpent < (((double)list.get(i)/100)*budgetAmount))) { response.put("notification", "yes"); response.put("notify", "You have now spent " + list.get(i) + "% of category " + budgetName + " which is in budget " + bigbudgetName + ". You have " + daysLeft + " more days."); i = -1; added = true; } } if (!added) { response.put("notification", "no"); } // if (newBudgetSpent >= ((budgetAmount)) && budgetSpent <= (budgetAmount)) { // response.put("notification", "yes"); // response.put("notify", "You have used all of your allotted amount in category " + budgetName + " which is in budget " + bigbudgetName + ". You have " + daysLeft + " more days."); // } // else if (newBudgetSpent > (0.95*(budgetAmount)) && budgetSpent <= (0.95*budgetAmount)) { // response.put("notification", "yes"); // response.put("notify", "You now have less than 5% left in category " + budgetName + " which is in budget " + bigbudgetName + ". You have " + daysLeft + " more days."); // } // else if (newBudgetSpent > (0.9*(budgetAmount)) && budgetSpent <= (0.9*budgetAmount)) { // response.put("notification", "yes"); // response.put("notify", "You now have less than 10% left in category " + budgetName + " which is in budget " + bigbudgetName + ". You have " + daysLeft + " more days."); // } // else if (newBudgetSpent > (0.8*(budgetAmount)) && budgetSpent <= (0.8*budgetAmount)) { // response.put("notification", "yes"); // response.put("notify", "You now have less than 20% left in category " + budgetName + " which is in budget " + bigbudgetName + ". You have " + daysLeft + " more days."); // } // else { // response.put("notification", "no"); // } if (response.getString("notification").equals("no")) { transNotif = null; } else { transNotif.put("notification", "yes"); transNotif.put("notify", response.getString("notify")); } response.put("message", "addTransactionSuccess"); } catch (SQLException | JSONException e) { e.printStackTrace(); try { response.put("message", "addTransactionFail"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } // deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject renameTransaction(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int transID = message.getInt("transactionID"); int userID = message.getInt("userID"); String details = message.getString("newDescription"); st.execute("UPDATE Transactions SET Details='" + details + "' WHERE transactionID=" + transID + ";"); response = getData(conn, userID); response.put("message", "renameTransactionSuccess"); } catch(SQLException | JSONException e) { e.printStackTrace(); try { response.put("message", "renameTransactionFail"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteTransaction(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int transID = message.getInt("transactionID"); int userID = message.getInt("userID"); int budgetID = 0; double amount = 0; ResultSet rs = st.executeQuery("SELECT * FROM Transactions WHERE transactionID=" + transID + ";"); int bigBudgetID = 0; if (rs.next()) { amount = rs.getFloat("Amount"); budgetID = rs.getInt("budgetID"); } ResultSet rs1 = st.executeQuery("SELECT * FROM Budgets WHERE budgetID=" + budgetID + ";"); double budgetAmountSpent = 0; if (rs1.next()) { budgetAmountSpent = rs1.getFloat("TotalAmountSpent"); bigBudgetID = rs1.getInt("bigBudgetID"); } ResultSet rs2 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID=" + bigBudgetID + ";"); double bigBudgetAmountSpent = 0; if (rs2.next()) { bigBudgetAmountSpent = rs2.getFloat("TotalAmountSpent"); } Statement st4 = conn.createStatement(); st4.execute("UPDATE Budgets SET TotalAmountSpent=" + (budgetAmountSpent-amount) + " WHERE budgetID=" + budgetID + ";"); Statement st5 = conn.createStatement(); st5.execute("UPDATE BigBudgets SET TotalAmountSpent=" + (bigBudgetAmountSpent-amount) + "WHERE bigBudgetID=" + bigBudgetID + ";"); String deleteTrans = "DELETE FROM Transactions WHERE transactionID=" + transID + ";"; st.execute(deleteTrans); response = getData(conn, userID); response.put("message", "deleteTransactionSuccess"); } catch (SQLException | JSONException e) { e.printStackTrace(); try { response.put("message", "deleteTransactionFail"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteAllTransactions(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); int budgetID = message.getInt("categoryID"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID=" + budgetID + ";"); double addBack = 0; int bigBudgetID = 0; if (rs.next()) { addBack = rs.getFloat("TotalAmountSpent"); bigBudgetID = rs.getInt("bigBudgetID"); } ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID=" + bigBudgetID + ";"); double bbAmountSpent = 0; if (rs1.next()) { bbAmountSpent = rs1.getFloat("TotalAmountSpent"); } st.execute("DELETE FROM Transactions WHERE budgetID = " + budgetID + ";"); st.execute("UPDATE Budgets SET TotalAmountSpent=0 WHERE budgetID=" + budgetID + ";"); st.execute("UPDATE BigBudgets SET TotalAmountSpent = " + (bbAmountSpent-addBack) + " WHERE bigBudgetID=" + bigBudgetID + ";"); response.put("message", "deleteAllTransactionsSuccess"); } catch (SQLException | JSONException e) { e.printStackTrace(); try { response.put("message", "deleteAllTransactionsFail"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject signUpTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String signupemail = (String) message.get("email"); if (signupemail.length() > 0) { rs = st.executeQuery("SELECT * from TotalUsers"); while (rs.next()) { if (rs.getString("Email").equals(signupemail)) { response = getData(conn, rs.getInt("userID")); response.put("message", "signupfailtest"); response.put("signupfailtest", "Account already exists."); return response; //return failed sign up message } } String signupfirstname = message.getString("firstname"); String signuplastname = message.getString("lastname"); String signuppassword = (String)message.get("password"); signuppassword.replaceAll("\\s+",""); int s = hash(signuppassword); if (signupfirstname.equals("") || signuplastname.equals("") || signuppassword.equals("") || signupemail.equals("")) { response.put("message", "signupfailtest"); response.put("signupfailtest", "Please fill in all of the fields."); return response; //return failed sign up message } //Account has successful inputs and is now entered into the database. String addUser = "('" + signupfirstname + "', '" + signuplastname + "', " + s + ", '" + signupemail + "')"; // String addUser = "('" + signupfirstname + "', '" + signuplastname + "', " + signuppassword + "', '" + signupemail + "')"; st.execute(Constants.SQL_INSERT_USER + addUser + ";"); // emailSessions.put(signupemail, session); response.put("message", "signupsuccesstest"); response.put("signupsuccesstest", "Account was made."); response.put("email", signupemail); response.put("firstName", signupfirstname); response.put("lastName", signuplastname); } else { response.put("message", "signupfailtest"); response.put("signupfailtest", "Please enter an email."); // return response; //return failed sign up message } } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "signupfailtest"); response.put("signupfailtest", "Sign up failed."); } catch (JSONException e) { e.printStackTrace(); } // return response; } catch (JSONException e1) { e1.printStackTrace(); } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject changePasswordTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String newPassword = message.getString("newPassword"); String email = message.getString("email"); int p = hash(newPassword); rs = st.executeQuery("SELECT * from TotalUsers WHERE Email='" + email + "';"); if (rs.next()) { st.executeUpdate("UPDATE TotalUsers SET Password=" + p + " WHERE Email='" + email + "';"); response.put("message", "passwordSuccessTest"); response.put("email", rs.getString("Email")); response.put("firstName", rs.getString("FirstName")); response.put("lastName", rs.getString("LastName")); } else { response.put("message", "passwordFailTest"); } } catch(SQLException sqle) { } catch (JSONException e) { e.printStackTrace(); } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBigBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; String name = message.getString("bigBudgetName"); double amount = message.getDouble("bigBudgetAmount"); int user = message.getInt("userID"); boolean success; if (amount > 0 && amount <= 1000000) { String addBigBudget = "(" + user + ", '"+ name + "', 1, 34.0222, -118.282, " + amount + ", 0)"; st.execute(Constants.SQL_INSERT_BIGBUDGET + addBigBudget); } else { success = true; } response.put("message", "createBigBudgetSuccessTest"); //add budgets to feed // return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "createBigBudgetSuccessTest"); response.put("createBigBudgetSuccessTest", "Create budget failed."); // return response; } catch (JSONException e) { try { response.put("message", "createBigBudgetSuccessTest"); response.put("createBigBudgetSuccessTest", "Create budget failed."); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } e.printStackTrace(); } // return response; } catch (JSONException e) { try { response.put("message", "createBigBudgetSuccessTest"); response.put("createBigBudgetSuccessTest", "didn't create"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } e.printStackTrace(); } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject createBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int user = message.getInt("userID"); String name = message.getString("budgetName"); int budgetID = message.getInt("bigBudgetID"); double amount = message.getDouble("budgetAmount"); String result = "(" + budgetID + ", " + amount + ", '" + name + "',0);"; boolean success = st.execute(Constants.SQL_INSERT_BUDGET + result); response.put("message", "createBudgetSuccessTest"); // return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "createBudgetFailTest"); response.put("createBudgetFailTest", "Create category failed."); // return response; } catch (JSONException e) { e.printStackTrace(); } // return response; } catch (JSONException e) { e.printStackTrace(); } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject deleteBigBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); ResultSet rs = null; int id = message.getInt("bigBudgetID"); String deleteBudgetcmd = "DELETE FROM Budgets WHERE bigBudgetID=" + id + ";"; st.execute(deleteBudgetcmd); String deleteBigBudget = "DELETE FROM BigBudgets WHERE bigBudgetID=" + id + ";"; st.execute(deleteBigBudget); response.put("message", "deleteBigBudgetSuccessTest"); response.put("deleteBigBudgetSuccessTest", "You removed a budget and its categories."); // return response; } catch (SQLException sqle) { try { sqle.printStackTrace(); response.put("message", "deleteBigBudgetFailTest"); response.put("deleteBigBudgetFailTest", "SQLException in backend. ID not removed."); // return response; } catch (JSONException e) { e.printStackTrace(); } // return response; } catch (JSONException e) { e.printStackTrace(); } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject addToBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + amount + ", '', 0, 0);"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID = " + budgetID + ";"); System.out.println("rs"); int bigBudgetID=0; double budgetSpent=0; if(rs.next()) { bigBudgetID = rs.getInt("bigBudgetID"); budgetSpent = rs.getDouble("TotalAmountSpent") + amount; System.out.println(bigBudgetID); } System.out.println("rs"); ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + bigBudgetID + ";"); System.out.println("rs1"); double bigBudgetSpent = 0; double bigbudgetAmount = 0; String bigbudgetName = ""; if (rs1.next()) { bigBudgetSpent = rs1.getDouble("TotalAmountSpent")+amount; bigbudgetAmount = rs1.getDouble("BigBudgetAmount"); bigbudgetName = rs1.getString("BigBudgetName"); } st.executeUpdate("UPDATE Budgets SET TotalAmountSpent = " + budgetSpent + " WHERE budgetID = " + budgetID + ";"); System.out.println("update"); st.executeUpdate("UPDATE BigBudgets SET TotalAmountSpent = " + bigBudgetSpent + " WHERE bigBudgetID = " + bigBudgetID + ";"); if (bigBudgetSpent > 0.8*(bigbudgetAmount)) { response.put("notification", "yes"); response.put("notify", "You now have less than 20% left in budget" + bigbudgetName); } response.put("message", "addToBudgetSuccessTest"); } catch (SQLException | JSONException e) { try { response.put("message", "addToBudgetFailTest"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject subtractFromBudgetTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + amount + ", '', 0, 0);"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID = " + budgetID + ";"); int bigBudgetID=0; double budgetSpent=0; if(rs.next()) { bigBudgetID = rs.getInt("bigBudgetID"); budgetSpent = rs.getDouble("TotalAmountSpent") + amount; System.out.println(bigBudgetID); } ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + bigBudgetID + ";"); double bigBudgetSpent = 0; double bigbudgetAmount = 0; String bigbudgetName = ""; if (rs1.next()) { bigBudgetSpent = rs1.getDouble("TotalAmountSpent")+amount; bigbudgetAmount = rs1.getDouble("BigBudgetAmount"); bigbudgetName = rs1.getString("BigBudgetName"); } st.executeUpdate("UPDATE Budgets SET TotalAmountSpent = " + budgetSpent + " WHERE budgetID = " + budgetID + ";"); System.out.println("update"); st.executeUpdate("UPDATE BigBudgets SET TotalAmountSpent = " + bigBudgetSpent + " WHERE bigBudgetID = " + bigBudgetID + ";"); if (bigBudgetSpent > 0.8*(bigbudgetAmount)) { response.put("notification", "yes"); response.put("notify", "You now have less than 20% left in budget" + bigbudgetName); } response.put("message", "subtractFromBudgetSuccessTest"); } catch (SQLException | JSONException e) { try { response.put("message", "subtractFromBudgetFailTest"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject transactionHistoryTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + amount + ", '', 0, 0);"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID = " + budgetID + ";"); int bigBudgetID=0; double budgetSpent=0; if(rs.next()) { bigBudgetID = rs.getInt("bigBudgetID"); budgetSpent = rs.getDouble("TotalAmountSpent") + amount; System.out.println(bigBudgetID); } ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + bigBudgetID + ";"); double bigBudgetSpent = 0; double bigbudgetAmount = 0; String bigbudgetName = ""; if (rs1.next()) { bigBudgetSpent = rs1.getDouble("TotalAmountSpent")+amount; bigbudgetAmount = rs1.getDouble("BigBudgetAmount"); bigbudgetName = rs1.getString("BigBudgetName"); } st.executeUpdate("UPDATE Budgets SET TotalAmountSpent = " + budgetSpent + " WHERE budgetID = " + budgetID + ";"); System.out.println("update"); st.executeUpdate("UPDATE BigBudgets SET TotalAmountSpent = " + bigBudgetSpent + " WHERE bigBudgetID = " + bigBudgetID + ";"); if (bigBudgetSpent > 0.8*(bigbudgetAmount)) { response.put("notification", "yes"); response.put("notify", "You now have less than 20% left in budget" + bigbudgetName); } ResultSet rs2 = st.executeQuery("SELECT * FROM Transactions;"); if (rs2.next()) { response.put("message", "transactionHistorySuccessTest"); } else { response.put("message", "transactionHistoryFailTest"); } } catch (SQLException | JSONException e) { try { response.put("message", "transactionHistoryFailTest"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject locationTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); double latitude = message.getDouble("markerLatitude"); double longitude = message.getDouble("markerLongitude"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + amount + ", ''," + latitude + ", " + longitude + ");"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID = " + budgetID + ";"); int bigBudgetID=0; double budgetSpent=0; if(rs.next()) { bigBudgetID = rs.getInt("bigBudgetID"); budgetSpent = rs.getDouble("TotalAmountSpent") + amount; System.out.println(bigBudgetID); } ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + bigBudgetID + ";"); double bigBudgetSpent = 0; double bigbudgetAmount = 0; String bigbudgetName = ""; if (rs1.next()) { bigBudgetSpent = rs1.getDouble("TotalAmountSpent")+amount; bigbudgetAmount = rs1.getDouble("BigBudgetAmount"); bigbudgetName = rs1.getString("BigBudgetName"); } st.executeUpdate("UPDATE Budgets SET TotalAmountSpent = " + budgetSpent + " WHERE budgetID = " + budgetID + ";"); System.out.println("update"); st.executeUpdate("UPDATE BigBudgets SET TotalAmountSpent = " + bigBudgetSpent + " WHERE bigBudgetID = " + bigBudgetID + ";"); if (bigBudgetSpent > 0.8*(bigbudgetAmount)) { response.put("notification", "yes"); response.put("notify", "You now have less than 20% left in budget" + bigbudgetName); } ResultSet rs2 = st.executeQuery("SELECT * FROM Transactions;"); if (rs2.next()) { if (rs2.getDouble("Longitude") == message.getDouble("markerLongitude") && rs2.getDouble("Latitude") == message.getDouble("markerLatitude")) response.put("message", "locationSuccessTest"); else { response.put("message", "locationFailTest"); } } else { response.put("message", "locationFailTest"); } } catch (SQLException | JSONException e) { try { response.put("message", "locationFailTest"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1
JSONObject response = new JSONObject();
public JSONObject limitNotificationTest(JSONObject message, Session session, Connection conn) { try { Statement st = conn.createStatement(); double amount = message.getDouble("amountToAdd"); int budgetID = message.getInt("budgetID"); st.execute(Constants.SQL_INSERT_TRANSACTION + "(" + budgetID + ", " + amount + ", '', 0, 0);"); ResultSet rs = st.executeQuery("SELECT * FROM Budgets WHERE budgetID = " + budgetID + ";"); int bigBudgetID=0; double budgetSpent=0; if(rs.next()) { bigBudgetID = rs.getInt("bigBudgetID"); budgetSpent = rs.getDouble("TotalAmountSpent") + amount; System.out.println(bigBudgetID); } ResultSet rs1 = st.executeQuery("SELECT * FROM BigBudgets WHERE bigBudgetID = " + bigBudgetID + ";"); double bigBudgetSpent = 0; double bigbudgetAmount = 0; String bigbudgetName = ""; if (rs1.next()) { bigBudgetSpent = rs1.getDouble("TotalAmountSpent")+amount; bigbudgetAmount = rs1.getDouble("BigBudgetAmount"); bigbudgetName = rs1.getString("BigBudgetName"); } st.executeUpdate("UPDATE Budgets SET TotalAmountSpent = " + budgetSpent + " WHERE budgetID = " + budgetID + ";"); System.out.println("update"); st.executeUpdate("UPDATE BigBudgets SET TotalAmountSpent = " + bigBudgetSpent + " WHERE bigBudgetID = " + bigBudgetID + ";"); if (bigBudgetSpent > 0.8*(bigbudgetAmount)) { response.put("notification", "yes"); response.put("notify", "You now have less than 20% left in budget" + bigbudgetName); } ResultSet rs2 = st.executeQuery("SELECT * FROM Transactions;"); response.put("message", "limitNotificationSuccessTest"); } catch (SQLException | JSONException e) { try { response.put("message", "limitNotificationFailTest"); } catch (JSONException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } deleteAll(conn); return response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject parseJson(String response) {\n\t\tSystem.out.println(response);\n\t\tJSONObject json = (JSONObject) JSONSerializer.toJSON(response);\n\t\treturn json; \n\t}", "public JSONObject getResponse(){\n try {\n URL finalURL = new URL(url);\n BufferedReader in = ne...
[ "0.70700103", "0.6984609", "0.6820411", "0.6820411", "0.6796738", "0.6758928", "0.67050016", "0.6687507", "0.6610664", "0.6587955", "0.64251065", "0.6424558", "0.63889945", "0.6359593", "0.63403136", "0.6302503", "0.62668484", "0.6241933", "0.6208644", "0.61999846", "0.618692...
0.0
-1